Find n and p from the mean and variance
Unit 3 Topic 5: Discrete random variables
The question
The random variable \(X\) has a binomial distribution with mean 4 and variance 3.
- (a) Determine the probability of success, \(p\). [2 marks]
- (b) Determine the number of trials, \(n\). [1 mark]
- (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.
The answer, one mark at a time
-
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]
-
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]
-
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]
-
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
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\).