Example 1: Exactly k successes
A biased coin shows heads with probability 0.3. It is tossed 6 times. Find the probability of getting exactly 2 heads, and the mean and variance of the number of heads.
- Let X be the number of heads:
X ~ B(6, 0.3) P(X = 2) = C(6, 2)(0.3)²(0.7)⁴ = 15 × 0.09 × 0.2401= 0.3241E(X) = 6 × 0.3 = 1.8,Var(X) = 6 × 0.3 × 0.7 = 1.26
Answer: P(X = 2) = 0.3241, E(X) = 1.8, Var(X) = 1.26