Choose a probability to maximise the variance
Unit 3 Topic 5: Discrete random variables
The question
A game uses a spinner that shows 1, 2 or 3. The probability distribution of the score, \(X\), is \(P(X=1)=p\), \(P(X=2)=2p\) and \(P(X=3)=1-3p\), where \(p\) is a constant.
The game designer wants the scores to be as spread out as possible.
Determine the value of \(p\) that maximises the variance of \(X\), and the standard deviation of \(X\) for this value of \(p\).
The idea. Write the variance as a function of \(p\), then treat it like any optimisation: differentiate, set the derivative to zero, and check the answer is a valid probability.
The answer, one mark at a time
-
Every probability must be at least 0. \(p \ge 0\) and \(2p \ge 0\) need \(p \ge 0\), and \(1 - 3p \ge 0\) needs \(p \le \frac{1}{3}\).
\[p \ge 0, \quad 2p \ge 0, \quad 1 - 3p \ge 0\]\[0 \le p \le \frac{1}{3}\]determines the valid values of \(p\) [1 mark]
-
Find the mean in terms of \(p\): multiply each score by its probability and add.
\[E(X) = 1(p) + 2(2p) + 3(1 - 3p)\]\[E(X) = p + 4p + 3 - 9p\]\[E(X) = 3 - 4p\]determines \(E(X)\) in terms of \(p\) [1 mark]
-
Use \(\mathrm{Var}(X) = E(X^{2}) - \mu^{2}\). Find \(E(X^{2})\) the same way, with each score squared, then expand and collect terms.
\[E(X^{2}) = 1(p) + 4(2p) + 9(1 - 3p)\]\[= 9 - 18p\]\[\mathrm{Var}(X) = (9 - 18p) - (3 - 4p)^{2}\]\[\mathrm{Var}(X) = 9 - 18p - \left(9 - 24p + 16p^{2}\right)\]\[\mathrm{Var}(X) = 6p - 16p^{2}\]determines \(Var(X)\) in terms of \(p\) [1 mark]
-
Differentiate with respect to \(p\) and set the derivative to zero. Check the value is in the allowed range, and use the second derivative to show it is a maximum.
\[\frac{d}{dp}\mathrm{Var}(X) = 6 - 32p\]\[6 - 32p = 0 \Rightarrow p = \frac{3}{16}\]\[0 \le \frac{3}{16} \le \frac{1}{3}\]\[\frac{d^{2}}{dp^{2}}\mathrm{Var}(X) = -32 < 0, \text{ so a maximum}\]determines \(p\) and justifies the maximum [1 mark]
-
Put \(p = \frac{3}{16}\) into the variance, then take the square root for the standard deviation.
\[\mathrm{Var}(X) = 6\left(\frac{3}{16}\right) - 16\left(\frac{3}{16}\right)^{2}\]\[\mathrm{Var}(X) = \frac{18}{16} - \frac{144}{256}\]\[\mathrm{Var}(X) = \frac{288}{256} - \frac{144}{256} = \frac{9}{16}\]\[\sigma = \sqrt{\frac{9}{16}} = \frac{3}{4}\]determines the standard deviation [1 mark]
Answer
Watch for. Don't stop at the variance: the question asks for the standard deviation, so take the square root of \(\frac{9}{16}\).