伯努利分布(Bernoulli distribution):单次(only once)随机实验,结果有两种可能:事件 0 0 0(失败)和事件 1 1 1(成功)。假设 X ∈ { 0 , 1 } X \in \{ 0, 1 \} X∈{ 0,1}为二值随机变量(binary random variable), x = 1 x = 1 x=1的概率为 θ \theta θ、 x = 0 x = 0 x=0的概率为 1 − θ 1 - \theta 1−θ,则 X X X服从伯努利分布,记为 X ∼ Ber ( θ ) X \sim \text{Ber} (\theta) X∼Ber(θ),其概率累积函数(probability mass function,pmf)定义为:
Ber ( x ; θ ) = θ x ( 1 −