Question
Mathematics Question on Statistics
Three rotten apples are accidently mixed with fifteen good apples. Assuming the random variable x to be the number of rotten apples in a draw of two apples, the variance of x is
A
15337
B
15357
C
15347
D
15340
Answer
15340
Explanation
Solution
Consider 3 bad apples and 15 good apples. Let X be the number of bad apples drawn. The probabilities are:
P(X=0)=(218)(215)=153105 P(X=1)=(218)(13)⋅(115)=15345 P(X=2)=(218)(23)=1533
Calculate the expected value E(X):
E(X)=0×153105+1×15345+2×1533=15351=31
Compute the variance:
Var(X)=E(X2)−(E(X))2 E(X2)=02×153105+12×15345+22×1533=15357 Var(X)=15357−(31)2=15357−91=15340