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

Statistical significance

The significance level, α, is chosen before the study, conventionally 0.05.

Points to remember

  1. 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.
  2. P values depend on sample size. Large studies can detect small differences; a small study may miss an important one.
  3. 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 trueNull hypothesis false
Null hypothesis rejectedType I error (probability α)Correct decision (probability 1 − β, the power)
Null hypothesis not rejectedCorrect decisionType II error (probability β)

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:

For ratios (relative risk, odds ratio, hazard ratio), the value of no effect is 1:

Width: a narrow interval indicates a precise estimate, usually from a large sample; a wide interval indicates an imprecise one.

Examples

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.