The random variable X can take only the values 1 and 2. Given that \(P(X=1)=p\) and that \(E(X^2)=E(X)+1\). The value of p is:
Answer & explanation
Correct answer: option 2
The correct answer is Option (2) → \(\displaystyle\frac{1}{2}\)
X takes only the values 1 and 2, so \(P(X=2) = 1-p\). By the definition of expectation:
\(E(X) = 1(p)+2(1-p) = 2-p\)
\(E(X^2) = 1(p)+4(1-p) = 4-3p\)
Using \(E(X^2) = E(X)+1\):
\(4-3p = 3-p\)
\(2p = 1\)
\( \displaystyle p = \frac{1}{2} \)