Find two unknown probabilities from the mean
Unit 3 Topic 5: Discrete random variables
The question
The discrete random variable \(X\) has the probability distribution shown, where \(a\) and \(b\) are constants.
| \(x\) | 1 | 2 | 3 | 4 |
|---|---|---|---|---|
| \(P(X=x)\) | \(a\) | 0.3 | \(b\) | 0.1 |
Given that \(E(X)=2.2\), determine the values of \(a\) and \(b\), and \(Var(X)\).
The idea. Two unknowns need two equations. One comes from the probabilities adding to 1, the other from the given mean.
The answer, one mark at a time
-
The probabilities must add to 1. That gives your first equation.
\[a + 0.3 + b + 0.1 = 1\]\[a + b = 0.6\]uses the sum of the probabilities [1 mark]
-
Write \(E(X)\) with the letters in it and set it equal to \(2.2\).
\[1(a) + 2(0.3) + 3(b) + 4(0.1) = 2.2\]\[a + 0.6 + 3b + 0.4 = 2.2\]\[a + 3b = 1.2\]uses \(E(X)\) to form a second equation [1 mark]
-
Subtract the first equation from the second to remove \(a\). Then put \(b\) back in.
\[(a + 3b) - (a + b) = 1.2 - 0.6\]\[2b = 0.6\]\[b = 0.3\]\[a = 0.6 - 0.3 = 0.3\]solves for \(a\) and \(b\) [1 mark]
-
With the table complete, find each value's distance from \(2.2\), square it, and weight it by its probability.
\[\mathrm{Var}(X) = \sum (x - \mu)^{2} P(X = x)\]\[= 0.3(1 - 2.2)^{2} + 0.3(2 - 2.2)^{2}\]\[\quad + 0.3(3 - 2.2)^{2} + 0.1(4 - 2.2)^{2}\]\[= 0.3(1.2)^{2} + 0.3(0.2)^{2}\]\[+ 0.3(0.8)^{2} + 0.1(1.8)^{2}\]uses the variance formula [1 mark]
-
Work out each term and add.
\[= 0.3(1.44) + 0.3(0.04)\]\[+ 0.3(0.64) + 0.1(3.24)\]\[= 0.432 + 0.012 + 0.192 + 0.324\]\[= 0.96\]determines \(Var(X)\) [1 mark]
Answer
Watch for. Use the mean \(2.2\) in the variance, not the middle of the values. You can check with \(E(X^{2}) - \mu^{2} = 5.8 - 4.84 = 0.96\).