Two numbers are selected at random (without replacement) from the first five positive integers. Let X denote the larger of the two numbers. The mean and the variance of X are
Answer & explanation
Correct answer: option 1
The correct answer is Option (1) → Mean = 4, Variance = 1
The number of ways of choosing 2 numbers from 1, 2, 3, 4, 5 is
\({}^{5}C_{2} = 10\)
The larger number is k when the other number is one of 1, 2, …, k − 1, which happens in k − 1 ways. So X takes the values 2, 3, 4, 5 with the probability distribution
\( \displaystyle P(X = 2) = \frac{1}{10},\quad P(X = 3) = \frac{2}{10},\quad P(X = 4) = \frac{3}{10},\quad P(X = 5) = \frac{4}{10} \)
The mean is
\( \displaystyle E(X) = \frac{2(1) + 3(2) + 4(3) + 5(4)}{10} \)
\( \displaystyle = \frac{2 + 6 + 12 + 20}{10} = 4 \)
Also
\( \displaystyle E(X^{2}) = \frac{4(1) + 9(2) + 16(3) + 25(4)}{10} \)
\( \displaystyle = \frac{4 + 18 + 48 + 100}{10} = 17 \)
The variance is
\(\mathrm{Var}(X) = E(X^{2}) - [E(X)]^{2}\)
\(= 17 - 16 = 1\)
Why the other options are incorrect
Option (2) Mean = 4, Variance = 17 — Incorrect. 17 is \(E(X^{2})\); the square of the mean, 16, has not been subtracted.
Option (3) Mean = 3, Variance = 2 — Incorrect. These are the mean and variance of a single number picked from 1 to 5, not of the larger of two.
Option (4) Mean = \(\displaystyle\frac{7}{2}\), Variance = 1 — Incorrect. 7/2 is the plain average of the values 2, 3, 4, 5; the larger values are more likely, which makes the mean 4.