Example (4 classes): Digital bits labeled E, G, F, P
| # | Label | Probability \(p_i\) | Count \(x_i\) | \(E[X_i]=n p_i\) | \(\mathrm{Var}(X_i)=n p_i(1-p_i)\) | 
|---|---|---|---|---|---|
| Sums → | — | — | — | — | |
Key properties
=SUM(C2:C5)).=SUM(B2:B5) (should be 1),  
          C6: =SUM(C2:C5) (should equal n)=MULTINOMIAL(C2,C3,C4,C5)=PRODUCT(B2^C2, B3^C3, B4^C4, B5^C5)  
          Log-safe:  
          =EXP(SUM(C2*LN(B2), C3*LN(B3), C4*LN(B4), C5*LN(B5)))=D2*E2=C$6*B2 then drag down=C$6*B2*(1-B2) then drag down=B2/$B$6 etc. If C6 ≠ n, change one count or compute “last x = n − (sum others)”.