MindFormal v1.0.0One Mind

MindFormal.Tools.A654StandardsWhole.Sampling

noncomputable def MindFormal.A654StandardsWhole.empirical {Ω : Type u_1} {R : Type u_2} {I : Type u_3} [Fintype I] (Z : I → Ω → R) (f : R → ℝ) (ω : Ω) :
Equations
Instances For
    theorem MindFormal.A654StandardsWhole.normalized_record_tail {Ω : Type u_1} {R : Type u_2} {I : Type u_3} [MeasurableSpace Ω] [MeasurableSpace R] [Fintype I] [Nonempty I] (μ : MeasureTheory.Measure Ω) [MeasureTheory.IsProbabilityMeasure μ] (ρ : MeasureTheory.Measure R) (Z : I → Ω → R) (hm : ∀ (i : I), Measurable (Z i)) (hind : ProbabilityTheory.iIndepFun Z μ) (law : ∀ (i : I), ProbabilityTheory.HasLaw (Z i) ρ μ) (f : R → ℝ) (hf : Measurable f) (hb : ∀ (r : R), f r ∈ Set.Icc 0 1) {ε : ℝ} (hε : 0 ≤ ε) :
    μ.real {ω : Ω | ε ≤ |empirical Z f ω - ∫ (r : R), f r ∂ρ|} ≤ 2 * Real.exp (-2 * ↑(Fintype.card I) * ε ^ 2)

    The sample unit is a complete record. Only these units are assumed independent; arbitrary dependence is retained within each record.

    theorem MindFormal.A654StandardsWhole.sampled_record_event {Ω : Type u_1} {R : Type u_2} {I : Type u_3} {Q : Type u_4} [MeasurableSpace Ω] [MeasurableSpace R] [Fintype I] [Nonempty I] [Fintype Q] (μ : MeasureTheory.Measure Ω) [MeasureTheory.IsProbabilityMeasure μ] (ρ : MeasureTheory.Measure R) (Z : I → Ω → R) (hm : ∀ (i : I), Measurable (Z i)) (hind : ProbabilityTheory.iIndepFun Z μ) (law : ∀ (i : I), ProbabilityTheory.HasLaw (Z i) ρ μ) (f : Q → R → ℝ) (hf : ∀ (q : Q), Measurable (f q)) (hb : ∀ (q : Q) (r : R), f q r ∈ Set.Icc 0 1) {ε : ℝ} (hε : 0 ≤ ε) :
    ∃ (good : Set Ω), MeasurableSet good ∧ 1 - min 1 (↑(Fintype.card Q) * 2 * Real.exp (-2 * ↑(Fintype.card I) * ε ^ 2)) ≤ μ.real good ∧ ∀ ω ∈ good, ∀ (q : Q), |empirical Z (f q) ω - ∫ (r : R), f q r ∂ρ| < ε

    A finite test/alphabet/load/sweep family pays its complete union bill.

    theorem MindFormal.A654StandardsWhole.conditional_ratio {a m ahat mhat ε : ℝ} (hm : 0 < m) (hε : 0 ≤ ε) (hsmall : ε < m) (ha : a ∈ Set.Icc 0 m) (he : |ahat - a| ≤ ε) (hd : |mhat - m| ≤ ε) :
    0 < mhat ∧ |ahat / mhat - a / m| ≤ 2 * ε / (m - ε)

    Joint completion conditioning uses the empirically observed complete mass. The denominator price is derived, and requires epsilon < mass.