Mean, variance and spread from a probability table
Unit 3 Topic 5: Discrete random variables
The question
The discrete random variable \(X\) has the probability distribution shown.
| \(x\) | 0 | 1 | 2 | 3 |
|---|---|---|---|---|
| \(P(X=x)\) | 0.1 | 0.3 | \(k\) | 0.2 |
- (a) Determine the value of \(k\). [1 mark]
- (b) Determine \(P(X\ge 2)\). [1 mark]
- (c) Determine \(E(X)\). [1 mark]
- (d) Determine \(Var(X)\). [2 marks]
- (e) Determine the standard deviation of \(X\). [1 mark]
The idea. The probabilities in a distribution add to 1, which gives \(k\). Then the mean is \(\sum x\,P(X = x)\) and the variance weights each squared distance from the mean.
The answer, one mark at a time
-
Part (a)
The probabilities must add to 1. Set up the sum and solve for \(k\).
\[0.1 + 0.3 + k + 0.2 = 1\]\[0.6 + k = 1\]\[k = 0.4\]determines \(k\) [1 mark]
-
Part (b)
At least 2 means 2 or 3. Add those two probabilities.
\[P(X \ge 2) = P(X = 2) + P(X = 3)\]\[P(X \ge 2) = 0.4 + 0.2 = 0.6\]determines the probability [1 mark]
-
Part (c)
Multiply each value by its probability and add.
\[E(X) = 0(0.1) + 1(0.3) + 2(0.4) + 3(0.2)\]\[E(X) = 0 + 0.3 + 0.8 + 0.6 = 1.7\]determines \(E(X)\) [1 mark]
-
Part (d)
Find each value's distance from the mean of 1.7, square it and weight it by its probability.
\[\mathrm{Var}(X) = 0.1(0 - 1.7)^{2} + 0.3(1 - 1.7)^{2}\]\[\quad + 0.4(2 - 1.7)^{2} + 0.2(3 - 1.7)^{2}\]uses the variance formula [1 mark]
-
Work out each term, then add.
\[= 0.1(2.89) + 0.3(0.49)\]\[+ 0.4(0.09) + 0.2(1.69)\]\[= 0.289 + 0.147 + 0.036 + 0.338\]\[= 0.81\]determines \(Var(X)\) [1 mark]
-
Part (e)
The standard deviation is the square root of the variance.
\[\sigma = \sqrt{0.81} = 0.9\]determines the standard deviation [1 mark]
Answer
Watch for. Square the distance first, then multiply by the probability. Weighting \((x - 1.7)\) before squaring gives the wrong variance.