Confidence Intervals and P Values
What P values and confidence intervals mean and do not mean, how they relate to type I and type II error and power, and how to read them in a published trial.
The P value
The P value is the probability of obtaining results at least as extreme as those observed, if the null hypothesis were true.
Put simply: if there were truly no difference between the groups, how often would chance alone produce data as extreme as these?
What the P value is not
- It is not the probability that the null hypothesis is true.
- It is not the probability that the results arose by chance.
- It is not a measure of the size or importance of an effect.
Statistical significance
The significance level, α, is chosen before the study, conventionally 0.05.
- P < α: the result is statistically significant, and the null hypothesis is rejected.
- P ≥ α: the result is not statistically significant, and the null hypothesis is not rejected. This is not evidence that there is no effect.
Points to remember
- Statistical significance is not clinical importance. A trial of 100,000 patients may show a reduction in systolic pressure of 0.5 mm Hg with P = .001. The result is statistically significant but clinically trivial.
- P values depend on sample size. Large studies can detect small differences; a small study may miss an important one.
- The 0.05 threshold is a convention. Some studies use stricter thresholds, for example when many comparisons are made.
Type I and type II errors
| Null hypothesis true | Null hypothesis false | |
|---|---|---|
| Null hypothesis rejected | Type I error (probability α) | Correct decision (probability 1 − β, the power) |
| Null hypothesis not rejected | Correct decision | Type II error (probability β) |
- A type I error is concluding that a difference exists when it does not: a false positive. Its probability is α.
- A type II error is failing to detect a difference that does exist: a false negative. Its probability is β, often set at 0.10 or 0.20 when a study is planned.
- Power (1 − β) is the probability of detecting a true difference of a specified size. It increases with a larger sample size, a larger true effect, less variability in the measurements and a higher α.
Confidence intervals
If a study were repeated many times and a 95% confidence interval calculated each time, about 95% of those intervals would contain the true value.
A confidence interval shows the range of values for the effect that are reasonably compatible with the data. Unlike a P value, it shows both the size of the effect and the precision of the estimate.
Strictly, a single calculated interval either contains the true value or does not; the 95% describes the method, not any one interval. In practice, the interval is read as the range of plausible values for the true effect.
Reading a confidence interval
For differences (difference in means, risk difference), the value of no effect is 0:
- An interval that includes 0 is not statistically significant at the corresponding level.
- An interval that excludes 0 is statistically significant.
For ratios (relative risk, odds ratio, hazard ratio), the value of no effect is 1:
- An interval that includes 1 is not statistically significant.
- An interval that excludes 1 is statistically significant.
Width: a narrow interval indicates a precise estimate, usually from a large sample; a wide interval indicates an imprecise one.
Examples
- Relative risk 1.5 (95% CI, 1.2–1.9): statistically significant, because the interval excludes 1.
- Odds ratio 2.0 (95% CI, 0.8–5.0): not statistically significant, because the interval includes 1. The wide interval also shows that the data are compatible with anything from a 20% reduction in the odds to a fivefold increase.
- A study reports P = .03. Correct interpretation: if there were no true difference, results at least this extreme would be expected about 3% of the time.
Practice
The calculators include a confidence interval calculator. The question bank has 79 questions on inference and hypothesis testing, including 38 on P values and confidence intervals.