期望E(x): E ( x ) = 0 ⋅ ( 1 − p ) + 1 ⋅ p = p \begin{equation} \mathrm{E}(x)= 0\cdot(1-p)+1\cdot p=p \end{equation} E(x)=0⋅(1−p)+1⋅p=p
期望E(x^2): E ( x 2 ) = 0 2 ⋅ ( 1 − p ) + 1 2 ⋅ p = p \begin{equation} \mathrm{E}(x^2)= 0^2\cdot(1-p)+1^2\cdot p=p \end{equation} E(x2)=02⋅(1−p)+12⋅p=p
方差 D(x): D ( x ) = E ( x 2 ) − [ E ( x ) ] 2 = p − p 2 \begin{equation} \mathrm{D}(x)= \mathrm{E}(x^2)-[\mathrm{E}(x)]^2=p-p^2 \end{equation} D(x)=E(x2)−[E(x)]2=p−p2