Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

(4.7), p. 540 — Var(W) = λ + ΣΣ_{0<|i−j|≤m} EX_iX_j − ΣΣ_{|i−j|≤m} p_ip_j + Σ_i E[(X_i − p_i)V^{(i)}]

Proved
PoissonDepTrials.MixSqrt.variance_identity_4_7

by mikedeng1 · Oct 6, 2026 · Mathlib 0df444a (Lean v4.33.1)

bernoulli-trialsp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1poisson-approximationvariance

Let X1,…,XnX_1,\dots,X_nX1​,…,Xn​ be Bernoulli random variables on a probability space (Ω,F,P)(\Omega,\mathcal F,P)(Ω,F,P), possibly dependent, with pi=P(Xi=1)p_i=P(X_i=1)pi​=P(Xi​=1), and put W=∑i=1nXiW=\sum_{i=1}^n X_iW=∑i=1n​Xi​ and λ=∑i=1npi\lambda=\sum_{i=1}^n p_iλ=∑i=1n​pi​. As on p. 535, XiX_iXi​ is taken to be identically zero when i≤0i\le 0i≤0 or i≥n+1i\ge n+1i≥n+1. Fix m≥0m\ge0m≥0. Then

Var⁡(W)=λ+∑∑0<∣i−j∣≤mEXiXj−∑∑∣i−j∣≤mpipj+∑i=1nE[(Xi−pi)V(i)].\operatorname{Var}(W)=\lambda+\sum\sum_{0<|i-j|\le m}EX_iX_j-\sum\sum_{|i-j|\le m}p_ip_j+\sum_{i=1}^nE\bigl[(X_i-p_i)V^{(i)}\bigr].Var(W)=λ+∑0<∣i−j∣≤m∑​EXi​Xj​−∑∣i−j∣≤m∑​pi​pj​+i=1∑n​E[(Xi​−pi​)V(i)].

No assumption on the dependence is made; the identity is (2.2) with f(w)=wf(w)=wf(w)=w.

It is the first step of the proofs of Lemmas 4.4 and 4.5: it expresses the local correlation sum ∑∑0<∣i−j∣≤mEXiXj\sum\sum_{0<|i-j|\le m}EX_iX_j∑∑0<∣i−j∣≤m​EXi​Xj​ through Var⁡(W)\operatorname{Var}(W)Var(W), which is what lets the final bound be stated in terms of Var⁡(W)−λ\operatorname{Var}(W)-\lambdaVar(W)−λ.

Formalization Note The trials are a sequence X:N→Ω→NX:\mathbb N\to\Omega\to\mathbb NX:N→Ω→N that is measurable, almost surely {0,1}\{0,1\}{0,1}-valued, and identically 000 at index 000 and above nnn (the paper's padding convention, which changes no σ\sigmaσ-algebra). pip_ipi​ is defined as P(Xi=1)P(X_i=1)P(Xi​=1), not a free parameter.

Preamble
import Mathlib
import Definitions.Def_PoissonDepTrials_MixSqrt_Setting

open MeasureTheory ProbabilityTheory
Formal statement
namespace PoissonDepTrials.MixSqrt

/-- Chen (1975), proof of Lemma 4.4, p. 540, (4.7): for an arbitrary sequence of dependent
Bernoulli trials,
`Var(W) = λ + ΣΣ_{0<|i−j|≤m} EX_iX_j − ΣΣ_{|i−j|≤m} p_ip_j + Σ_i E[(X_i − p_i)V^{(i)}]`. -/
theorem variance_identity_4_7 {Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω) [IsProbabilityMeasure P]
    (n : ℕ) (X : ℕ → Ω → ℕ) (hX : IsBernoulliTrials P n X) (m : ℕ) :
    Var[fun ω => (W n X ω : ℝ); P] = lam P n X
      + (∑ i ∈ Finset.Icc 1 n, ∑ j ∈ Finset.Icc 1 n with 0 < |(i : ℤ) - (j : ℕ)| ∧ |(i : ℤ) - (j : ℕ)| ≤ m,
          ∫ ω, (X i ω : ℝ) * X j ω ∂P)
      - (∑ i ∈ Finset.Icc 1 n, ∑ j ∈ Finset.Icc 1 n with |(i : ℤ) - (j : ℕ)| ≤ m,
          prob P X i * prob P X j)
      + ∑ i ∈ Finset.Icc 1 n, ∫ ω, ((X i ω : ℝ) - prob P X i) * (V n m X i ω : ℝ) ∂P := by sorry

end PoissonDepTrials.MixSqrt
Source
Chen, Poisson approximation for dependent trials, Ann. Probab. 3 (1975), p. 540, proof of Lemma 4.4, (4.7)
Human review
  • Endorsed by Shuze Chen · Oct 6, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 6, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me