Find n and p from the mean and variance

Question MM3-079 Simple familiar 4 marks Technology-free

Unit 3 Topic 5: Discrete random variables

The question

The random variable \(X\) has a binomial distribution with mean 4 and variance 3.

  1. (a) Determine the probability of success, \(p\). [2 marks]
  2. (b) Determine the number of trials, \(n\). [1 mark]
  3. (c) Determine \(P(X=0)\). Leave your answer in index form. [1 mark]

The idea. The mean is \(np\) and the variance is \(np(1-p)\). Put the mean into the variance equation and \(1 - p\) falls out.

Figure for question MM3-079A bar chart of the binomial distribution with n equals 16 and p equals one quarter. The tallest bars are around 3 and 4, with a dashed line at the mean of 4. The very short bar at 0 is highlighted.0.10.20.30246810121416number of successes in 16 trials

The answer, one mark at a time

  1. Part (a)

    Write the mean and the variance of a binomial variable, and set them equal to the given values.

    \[E(X) = np = 4\]
    \[\mathrm{Var}(X) = np(1 - p) = 3\]

    states both equations [1 mark]

  2. The first equation says \(np = 4\), so replace \(np\) in the second with 4 and solve for \(p\).

    \[4(1 - p) = 3\]
    \[1 - p = \frac{3}{4}\]
    \[p = \frac{1}{4}\]

    determines \(p\) [1 mark]

  3. Part (b)

    Go back to \(np = 4\) and divide by \(p\).

    \[n = \frac{4}{p} = \frac{4}{\frac{1}{4}}\]
    \[n = 16\]

    determines \(n\) [1 mark]

  4. Part (c)

    No successes means every one of the 16 trials fails, each with probability \(\frac{3}{4}\). The question asks for index form, so leave the power.

    \[P(X = 0) = \binom{16}{0}\left(\frac{1}{4}\right)^{0}\left(\frac{3}{4}\right)^{16}\]
    \[P(X = 0) = \left(\frac{3}{4}\right)^{16}\]

    determines the probability [1 mark]

Answer

(a)\(\displaystyle p = \frac{1}{4}\)
(b)\(\displaystyle n = 16\)
(c)\(\displaystyle P(X = 0) = \left(\frac{3}{4}\right)^{16}\)

Watch for. The variance is \(np(1-p)\), not \(np^{2}\) or \(p(1-p)\). Check your answer: \(16 \times \frac{1}{4} \times \frac{3}{4} = 3\).