Confidence Intervals for a Mean
A sample mean of cm is a single best guess for the population mean, but on its own it says nothing about how far off it might be. A confidence interval replaces the single number with a range, such as , built so that intervals made this way capture the true mean a stated percentage of the time. Paper 6 asks you to calculate these intervals, to find a sample size or a confidence level from one, and, just as often, to interpret one correctly in words. The calculation is short; the interpretation is where most marks are lost.
From a probability statement to an interval
Suppose the population is normal with known standard deviation , so that the sample mean satisfies . Standardising, is standard normal, and of its probability lies between and :
So
Rearrange the inequalities to put in the middle:
Read this carefully. The random quantity is , so the interval is random and is fixed. Before the sample is taken, there is a probability that the interval you are about to calculate will contain . Once you substitute the observed , you have one particular interval, called a confidence interval for .
| Confidence level | ||||
|---|---|---|---|---|
For a level of , satisfies ; for example needs , so .
The quantity is the margin of error, half the width of the interval. The interval is symmetrical about .
When the formula can be used
The syllabus covers two situations.
| Situation | What to use for | Why is normal |
|---|---|---|
| Population normal, variance known | Exactly normal for any | |
| Large sample, any population | if known, otherwise from the sample | Approximately normal by the Central Limit Theorem |
In the second case the unbiased estimate (see unbiased estimates) replaces the unknown , and the interval is approximate. With a large sample, is close enough to for this to make little difference.
A small sample from a normal population with unknown variance needs a different distribution (the -distribution), which is not on the 9709 syllabus. Paper 6 will not ask for it.
Interpreting a confidence interval
Imagine taking many random samples of the same size and calculating a confidence interval from each. The intervals jump about because each sample has a different mean. About of them contain ; about miss it. The graph below shows ten such intervals for a population with (the vertical line). Nine of them cross the line; the seventh one up misses it.
A confidence interval for is an interval calculated from a sample by a method which, if repeated for many random samples, would produce intervals containing in of cases.
Once a particular interval has been calculated, it either contains or it does not; is not a random variable. Saying "there is a probability that lies in " is the classic misstatement. Examiners accept wording such as " of intervals constructed in this way would contain the population mean".
Because each interval contains with probability before it is calculated, the number of intervals that contain , out of independent ones, has the distribution . This is a popular final part to a question.
A confidence interval also gives a quick check on a claim. If a claimed value of lies outside a confidence interval, the sample is evidence against the claim; if it lies inside, the sample is consistent with it. This is closely related to a two-tailed hypothesis test at the level.
What controls the width
The width of the interval is , so:
- A higher confidence level means a larger and a wider interval. To be more sure of catching you need a bigger net.
- A larger sample means a narrower interval, in proportion to . Quadrupling halves the width.
- A more variable population means a wider interval.
- Find . Find , or if it is unknown and is large, find from .
- Find for the confidence level from the critical value table.
- Calculate the margin of error .
- Write the interval as to 3 or 4 significant figures.
- State the justification: "the population is normal" or " is large, so by the Central Limit Theorem is approximately normal".
The lengths of rods made by a machine are normally distributed with standard deviation cm. A random sample of rods has mean length cm. Find a confidence interval for the population mean length.
Solution
The population is normal with known , so
The confidence interval is cm, to 4 significant figures.
The lifetimes, hours, of a random sample of batteries are summarised by and .
(a) Find a confidence interval for the population mean lifetime.
(b) Explain whether it was necessary to use the Central Limit Theorem.
Solution
(a)
, so the interval is
which gives hours.
(b) Yes. The distribution of battery lifetimes is not known to be normal, so the Central Limit Theorem is needed to say that the sample mean is approximately normally distributed, which is valid because is large.
A random sample of observations is taken from a population with standard deviation . A confidence interval for the population mean, calculated from the sample, is . Find the sample mean and the confidence level.
Solution
The interval is symmetrical about , so
The margin of error is , so
, so lies in each tail and the confidence level is .
The masses of a population of animals have standard deviation kg. Find the smallest sample size for which a confidence interval for the population mean has total width at most kg.
Solution
The total width is , so we need
The smallest sample size is .
Careful: the question gives the total width, so the margin of error is , not .
The journey times, minutes, of a random sample of commuters are summarised by and .
(a) Find a confidence interval for the population mean journey time.
(b) Five independent random samples of commuters are taken, and a confidence interval for the population mean is calculated from each. Find the probability that at least of these intervals contain the population mean.
Solution
(a)
, and .
For , there is in each tail, so and, from the table, .
The interval is minutes.
is large, so the Central Limit Theorem justifies treating as normal even though journey times need not be normal.
(b) Each interval contains with probability , independently. Let be the number that do; .
- Using instead of . The interval is for the mean, so it uses the standard deviation of .
- Using the one-tailed . A interval leaves in each tail, so , not . is for .
- Dividing by in . Use the unbiased estimate, dividing by .
- "There is a probability that is in this interval." is fixed. The describes the method: of such intervals contain .
- Confusing total width with margin of error. The total width is twice the margin.
- Rounding down. A sample size must satisfy the inequality, so always round up.
- Saying the interval contains of the data. It is about the mean, not individual values. Most individual values lie well outside a confidence interval for when is large.
- Show the expression with numbers in before giving the interval. A correct expression earns the method mark even if the arithmetic slips.
- Give the interval as two numbers, lower first, to at least 3 significant figures. Interval notation or the inequality are both acceptable.
- Take from the critical value table under the normal table (, , , ). For other levels read the main table carefully; examiners usually accept to 2 decimal places but expect 3.
- When asked to interpret, mention repeated sampling: "if many samples were taken, about of the intervals calculated would contain the population mean".
- "State an assumption" or "explain whether the CLT is needed" is common: either the population is normal (no CLT needed), or the sample is large (CLT needed because the population distribution is unknown or not normal).
- "Smallest " and "find the confidence level" questions are the reverse problems; set up the margin-of-error equation and solve.
- A confidence interval for : .
- for ; in general .
- Valid for a normal population with known , or for a large sample (Central Limit Theorem), using if is unknown.
- The interval is random, is fixed: of intervals made this way contain .
- The number of intervals containing , out of independent ones, is .
- Width : wider for higher confidence, narrower for larger samples.
- A claimed outside the interval is evidence against the claim.
Practice questions
- A population is normally distributed with standard deviation . A random sample of observations has mean . Find a confidence interval for the population mean.
- For a random sample of values, and . Find a confidence interval for the population mean.
- A confidence interval for a population mean, calculated from a random sample of observations from a normal population with known standard deviation , has width . Find .
- A population has standard deviation . Find the smallest sample size for which a confidence interval for the population mean has a margin of error of at most .
- A random sample of observations from a population with standard deviation gives the confidence interval for the population mean. Find the confidence level, to the nearest .
- A confidence interval for a population mean is . (a) A student says, "There is a probability of that the population mean lies between and ." Explain why this is not correct. (b) Three independent confidence intervals for the same population mean are calculated. Find the probability that exactly two of them contain the population mean.
- The lengths of a type of screw are normally distributed with standard deviation mm. A random sample of screws has mean length mm. (a) Find a confidence interval for the population mean length. (b) The manufacturer claims that the mean length is mm. Comment on this claim.
- A confidence interval for a population mean, calculated from a random sample, is . (a) Find the confidence interval calculated from the same sample. (b) The population standard deviation is known to be . Find the sample size.
Answers
-
, giving .
-
; ; . , giving . The sample is large, so the Central Limit Theorem applies.
-
Margin of error , so and .
-
. The smallest sample size is .
-
and the margin is . . , so each tail has and the level is , that is .
-
(a) The population mean is a fixed value, not a random variable, so it either lies in or it does not. The refers to the method: if many samples were taken, about of the intervals calculated would contain the population mean. (b) The number containing is . .
-
(a) , giving mm. (b) lies below the interval, so the sample gives evidence (at the level) that the mean length is not mm; the claim appears to be incorrect, and the mean appears to be higher.
-
(a) and the margin is , so . The margin is , giving . (b) , so .