二项分布(binomial distribution): n n n重伯努利随机实验,假设 X ∈ { 0 , 1 , ⋯ , n } X \in \{ 0, 1, \cdots, n \} X∈{ 0,1,⋯,n}表示事件 1 1 1发生的次数。若事件 1 1 1的发生的概率为 θ \theta θ,则 X X X服从二项分布,记为 X ∼ Bin ( n , θ ) X \sim \text{Bin} (n, \theta) X∼Bin(n,θ),其概率累积函数(probability mass function,pmf)定义为:
Bin ( k ; n , θ ) = ( n k ) θ k ( 1 − θ ) n − k \text{Bin} (k ; n, \theta) = \begin{pmatrix} n \\ k \\ \end{pmatrix} \theta^{k} (1 - \theta)^{n - k} Bin(k;