Definition 1.29. A discrete probability space is a triple (Ω,E,Pρ) including an outcome space Ω, the set of all events E=P(Ω), and a discrete probability measure Pρ associated with a probability mass function ρ∈Δpmf(Ω).
Theorem 1.30. Suppose (Ω,E,Pρ) is a discrete probability space associated with a probability mass function ρ∈Δpmf(Ω). The countable set coz(ρ)⊆Ω satisfies Pρ{coz(ρ)}=Pρ(Ω)=1. Furthermore, given any collection A⊆E of pairwise disjoint subsets of Ω we have
Pρ(⋃A)=E∈A∑Pρ(E).(1.12)
简单地说就是把各个独立(互斥)的events的概率相加,就是“或”的关系。
Corollary 1.31. Suppose (Ω,E,Pρ) is a discrete probability space. We have Pρ(∅)=0 and whenever A⊆B⊆Ω we have 0≤Pρ(A)≤Pρ(B).
显然。
Corollary 1.32. Suppose (Ω,E,Pρ) is a discrete probability space and A⊆Ω is a countable collection. Then
Pρ(⋃A)≤E∈A∑Pρ(E).
不是彼此独立的情况,显然。
Lemma 1.33. Suppose (Ω,E,Pρ) is a discrete probability space and A⊆Ω has
Pρ(A)=1. Then, we have coz(ρ)⊆A.
所有概率非零的 outcome 全部被 A 包含,显然。
Rings of sets and σ-additive functions
Definition 1.34. A ring of sets F is a collection of subsets F⊆P(Ω) such that if A∈F and B∈F then A∪B∈F and A∖B∈F.
群论概念。
Definition 1.35. A function M:F→[0,1] defined on some collection of subsets F⊆P(Ω) is said to be σ-additive if for any countable collection A⊆F of pairwise disjoint subsets with ⋃A∈F, we have
M(⋃A)=E∈A∑M(E).(1.13)
两两不相交的事件族的并的运算方式。
Corollary 1.36. Given ρ∈Δpmf(Ω), the function Pρ:P(Ω)→[0,1] is σ-additive.
Proposition 1.37. Suppose Ω is a set, S⊆Ω is a countable subset, and F⊆P(Ω) is a ring of sets {S}∪{{ω}:ω∈S}⊆F and M:F→[0,1] is a σ-additive function such that M(S)=1. Then, there exists a probability mass function ρ:Ω→[0,1] such that for all A∈F we have M(A)=∑ω∈Aρ(ω)=Pρ(A).
Definition 1.38. The space of integrable random variables is L1(Ω,Pρ):={X∈RΩ:Xρ∈ℓ1(Ω)}={X∈RΩ:∥Xρ∥1<∞}. Given X∈L1(Ω,Pρ), its expectation is Eρ(X):=∑ω∈ΩX(ω)ρ(ω).
简单的说,期望的定义要求 ∑ω∣X(ω)∣ρ(ω) 有限。
Lemma 1.39. Suppose (Ω,E,Pρ) is a discrete probability space and A⊆Ω. Then
1A∈L1(Ω,Pρ) and Eρ(1A)=Pρ(A).
显然,指示函数的期望等于其概率。
Lemma 1.40. Suppose ρ∈Δpmf(Ω) and X,Y∈L1(Ω,Pρ) and λ∈R. Then λX+Y∈L1(Ω,Pρ) and
Eρ(λX+Y)=λEρ(X)+Eρ(Y).
期望的线性。
Lemma 1.41. Suppose X,Y∈L1(Ω,Pρ) and Pρ(X≤Y)=1. Then Eρ(X)≤Eρ(Y).
{X≤Y}={ω∈Ω:X(ω)≤Y(ω)},显然。
Random elements and their distributions
看不动了,GPT 启动。
Definition 1.42. Suppose (Ω,E,Pρ) is a discrete probability space and A is a set. A random element taking values in A is a function X:Ω→A. The set A is referred to as the state space of X, and its elements are called states.
从随机变量推广到随机元素,输出可能为任何东西。
对于状态 a∈A,记
{X=a}:={ω∈Ω:X(ω)=a}.
对于集合 S⊆A,记
{X∈S}:={ω∈Ω:X(ω)∈S}=X−1(S).
如果再给定一个函数 f:A→B,那么
f(X):=f∘X
也是随机元素:
f(X)(ω)=f(X(ω)).
Definition 1.44. Suppose (Ω,E,Pρ) is a discrete probability space and X:Ω→A is a random element taking values in some state space A. Then, the distribution of X is the function PX:P(A)→[0,1] defined by
PX(S):=Pρ({X∈S})
for all S⊆A. Further more, the induced probability mass function of X is the function ρX:A→[0,1] defined by ρX(a):=Pρ({X=a}) for all a∈A.
把概率从样本空间转移到状态空间。
Lemma 1.45. Suppose X:Ω→A is a random element on a discrete probability space (Ω,E,Pρ). Then ρX∈Δpmf(A). Further more, given any S⊆A, we have
PX(S)=Pρ({X∈S})=a∈S∑ρX(a).(1.14)
Hence, PX is the discrete probability measure associated with ρX.
根据 Lemma 1.27,即使A不可数,ρX的非零值集合是可数的。
Lemma 1.46. Suppose X:Ω→A is a random element on a discrete probability space (Ω,E,Pρ) and f:A→R. Then ∥f(X)ρ∥1=∥fρX∥1. Moreover, the following conditions
Definition 1.47. Suppose (Ω,E,Pρ) is a discrete probability space and A is a state space. A collection of random elements X1,…,Xn:Ω→A are said to be identically distributed if their respective distributions PX1,…,PXn coincide: PX1=⋯=PXn.
Lemma 1.48. Suppose (Ω,E,Pρ) is a discrete probability space and X1,…,Xn:Ω→A are random elements. Then the following are equivalent conditions:
(i) The random variables X1,…,Xn are identically distributed ie. PX1=⋯=PXn ; (ii) Their respective probability mass functions coincide ie. ρX1=⋯=ρXn ; (iii) Given any function f:A→R such that f(X1),…,f(Xn)∈L1(Ω,Pρ) we have
Eρ{f(X1)}=⋯=Eρ{f(Xn)}.
独立同分布的条件。
Lemma 1.49. We have X∈L1(Ω,Pρ) if and only if ∣X∣∈L1(Ω,Pρ). Further more, if
X∈L1(Ω,Pρ) then Eρ(∣X∣)=∥Xρ∥1.
显然,ρ>0⇒∣X∣ρ=∣Xρ∣,然后参考 Lemma 1.6。
Joint distributions and independence on discrete probability spaces
Definition 1.52. Suppose (Ω,E,Pρ) is a discrete probability space, that F is a non-empty finite set and for each i∈F we have a random element Xi:Ω→Ai taking values in the state space Ai.The joint random elementXF=(Xi)i∈F is the map XF:Ω→∏i∈FAi defined by
XF(ω):=(Xi(ω))i∈F∈i∈F∏Ai,
for each ω∈Ω. Hence, XF is a random element taking values in ∏i∈FAi. We then refer to the distribution of XF (Definition 1.44) PXF:P(∏i∈FAi)→[0,1], as the joint distribution of (Xi)i∈F. We also refer to ρXF:∏i∈FAi→[0,1], the induced probability mass function of XF, as the joint probability mass function of (Xi)i∈F.
联合概率分布。
random vector:随即元素 X[n]:Ω→Rn,X[n]=(Xi)i∈[n],(X1,…,Xn) 。
Definition 1.53. Suppose (Ω,E,Pρ) is a discrete probability space and F is a non-empty finite set. In addition, for each i∈F we have a random element Xi:Ω→Ai, with probability mass function ρXi:Ai→[0,1]. We say that the indexed collection of random elements (Xi)i∈F is independent if the joint distribution PXF:P(∏i∈FAi)→[0,1] satisfies
PXF(E)=i∈F∏PXi(Ei),
for all E=∏i∈FEi with Ej⊆Aj for each j∈F.
独立事件的联合概率可以分解成乘积的形式。
Lemma 1.54. Suppose (Ω,E,Pρ) is a discrete probability space and F is a non-empty finite set. In addition, for each i∈F we have a random element Xi:Ω→Ai. Then, the collection of random variables (Xi)i∈F is independent if and only if (Xi)i∈J is independent for every J∈P(F)∖{∅}.
一组相互独立的随机元素,其任意非空子组仍然相互独立。
X0 与 X1 **两两**独立:X0⊥⊥X1 。
Definition 1.55. Suppose (Ω,E,Pρ) is a discrete probability space and (Xi)i∈F is a collection of random elements Xi:Ω→Ai with a finite and non-empty index set F. We say that (Xi)i∈F are pairwise independent if Xj⊥⊥Xk for any j,k∈F with j=k.
Proposition 1.57. Suppose (Ω,E,Pρ) is a discrete probability space, that F is a non-empty finite index set and for each i∈F we have a random element Xi:Ω→Ai, with distribution PXi:P(Ai)→[0,1] and probability mass function ρXi:Ai→[0,1]. Then, the following three conditions are equivalent:
(i) Given any E=∏i∈FEi⊆∏i∈FAi we have PXF(E)=∏i∈FPXi(Ei);
(ii) Given any a=(ai)i∈F∈∏i∈FAi we have ρXF(a)=∏i∈FρXi(ai);
(iii) Given any collection of functions (φi)i∈F with φi:Ai→R and φi∈L1(Ai,PXi) for each i∈F, the function φ:∏j∈FAj→R by φ(a)=∏j∈Fφj(aj) for all a=(aj)j∈F∈∏i∈FAi we have φ∈L1(∏i∈FAi,PXF) and
Eρ{φ(XF)}=i∈F∏Eρ{φi(Xi)}.
三个条件等价:事件概率可以分解;联合概率质量函数可以分解;各变量的函数之积,其任意期望可以分解。
Corollary 1.58. Suppose (Ω,E,Pρ) is a discrete probability space and (Xi)i∈F is an independent collection of random elements indexed by a finite set F=∅. Suppose J,K∈P(F)∖{∅} with J∩K=∅. Then XJ⊥⊥XK. Furthermore, if f:∏j∈JAj→R and g:∏k∈KAk→R are real-valued functions with f(XJ),g(XK)∈L1(Ω,Pρ), then
Theorem 1.59. Let’s suppose (Ω,E,Pρ) is a discrete probability space and X∈L1(Ω,Pρ) is integrable with Pρ(X≥0)=1. Then, for all ζ>0,
Pρ(X≥ζ)≤Eρ(X)/ζ.
Eρ(X)≥ζEρ[1{X≥ζ}]=ζPρ(X≥ζ).
Bernoulli’s law of large numbers
Definition 1.60. A Bernoulli random variable X is a random variable X:Ω→R which takes values in {0,1}. Given p∈[0,1] we write X∼Bern(p) to mean that X is a Bernoulli random variable with E(X)=p.
Definition 1.61. A binomial random variable Y:Ω→R is a random sum of the form Y=∑i=1nXi where n∈N and X1,…,Xn:Ω→R are independent and identically distributed Bernoulli random variables on a common probability space (Ω,E,P). Given n∈N and p∈[0,1] we write Y∼Bin(n,p) to mean that Y=∑i=1nXi with n independent terms Xi∼Bern(p).
二项变量记录 n 次独立、成功概率相同的试验中的成功次数。对应的样本比例为
pn:=n1i=1∑nXi,npn∼Bin(n,p),E(pn)=p.
Theorem 1.62. Suppose p∈[0,1] and for each n≥1, we have a random variable pn on a probability space (Ωn,En,Pn) such that npn∼Bin(n,p). Then, given any ε>0, we have
n→∞limPn(∣pn−p∣≥ε)=0.
伯努利大数定律,对任意固定误差 ε>0,样本比例偏离真实成功概率至少 ε 的概率趋于 0。
The Chernoff–Chebyshev–Rubin method
直接对 pn 使用 Markov 不等式,只能得到
P(pn≥p+ε)≤p+εE(pn)=p+εp.
当 p>0 时,这个上界不随 n 减小,无法据此证明大数定律。改进方法是:先对随机变量作非负、单调变换,再应用 Markov 不等式。
Theorem 1.63. Let’s suppose (Ω,E,Pρ) is a discrete probability space, f:R→[0,∞) be a non-decreasing function and X is a random variable such that f(X)∈L1(Ω,Pρ). Then, for all ζ∈R with f(ζ)>0 we have
Pρ(X≥ζ)≤Eρ{f(X)}/f(ζ).
因为 f 单调不减,
{X≥ζ}⊆{f(X)≥f(ζ)}.
再对非负随机变量 f(X) 应用 Markov 不等式即可。此时无需要求 X 非负,但必须保证 f(X) 非负且可积,分母 f(ζ)>0。
Hoeffding’s bound and the Kullback–Leibler divergence
Binary Kullback–Leibler divergence
Definition 1.64. Given p∈(0,1) and q∈[0,1], the binary Kullback–Leibler divergence of q with respect to p is
kl(q∥p):=qlog(pq)+(1−q)log(1−p1−q)∈[0,∞),
where we use the convention 0log0:=limx↘0xlogx=0 for q∈{0,1}.
二元 KL 散度比较 Bern(q) 与 Bern(p) 两个分布:
kl(q∥p)≥0,且仅在 q=p 时为 0;
一般有 kl(q∥p)=kl(p∥q),因此它不是通常意义上的距离;
固定 p 后,它关于 q 严格凸,在 q=p 处取最小值。
为统一处理越出 [0,1] 的阈值
kl(r∥p):=kl(min{max{r,0},1}∥p),r∈R,p∈(0,1).
即先将第一个参数截断到 [0,1]。
Tail bounds in terms of KL divergence
Theorem 1.65. Suppose p∈(0,1) and for each n≥1, we have a random variable pn on a probability space (Ω,E,P) such that npn∼Bin(n,p). Then, for ε>0 we have
这是样本比例的上下尾界。对于固定的 p 和非零偏差,右边随样本量 n 指数衰减;KL 散度给出该上界的指数系数。它控制尾概率,并不等于实际尾概率。证明需要 Lemma 1.66 和 Lemma 1.67。
Lemma 1.66. Suppose p∈(0,1) and for each n≥1, we have a random variable pn on a probability space (Ω,E,P) such that npn∼Bin(n,p). Given q∈(p,1) and λ>0,
Theorem 1.68. Suppose p∈[0,1] and for each n≥1, we have a random variable pn on a probability space (Ω,E,P) such that npn∼Bin(n,p). Then, for ε>0 we have