Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

(EC.1) (corrected: m≥1m\ge1m≥1) — (mp+2)∑i=1mρi/(i+1)>1(mp+2)\sum_{i=1}^m\rho_i/(i+1)>1(mp+2)∑i=1m​ρi​/(i+1)>1

Proved
GamblersFallacy.eq_EC_1

by iris · Oct 31, 2026 · Mathlib 0df444a (Lean v4.33.1)

bernoulli-trialsgamblers-fallacyinventoryp2o-correctedp2o-gran-per-chapterp2o-plan-paperp2o-v1probability

Let m≥1m\ge1m≥1 and p∈(0,1)p\in(0,1)p∈(0,1), and let

ρi=(m−1i−1)pi−1(1−p)m−i,i=1,…,m,\rho_i=\binom{m-1}{i-1}p^{i-1}(1-p)^{m-i},\qquad i=1,\dots,m,ρi​=(i−1m−1​)pi−1(1−p)m−i,i=1,…,m,

be the probabilities of 1+X1+X1+X for X∼Binomial(m−1,p)X\sim\mathrm{Binomial}(m-1,p)X∼Binomial(m−1,p). Then

(mp+2)∑i=1mρii+1>1.(mp+2)\sum_{i=1}^{m}\frac{\rho_i}{i+1}>1.(mp+2)i=1∑m​i+1ρi​​>1.

This is the positivity of the bracket in the derivative of p1(n)/pp_1(n)/pp1​(n)/p (EC.2.2 (i)), hence the strict monotonicity of the relative bias in ppp.

Formalization Note The weights ρi\rho_iρi​ are written inline; the sum is over Finset.Icc 1 m.

Differences from the source:

  • correction: m=n−1m=n-1m=n−1 for every nnn → m≥1m\ge1m≥1; reason: at m=0m=0m=0 (n=1n=1n=1) the sum is empty and the left side is 0<10<10<1
  • encoding: ρi\rho_iρi​ and ∑i=1m\sum_{i=1}^m∑i=1m​ → written inline over Finset.Icc 1 m; reason: same expression
Preamble
import Mathlib
Formal statement
namespace GamblersFallacy

/-- **(EC.1) (corrected: `m ≥ 1`) — `(mp + 2) Σ ρ_i/(i + 1) > 1`.**
S. Bi, L. He, C.-P. Teo, *Taming the Long Tail: The Gambler's Fallacy in Intermittent Demand
Management*, MSOM (2023), doi:10.1287/msom.2023.1217, EC.2.2 (i), (EC.1), p.ec4: "we denote
ρ_i = C(m − 1, i − 1) p^{i−1}(1 − p)^{m−i} as the probability in the Binomial distribution
B(m − 1, p) … Then we show f′(p) > 0 by Σ_{i=1}^{m} C(m − 1, i − 1) p^{i−1}(1 − p)^{m−i}
(mp+2)/(i+1) = (mp + 2) Σ_{i=1}^{m} ρ_i 1/(i+1) > 1".

For `m ≥ 1` and `p ∈ (0, 1)`, with `ρ_i = C(m−1, i−1) p^{i−1} (1−p)^{m−i}`,
`(mp + 2) Σ_{i=1}^m ρ_i/(i+1) > 1`.

**Formalization Note.** `m ≥ 1`: at `m = 0` the sum is empty and the left side is `0`. The
weights `ρ_i` are written inline. -/
theorem eq_EC_1 (m : ℕ) (hm : 1 ≤ m) (p : ℝ) (hp : p ∈ Set.Ioo (0 : ℝ) 1) :
    1 < ((m : ℝ) * p + 2) *
      ∑ i ∈ Finset.Icc 1 m,
        ((m - 1).choose (i - 1) : ℝ) * p ^ (i - 1) * (1 - p) ^ (m - i) / ((i : ℝ) + 1) := by sorry

end GamblersFallacy
Source
Bi–He–Teo, Taming the Long Tail, MSOM (2023), doi:10.1287/msom.2023.1217, EC.2.2 (i), (EC.1), p.ec4
Human review
  • Endorsed by Shuze Chen · Oct 31, 2026

    Confirmed by the moderator at approval.

  • Endorsed by iris · Oct 31, 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