Mean, variance and spread from a probability table

Question MM3-033 Simple familiar 6 marks Technology-free

Unit 3 Topic 5: Discrete random variables

The question

The discrete random variable \(X\) has the probability distribution shown.

\(x\)0123
\(P(X=x)\)0.10.3\(k\)0.2
  1. (a) Determine the value of \(k\). [1 mark]
  2. (b) Determine \(P(X\ge 2)\). [1 mark]
  3. (c) Determine \(E(X)\). [1 mark]
  4. (d) Determine \(Var(X)\). [2 marks]
  5. (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.

Figure for question MM3-033A bar chart with heights 0.1 at 0, 0.3 at 1, 0.4 at 2 and 0.2 at 3. The bars at 2 and 3 are highlighted, and a line marks the mean at 1.7.0.10.20.30.40.50123value of X

The answer, one mark at a time

  1. 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]

  2. 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]

  3. 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]

  4. 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]

  5. 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]

  6. 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

(a)\(\displaystyle k = 0.4\)
(b)\(\displaystyle P(X \ge 2) = 0.6\)
(c)\(\displaystyle E(X) = 1.7\)
(d)\(\displaystyle \mathrm{Var}(X) = 0.81\)
(e)\(\displaystyle \sigma = 0.9\)

Watch for. Square the distance first, then multiply by the probability. Weighting \((x - 1.7)\) before squaring gives the wrong variance.