Lesson 10: Confidence Intervals and Hypothesis Tests
A sample gives you an estimate — say, the average score in a school is 68 — but the estimate is not the truth. The true population average is somewhere nearby, and a confidence interval says where "nearby" is. A 95% confidence interval is a range built from your sample that would contain the true value in about 95 out of 100 repeated samples. It is not a promise about this particular interval — it either contains the truth or it does not — but a statement about the method: intervals built this way capture the truth 95% of the time.
The interval is built from the standard error. For a 95% interval, you take the sample estimate and add and subtract roughly twice the standard error. A worked example: a survey of 400 students finds an average score of 68 with a standard error of 1.5, so the 95% interval is roughly 68 ± 3, or 65 to 71. The interval is honest about the uncertainty in a way a single number is not, and a wide interval is itself informative: it says the data cannot pin the answer down tightly.
Hypothesis Tests: A Structured Question
A hypothesis test turns a question into a decision procedure. You start with a null hypothesis — usually the claim that nothing is happening, such as "the new timetable made no difference" — and you ask how surprising your data would be if the null were true. If the data would be very surprising under the null, you reject it; if not, you fail to reject it. Notice the careful language: failing to reject is not the same as proving the null true. It only means the data does not give strong enough evidence against it.
The measure of surprise is the p-value: the probability of seeing data as extreme as yours, or more extreme, if the null hypothesis were true. A small p-value, conventionally below 0.05, means the data would be unusual under the null, so the null is rejected. A large p-value means the data is perfectly ordinary under the null, so there is no reason to reject it. The 0.05 line is a convention, not a law of nature — it is a threshold people agreed on, and it should be treated as one.
Intervals and Tests Together
Confidence intervals and hypothesis tests are two views of the same idea. If a 95% interval for a difference excludes zero, the corresponding test at the 0.05 level rejects the null of no difference. The interval is usually the more useful of the two, because it shows the size of the effect as well as whether it is distinguishable from zero. A difference can be statistically clear and practically tiny — and the interval shows you both facts at once. Report intervals wherever you can; they carry more information than a p-value alone.
Intervals in the News
Confidence intervals appear in news reports more often than you might notice, usually disguised as a margin of error. When a poll says a candidate leads by 48% to 44% with a margin of error of 3 points, the interval for the lead runs from roughly −2 to +10 — it includes zero, so the poll does not actually show a lead at all. Headlines that ignore the margin of error report a certainty the data does not support, and readers who check the interval can see through them. Learning to read intervals is therefore not only a technical skill; it is a defence against being misled.
The same defence applies to scientific claims. A study that reports a difference with a wide interval is telling you that the effect could be large, small, or nothing at all, however small its p-value. A study that reports a narrow interval around a small effect is telling you the effect is real but tiny. In both cases the interval carries the information that matters, and the p-value alone does not. Whenever you read a claim based on data, look for the interval first; if there is none, ask why.
Key Terms
- Confidence interval
- A range built from a sample that would contain the true value in about 95 out of 100 repeated samples.
- Null hypothesis
- The default claim in a test, usually that nothing is happening or there is no difference.
- p-value
- The probability of seeing data as extreme as yours, or more extreme, if the null hypothesis were true.
- Reject the null
- Decide the evidence is strong enough to abandon the null hypothesis.
- Fail to reject
- Decide the evidence is not strong enough to abandon the null; not the same as proving it true.
- Significance level
- The threshold, conventionally 0.05, below which a p-value leads to rejecting the null.
Discussion Questions
- A 95% confidence interval is 65 to 71. Does that mean there is a 95% chance the true value is in that range? Why is that wording wrong?
- Why is 'failing to reject' not the same as proving the null hypothesis true?
- A result is statistically significant but the effect is tiny. Should anyone act on it? Why?
Practice Questions
- A survey finds an average of 68 with a standard error of 1.5. What is the approximate 95% confidence interval?
- What does a 95% confidence interval mean?
- What is the null hypothesis?
- What is a p-value?
- Why is a confidence interval usually more useful than a p-value alone?
Show answers
- Roughly 65 to 71. Take the estimate and add and subtract about twice the standard error: 68 ± 3.
- That intervals built this way would contain the true value in about 95 out of 100 repeated samples. It is a statement about the method, not a probability about one particular interval.
- The default claim in a test, usually that nothing is happening — for example, that a new timetable made no difference.
- The probability of seeing data as extreme as yours, or more extreme, if the null hypothesis were true. A small p-value means the data would be surprising under the null.
- Because it shows the size of the effect as well as whether it is distinguishable from zero — a difference can be statistically clear and practically tiny, and the interval shows both.