A random variable X takes only 3 values {0, 1, 2} with \(P(X=0)=P(X=1)\). If \(E(X^2)=1+E(X)\), then Var(X) is:
Answer & explanation
Correct answer: option 3
The correct answer is Option (3) → \(\displaystyle\frac{11}{16}\)
Let P(X = 0) = P(X = 1) = p. The probabilities add up to 1, so P(X = 2) = 1 − 2p.
\(E(X) = 0\cdot p + 1\cdot p + 2(1 - 2p) = 2 - 3p\)
\(E(X^2) = 0\cdot p + 1\cdot p + 4(1 - 2p) = 4 - 7p\)
The given condition \(E(X^2) = 1 + E(X)\):
\(4 - 7p = 3 - 3p\)
\(4p = 1,\quad p = \frac{1}{4}\)
So
\( \displaystyle E(X) = 2 - \frac{3}{4} = \frac{5}{4},\qquad E(X^2) = 4 - \frac{7}{4} = \frac{9}{4} \)
By the formula \(\mathrm{Var}(X) = E(X^2) - [E(X)]^2\):
\( \displaystyle \mathrm{Var}(X) = \frac{9}{4} - \frac{25}{16} = \frac{36 - 25}{16} = \frac{11}{16} \)