Probability, mean and variance from a table
Unit 3 Topic 5: Discrete random variables
The question
The discrete random variable \(X\) has the probability distribution shown.
| \(x\) | 1 | 2 | 3 |
|---|---|---|---|
| \(P(X=x)\) | 0.2 | 0.5 | 0.3 |
- (a) Determine \(P(X\ge 2)\). [1 mark]
- (b) Determine \(E(X)\). [1 mark]
- (c) Determine \(Var(X)\). [2 marks]
The idea. Each value counts in proportion to its probability. The mean weights the values; the variance weights the squared distances from that mean.
The answer, one mark at a time
-
Part (a)
\(X \ge 2\) means \(X = 2\) or \(X = 3\). Add those two probabilities.
\[P(X \ge 2) = P(X = 2) + P(X = 3)\]\[P(X \ge 2) = 0.5 + 0.3 = 0.8\]determines the probability [1 mark]
-
Part (b)
Multiply each value by its probability and add.
\[E(X) = \sum x \, P(X = x)\]\[E(X) = 1(0.2) + 2(0.5) + 3(0.3)\]\[E(X) = 0.2 + 1 + 0.9 = 2.1\]determines \(E(X)\) [1 mark]
-
Part (c)
Find how far each value is from the mean of 2.1, square it, and weight it by its probability.
\[\mathrm{Var}(X) = \sum (x - \mu)^{2} P(X = x)\]\[= 0.2(1 - 2.1)^{2} + 0.5(2 - 2.1)^{2}\]\[\quad + 0.3(3 - 2.1)^{2}\]uses the variance formula [1 mark]
-
Square each distance, multiply, then add the three terms.
\[= 0.2(1.21) + 0.5(0.01) + 0.3(0.81)\]\[= 0.242 + 0.005 + 0.243\]\[= 0.49\]determines \(Var(X)\) [1 mark]
Answer
Watch for. Square the distance before you multiply by the probability. \(0.2(1 - 2.1)^{2}\) is \(0.242\), not \((0.2 \times -1.1)^{2}\).