
518 Chapter 12
Mighty Gumball has noticed a problem with their gumball dispensers. They have taken a sample
of 30 machines, and found that the mean number of malfunctions is 15. Construct a 99%
confidence interval for the number of malfunctions per month.
Q:
Does X follow a t-distribution?
A:
X follows a t-distribution when the population is normal, the
sample size is small, and you need to estimate the population
variance using the sample data.
Q:
In general, what happens to my confidence interval if the
confidence level changes?
A: If your confidence level goes down, then your confidence
interval gets narrower. If your confidence level goes up, then your
confidence interval gets wider. As an example, a 95% confidence
interval will be narrower than a 99% confidence interval for the same
set of data.
Q:
What happens to the confidence interval if the size of the
sample, n, changes?
A: If n decreases, then your confidence interval gets wider, and if
n increases, your confidence interval gets narrower.
Confidence intervals take the form
s
tatistic ± margin of error
where the margin of error is equal to c times the standard deviation
of the statistic.
The standard deviation of the statistic depends on the size of the
sample, and it gets smaller as n gets larger. In other words, the
margin of error gets smaller as n gets larger, and larger as n gets
smaller.
In general, a smaller sample leads to a wider confidence interval, and
a larger sample to a narrower one.
exercise solution
The number of breakdowns per month is modelled by a Poisson distribution. As there are 30 machines, we can
find the confidence interval using (x - cs/√n, x + cs/√n).
We need to find the 99% confidence interval, which means that c = 2.58. For the poisson distribution, the
expectation and variance are both equal to λ, so x = 15 and s
2
= 15.
The confidence interval is given by
(x - cs/√n, x + cs/√n) = (15 - 2.58 x √(15/30), 15 + 2.58 x √(15/30))
= (15 - 2.58 x √
(15/30), 15 + 2.58 x √(15/30))
= (15 - 2.58 x 0.707, 15 + 2.58 x 0.707)
= (15 - 1.824, 15 + 1.824)
= (13.176, 16.824)