Documentation

CslibFrontier.Probability.IID.Event

Events of independent draws #

The probability that all of k independent draws from μ land in an event E is μ(E) ^ k (Cslib.Probability.PMF.toOuterMeasure_iid_forall). The probability that at least one does is 1 - (1 - μ(E)) ^ k (Cslib.Probability.PMF.toOuterMeasure_iid_exists). Neither statement needs finiteness of the sample space. For independent draws Cslib.Probability.PMF.piFin p from a family, every coordinate lands in its own event with the product of the probabilities (Cslib.Probability.PMF.toOuterMeasure_piFin_forall), and some coordinate does with at most their sum (Cslib.Probability.PMF.toOuterMeasure_piFin_exists_le). On finite types, Cslib.Probability.PMF.toOuterMeasure_pi_forall proves the first identity for products with coordinate-dependent events.

Main results #

theorem Cslib.Probability.PMF.toOuterMeasure_piFin_forall {α : Type u_1} {k : ℕ} (p : Fin k → PMF α) (E : Fin k → Set α) :
(piFin p).toOuterMeasure {v : Fin k → α | ∀ (i : Fin k), v i ∈ E i} = ∏ i : Fin k, (p i).toOuterMeasure (E i)

Every coordinate of independent draws from a family lands in its own event with the product of the probabilities.

theorem Cslib.Probability.PMF.toOuterMeasure_iid_forall {α : Type u_1} (μ : PMF α) (E : Set α) (k : ℕ) :
(iid μ k).toOuterMeasure {v : Fin k → α | ∀ (i : Fin k), v i ∈ E} = μ.toOuterMeasure E ^ k

All of k independent draws from μ land in E with probability μ(E) ^ k.

theorem Cslib.Probability.PMF.iid_map_eval {α : Type u_1} (μ : PMF α) {k : ℕ} (j : Fin k) :
PMF.map (fun (v : Fin k → α) => v j) (iid μ k) = μ

Each coordinate of k independent draws from μ is distributed as μ.

theorem Cslib.Probability.PMF.toOuterMeasure_piFin_exists_le {α : Type u_1} {k : ℕ} (p : Fin k → PMF α) (E : Fin k → Set α) :
(piFin p).toOuterMeasure {v : Fin k → α | ∃ (i : Fin k), v i ∈ E i} ≤ ∑ i : Fin k, (p i).toOuterMeasure (E i)

Union bound for independent draws from a family: some coordinate lands in its own event with probability at most the sum of the probabilities.

theorem Cslib.Probability.PMF.toOuterMeasure_toReal_piFin_exists_le {α : Type u_1} {k : ℕ} (p : Fin k → PMF α) (E : Fin k → Set α) :
((piFin p).toOuterMeasure {v : Fin k → α | ∃ (i : Fin k), v i ∈ E i}).toReal ≤ ∑ i : Fin k, ((p i).toOuterMeasure (E i)).toReal

The union bound toOuterMeasure_piFin_exists_le for real-valued probabilities.

theorem Cslib.Probability.PMF.toOuterMeasure_iid_eval {α : Type u_1} (μ : PMF α) {k : ℕ} (j : Fin k) (E : Set α) :
(iid μ k).toOuterMeasure {v : Fin k → α | v j ∈ E} = μ.toOuterMeasure E

The j-th of k independent draws from μ lands in E with probability μ(E).

theorem Cslib.Probability.PMF.toOuterMeasure_iid_exists {α : Type u_1} (μ : PMF α) (E : Set α) (k : ℕ) :
(iid μ k).toOuterMeasure {v : Fin k → α | ∃ (i : Fin k), v i ∈ E} = 1 - (1 - μ.toOuterMeasure E) ^ k

At least one of k independent draws from μ lands in E with probability 1 - (1 - μ(E)) ^ k.