Skip to content

Commit

Permalink
sampling_lemma
Browse files Browse the repository at this point in the history
  • Loading branch information
hoheinzollern authored and affeldt-aist committed May 27, 2024
1 parent af1e587 commit bdc11d7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions theories/probability.v
Original file line number Diff line number Diff line change
Expand Up @@ -1368,3 +1368,11 @@ apply/ereal_nondecreasing_is_cvgn => x y xy; apply: ge0_le_integral => //=.
Qed.

End uniform_probability.

(* TODO: formalize https://math.uchicago.edu/~may/REU2019/REUPapers/Rajani.pdf *)
Theorem sampling p (X : {RV P >-> R}^nat) (n : nat) (theta delta : R) :
let X_sum x := \sum_(i < n) (X i x) in
let X' := X_sum / n%:R in
(forall i, bernoulli p (X i)) ->
n > 3 / (theta ^+ 2) * ln (2 / delta) ->
P [set i | `| X' i - p | < theta] >= 1 - delta.

0 comments on commit bdc11d7

Please sign in to comment.