In: Math
Let X be a random variable such that P(X = 1) = 0.4 and P(X = 0) = 0.6. Compute Var(X).
x p xp x2p
1 0.4 0.4 0.4
0 0.6 0 0
---------------------------------------------------------------------------------------------
Total 0.4 0.4
So,
E(X) = 0.4
Var(X) = E(X2) - (E(X))2
= 0.4 - 0.42 = 0.24
So,
Answer is:
0.24