The random variable X can take only the values 0, 1, 2. Given that \(P(X=0)=P(X=1)=p\) and \(E(X^2)=E(X)+1\), then the value of p is :
Answer & explanation
Correct answer: option 1
The correct answer is Option (1) → \(\displaystyle\frac{1}{4}\)
The probabilities add up to 1, so
\(P(X = 2) = 1 - 2p\)
The expectations:
\(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\)
Using \(E(X^2) = E(X) + 1\):
\(4 - 7p = 2 - 3p + 1\)
\(1 = 4p\)
\( \displaystyle p = \frac{1}{4} \)