In a housing society, 80% of the residents support and 20% oppose a plan to install solar panels. A resident is selected at random and we take X = 0 if the resident opposes, and X = 1 if the resident supports the plan. Then E(X) and Var(X) are
Answer & explanation
Correct answer: option 4
The correct answer is Option (4) → E(X) = 0.8, Var(X) = 0.16
The probability distribution of X is
\(P(X = 0) = 0.2,\quad P(X = 1) = 0.8\)
The mean is
\(E(X) = 0 \times 0.2 + 1 \times 0.8 = 0.8\)
Also
\(E(X^2) = 0^2 \times 0.2 + 1^2 \times 0.8 = 0.8\)
So the variance is
\(\mathrm{Var}(X) = E(X^2) - [E(X)]^2\)
\(= 0.8 - 0.64\)
\(= 0.16\)