Freeks/23.book(保存済みの内容) … 編集へ / ファイル一覧へ

Weak law of large numbers for the binomial distribution (finite-sum version)
import /Freeks/14.book(section 4 まで)

The finite-sum version of the weak law of large numbers for the binomial distribution. With success probability \(a\) and failure probability \(b\) (\(a + b = 1\)), in \(n\) trials let the weight of exactly \(k\) successes be \(w(k) = \binom{n}{k} a^k b^{n-k}\). We deal with **finite sums** of weights rather than probabilities, so no measure theory is needed, only equalities and inequalities over the real numbers \(\mathbb{R}\) (Freeks/14).
To show: (1) \(\sum_k w(k) = 1\), (2) \(\sum_k k\,w(k) = na\), (3) \(\sum_k (k - na)^2 w(k) = nab\), (4) a Chebyshev-type inequality \(n \varepsilon^2 \sum_{|k - na| \ge n\varepsilon} w(k) \le ab\) (that is, \(\Pr[\,|k/n - a| \ge \varepsilon\,] \le ab / (n \varepsilon^2)\)). (4) is the weak law of large numbers.

1 The reals form a commutative ring

2 (1) The sum of the weights (from the binomial theorem)

Put the success and failure probabilities into \(a, b\) of the binomial theorem (Freeks/1). Since \(a + b = 1\), \(\sum_k w(k) = (a+b)^n = 1^n = 1\).
Wsum … \(a , b \in \mathbb{R} , a + b = 1 \Longrightarrow \forall n \in \mathbb{M} . \sum_{ k \in 0 \mathinner{\ldotp\ldotp} n } n \mathrm{C} k \cdot ( a ^ k \cdot b ^ { n - k } ) = 1\) \(\blacktriangleleft\) RCR ,RCRing ,L1pR ,\(( X , \textit{0} , \textit{1} , [-] , [+] , [\cdot] ) :\mathsf{CRing} , a , b \in X \Longrightarrow \forall n \in \mathbb{M} . ( a + b ) ^ n = \sum_{ k \in 0 \mathinner{\ldotp\ldotp} n } n \mathrm{C} k \cdot ( a ^ k \cdot b ^ { n - k } )\) ,\(\mathbb{W}.\) ,\(0 \in \mathbb{M}\) ,𝕄0 ,INDC ,ℤ+

3 Tools for weighted sums (hidden lemmas)

For the weight \(w_n(k)\) and a function \(F\), put \(E_n[F] = \sum_{k \le n} w_n(k) F(k)\). Pascal's recurrence gives \(E_{n+1}[F] = b\,E_n[F] + a\,E_n[F(\cdot + 1)]\) (RecF). A linear combination of terms gives a linear combination of sums (Lin), and a termwise inequality gives an inequality of sums (Lmon).

4 (2) The mean

The weighted sum of the deviation \(k - na\) from the mean is 0. This follows from \(E_{n+1}[k - (n+1)a] = E_n[b(k - na - a) + a(k - na + b)] = E_n[k - na]\) (\(a + b = 1\)) by induction on \(n\). Together with \(\sum w(k) = 1\), we get \(\sum k\,w(k) = na\).
Wmean … \(a , b \in \mathbb{R} , a + b = 1 \Longrightarrow \forall n \in \mathbb{M} . \sum_{ k \in 0 \mathinner{\ldotp\ldotp} n } n \mathrm{C} k \cdot ( ( a ^ k \cdot b ^ { n - k } ) \cdot k ) = n \cdot a\) \(\blacktriangleleft\) RCR ,RCRing ,LMn ,\(\mathbb{W}.\) ,\(0 \in \mathbb{M}\) ,𝕄0 ,INDC ,ℤ+ ,AxΣ

5 (3) The variance

Using the same recurrence with \(F(k) = (k - (n+1)a)^2\), we have \(b(u - a)^2 + a(u + b)^2 = u^2 + ab\) (\(u = k - na\)), so \(V(n+1) = V(n) + ab\).
Wvar … \(a , b \in \mathbb{R} , a + b = 1 \Longrightarrow \forall n \in \mathbb{M} . \sum_{ k \in 0 \mathinner{\ldotp\ldotp} n } n \mathrm{C} k \cdot ( ( a ^ k \cdot b ^ { n - k } ) \cdot ( ( k + ( - ( n \cdot a ) ) ) \cdot ( k + ( - ( n \cdot a ) ) ) ) ) = n \cdot ( a \cdot b )\) \(\blacktriangleleft\) RCR ,RCRing ,LVs ,LV00 ,LO0 ,\(\mathbb{W}.\) ,\(0 \in \mathbb{M}\) ,𝕄0 ,INDC ,ℤ+ ,AxΣ

6 (4) The weak law of large numbers (Chebyshev type)

We write the sum over the "set of bad \(k\)" using a selection function \(s\): \(s(k) = 0\), or \(s(k) = 1\) and \((n\varepsilon)^2 \le (k - na)^2\) (a function that selects exactly the cases \(|k/n - a| \ge \varepsilon\), for the selected \(k\), satisfies this condition). Termwise \((n\varepsilon)^2 s(k) \le (k - na)^2\), so \((n\varepsilon)^2 \sum s\,w \le \sum (k - na)^2 w = nab\). Dividing by \(n\) gives \(n \varepsilon^2 \sum s\,w \le ab\) (a form that avoids division).
Wcheb … \(a , b , e \in \mathbb{R} , a + b = 1 , 0 \le a , 0 \le b , 0 < e , n \in \mathbb{M} ^{\times} , \forall k \in \mathbb{M} . ( {s} ( k ) = 0 \mathbin{\rm o\!r} ( {s} ( k ) = 1 , ( ( n \cdot e ) \cdot ( n \cdot e ) ) \le ( k + ( - ( n \cdot a ) ) ) \cdot ( k + ( - ( n \cdot a ) ) ) ) ) \Longrightarrow ( n \cdot ( e \cdot e ) ) \cdot \sum_{ k \in 0 \mathinner{\ldotp\ldotp} n } n \mathrm{C} k \cdot ( ( a ^ k \cdot b ^ { n - k } ) \cdot {s} ( k ) ) \le a \cdot b\) \(\blacktriangleleft\) AxR ,RCR ,Lmon ,Lin ,Lmo ,Wvar ,Lcan ,Lnn0 ,Lc∈ ,Lpw ,RM1 ,<. ,\(\mathbb{W}.\) ,\(0 \in \mathbb{M}\) ,𝕄0 ,INDC ,ℤ+ ,AxΣ

イベント 27 件