MindFormal v1.0.0One Mind

MindFormal.Tools.A699Shared.IndependentCount

noncomputable def MindFormal.A699Shared.successes {I : Type u_1} {Ω : Type u_2} [Fintype I] (E : I → Set Ω) (ω : Ω) :
Equations
Instances For
    def MindFormal.A699Shared.countEvent {I : Type u_1} {Ω : Type u_2} [Fintype I] (E : I → Set Ω) (m : ℕ) :
    Set Ω
    Equations
    Instances For
      def MindFormal.A699Shared.eventPattern {I : Type u_1} {Ω : Type u_2} (E : I → Set Ω) (s : Finset I) :
      Set Ω
      Equations
      Instances For
        theorem MindFormal.A699Shared.eventPattern_eq {I : Type u_1} {Ω : Type u_2} [Fintype I] (E : I → Set Ω) (s : Finset I) :
        eventPattern E s = {ω : Ω | successes E ω = s}
        theorem MindFormal.A699Shared.eventPattern_measurable {I : Type u_1} {Ω : Type u_2} [MeasurableSpace Ω] [Finite I] (E : I → Set Ω) (hE : ∀ (i : I), MeasurableSet (E i)) (s : Finset I) :
        theorem MindFormal.A699Shared.countEvent_union {I : Type u_1} {Ω : Type u_2} [Fintype I] (E : I → Set Ω) (m : ℕ) :
        countEvent E m = ⋃ s ∈ {s : Finset I | m ≤ s.card}, eventPattern E s
        theorem MindFormal.A699Shared.countEvent_measurable {I : Type u_1} {Ω : Type u_2} [Fintype I] [MeasurableSpace Ω] (E : I → Set Ω) (hE : ∀ (i : I), MeasurableSet (E i)) (m : ℕ) :
        noncomputable def MindFormal.A699Shared.poissonBinomial {I : Type u_1} [Fintype I] (p : I → ℝ) (m : ℕ) :

        The explicit heterogeneous independent count tail. Its arguments are probabilities of events on individual sources, never probabilities of mutually dependent native activities.

        Equations
        Instances For
          theorem MindFormal.A699Shared.independent_pattern {I : Type u_1} {Ω : Type u_2} [Fintype I] [MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω) [MeasureTheory.IsProbabilityMeasure μ] (E : I → Set Ω) (hE : ∀ (i : I), MeasurableSet (E i)) (hi : ProbabilityTheory.iIndepSet E μ) (s : Finset I) :
          μ.real (eventPattern E s) = (∏ i ∈ s, μ.real (E i)) * ∏ i ∈ sᶜ, (1 - μ.real (E i))
          theorem MindFormal.A699Shared.independent_count {I : Type u_1} {Ω : Type u_2} [Fintype I] [MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω) [MeasureTheory.IsProbabilityMeasure μ] (E : I → Set Ω) (hE : ∀ (i : I), MeasurableSet (E i)) (hi : ProbabilityTheory.iIndepSet E μ) (m : ℕ) :
          μ.real (countEvent E m) = poissonBinomial (fun (i : I) => μ.real (E i)) m

          Independent measurable events have exactly the Poisson-binomial count probability. The full pattern law is derived from independence.

          Equations
          Instances For
            theorem MindFormal.A699Shared.poissonBinomial_constant {I : Type u_1} [Fintype I] (p : ℝ) (m : ℕ) :
            poissonBinomial (fun (x : I) => p) m = binomialTail (Fintype.card I) m p

            With equal probabilities the heterogeneous formula is the printed binomial tail, including counts zero and above the number of members.