Chapter 14 · Making sense of numbers

Is the difference real or due to chance?

Null hypothesis, p-value, confidence interval and type I and II errors.

35 TNMGRMU questions answered hereset 48 times, 1990–2025

The problem first

You are a final-year MD Medicine resident. Your thesis compares two antihypertensive drugs in 50 patients each. Drug A lowers systolic blood pressure 5 mmHg more than Drug B, with p = 0.04.

In the discussion you write: "There is only a 4% chance that this result is due to chance, so Drug A is better." The examiner reads that line and asks one question.

"What does p = 0.04 actually mean?"

Start here

Are you describing your patients, or drawing a conclusion about all patients?

Descriptive statistics summarise the patients you studied. Inferential statistics use those patients to draw a conclusion about all similar patients, and state how uncertain that conclusion is.

The patients you studiedAll similar patientsinferenceyou can measure themthe true difference is unknownDescriptive: mean, SD, %Inferential: CI, p-value
Hypothesis testing and confidence intervals are inferential methods. Summaries such as mean, SD and percentages are covered in the descriptive statistics chapter.
FeatureDescriptive statisticsInferential statistics
PurposeSummarise the data you collectedDraw conclusions about the population the sample came from
Applies toThe sample onlyThe population, with a stated uncertainty
ToolsMean, median, SD, percentages, tables, graphsConfidence intervals, tests of significance, regression
Needs probabilityNoYes: it assumes random sampling or random allocation
ExampleMean fall in blood pressure in each group, with SDDrug A lowered pressure 5 mmHg more (95% CI 0.2 to 9.8), p = 0.040

Two types of hypothesis

What exactly are you testing?

Before collecting data, you write two statements about the population. The test is carried out on the first one.

FeatureNull hypothesis (H₀)Alternative hypothesis (H₁)
StatesNo difference, or no associationA difference, or an association, exists
Written asμA = μB, or risk ratio = 1μA ≠ μB (two-sided), or μA > μB (one-sided)
ExampleMean fall in blood pressure is the same with Drug A and Drug BMean fall in blood pressure differs between Drug A and Drug B
Role in the testThe p-value is calculated assuming H₀ is trueSupported only when the data lead you to reject H₀
Possible conclusionsRejected, or not rejected. Never proved.Accepted when H₀ is rejected

The asymmetry is deliberate. A test can show that the data are hard to explain if H₀ is true. It cannot show that H₀ is true. Fisher wrote in 1935 that "the null hypothesis is never proved or established, but is possibly disproved, in the course of experimentation." In the same way that a court verdict of "not guilty" is not a finding of innocence, "not significant" is not a finding of no difference.

In a superiority trial, H₀ is that the new treatment and the control have the same effect. In a non-inferiority trial, H₀ is that the new treatment is worse than the control by at least a pre-set margin. Trial designs are covered in the clinical trials chapter.

Write the hypotheses in symbols as well as in words. H₀ always holds the equality (=, ≤ or ≥). H₁ holds the strict inequality (≠, > or <), and its direction tells you which tail of the distribution the test uses.

H₁, the claim you want to showH₀, the hypothesis testedTailsTeaching example
μnew ≠ μstandardμnew = μstandardTwo-tailed, α ÷ 2 in each tailMean HbA1c at 12 weeks differs between the new and the standard drug
μnew > μstandardμnew ≤ μstandardOne-tailed, all of α in the upper tailMean rise in haemoglobin is greater with the new iron preparation
μnew < μstandardμnew ≥ μstandardOne-tailed, all of α in the lower tailMean time to wound healing is shorter with the new dressing

For a one-tailed test, write H₁ first, because it states the direction you expect, and then write H₀ as everything else. When to use one tail is discussed in the section on one-tailed and two-tailed tests below.

Sampling distribution

If you repeated the study, how much would the result change?

Each sample gives a slightly different mean. The distribution of those means over all possible samples of the same size is the sampling distribution, and its standard deviation is the standard error (SE).

2,000 individual patientsMeans of 1,000 samples, 30 patients eachskewed, SD 3.9 daysnearly symmetrical, SE 0.71 days05101520+Length of hospital stay (days)
Teaching simulation of length of hospital stay, a skewed measurement, with a population mean of 5.9 days and an SD of 3.9 days (dashed line: population mean). Top: 2,000 individual patients, with stays above 20 days drawn in the last bar. Bottom: the means of 1,000 samples of 30 patients each. Each panel is scaled to its own tallest bar.

Every test and confidence interval in this chapter relies on three facts shown in the figure.

  1. Sample means are centred on the population mean. With random sampling, the mean of a study does not systematically overestimate or underestimate the population mean.
  2. Sample means vary far less than individual patients. SE = SD ÷ √n = 3.9 ÷ √30 = 0.71 days, less than one-fifth of the SD.
  3. Sample means follow a nearly normal distribution even when the measurement is skewed, if the sample is large enough. This is the central limit theorem. The more skewed the measurement, the larger the sample needed. With a small sample of a skewed measurement, use a test that does not assume a normal distribution.

The variation between samples is called sampling error. It is not a mistake by the investigator, and a larger sample reduces it. Errors in measuring, recording or selecting patients are different, and a larger sample does not reduce them. The difference between two group means also has a sampling distribution, with its own SE, and the next section uses it. The SD and SE are compared in the descriptive statistics chapter.

How a test works

How does a test decide whether a difference is real?

It assumes there is no difference, works out how results would vary by chance alone, and then asks how unusual your result would be.

−10−50+5+10Difference between the drugs (mmHg)If the drugs were equal, trial results would vary like thisyour result: 5 mmHgred areas together= p = 0.04as far from 0in the other direction
If the drugs were equal, most trials of this size would show a difference close to 0. A difference of 5 mmHg or more, in either direction, would occur in about 4 of every 100 such trials. That proportion is the p-value. Teaching example: SD 12 mmHg in both groups, 50 patients per group.

t = difference ÷ SE of the difference

difference
mean fall with Drug A minus mean fall with Drug B, here 5 mmHg
SE
standard error of the difference = SD × √(2 ÷ n) for two groups of n patients with the same SD
t
how many standard errors your result lies from 0

SE = 12 × √(2 ÷ 50) = 2.4 → t = 5 ÷ 2.4 = 2.08, df 98 → p = 0.040

df (degrees of freedom) = 50 + 50 − 2 = 98. The p-value comes from the t distribution with 98 df. Statistical software does this step.

t is a test statistic, a number calculated from the data whose distribution is known when H₀ is true. Because that distribution is known, the test can state how often a value this far from 0 would occur by chance. The four test statistics you will meet most often are listed below.

Test statisticDistribution when H₀ is trueUsed for
zStandard normalProportions, and means in large samples
tStudent's t, which depends on the degrees of freedomOne mean, two means, paired differences, regression coefficients
χ² (chi-square)Chi-square, which depends on the degrees of freedomCounts in a table, goodness of fit
FF, which depends on two degrees of freedomThree or more means (ANOVA), and comparing two variances

t becomes larger, and p smaller, with any of three changes to the teaching example:

  • A larger difference. 10 mmHg instead of 5 gives t = 4.17 and p < 0.001.
  • More patients. 100 per group instead of 50 gives SE = 1.70, t = 2.95 and p = 0.004.
  • Less variation between patients. SD 6 instead of 12 gives SE = 1.2, t = 4.17 and p < 0.001.

Decide

Tests of significance: which test for which data?

A test of significance is a procedure that turns your data into a test statistic (t, χ², F) and a p-value for a stated null hypothesis. The right test depends on the type of outcome, the number of groups, whether the groups are paired, and the distribution of the data.

What kind of outcome are you comparing?

Which test: all possible answers
  • Unpaired (independent samples) t-test: Compares two means. For three or more groups use ANOVA, not several t-tests.
  • Mann-Whitney U test: Compares two independent groups without assuming a normal distribution.
  • One-way ANOVA: Compares three or more means with one F test. If it is significant, a post hoc test shows which groups differ.
  • Kruskal-Wallis test: The non-parametric test for three or more independent groups.
  • Paired t-test: Tests whether the mean of the within-patient differences is zero.
  • Wilcoxon signed-rank test: The non-parametric test for paired measurements.
  • ANCOVA (analysis of covariance): Compares group means after adjusting for a covariate such as the baseline value of the outcome.
  • Chi-square test: Compares the observed counts with the counts expected if H₀ were true.
  • Fisher's exact test: Gives an exact p-value for a 2 × 2 table when expected counts are small.
  • McNemar's test: For paired yes/no results, such as the same patients before and after treatment.
  • Log-rank test: Compares survival curves between groups.
  • Correlation or regression: Pearson's or Spearman's correlation, or a regression model.

Parametric tests (t-test, ANOVA) assume the data follow a known distribution, usually normal. Non-parametric tests (Mann-Whitney, Wilcoxon, Kruskal-Wallis) use ranks and make fewer assumptions. The choosing a test chapter covers assumptions, checks and worked examples for each test. How to check whether data are normal enough, and what to do when they are not, is in the Practical Statistics chapter on checking assumptions.

The p-value

What does p = 0.04 tell you, and what does it not tell you?

The p-value is the probability of getting a result at least as extreme as yours if the null hypothesis were true.

p = 0.040 in the teaching example means: if Drug A and Drug B were truly equal, a difference of 5 mmHg or more in either direction would occur in about 4% of trials of this size. The data are hard to explain by chance alone, so H₀ is doubted.

It does not mean:

  • a 4% chance that H₀ is true. The p-value is calculated by assuming H₀ is true, so it cannot give the probability that H₀ is true.
  • a 4% chance that the result is due to chance. This is the sentence in the resident's thesis.
  • that the difference is large or important. A tiny difference in a very large study gives a very small p-value.
  • a 96% chance that the result will be repeated in another study.
  • that, if you reject H₀, the chance your significant result is a false positive is 4% or 5%. If H₀ is actually true, rejecting it is wrong every time. α describes how often false positives occur over many studies in which H₀ is true (Greenland et al., 2016). The chance that one significant result is false also depends on how plausible the hypothesis was before the study and on the power of the study. This is the same reasoning that turns a pre-test probability into a post-test probability, covered in the Practical Statistics chapter on Bayes' rule and combining tests.

In 2016 the American Statistical Association published six principles on p-values:

  1. P-values can indicate how incompatible the data are with a specified statistical model.
  2. P-values do not measure the probability that the studied hypothesis is true, or the probability that the data were produced by random chance alone.
  3. Scientific conclusions and business or policy decisions should not be based only on whether a p-value passes a specific threshold.
  4. Proper inference requires full reporting and transparency.
  5. A p-value, or statistical significance, does not measure the size of an effect or the importance of a result.
  6. By itself, a p-value does not provide a good measure of evidence regarding a model or hypothesis.

Report the exact value (p = 0.040, not "p < 0.05"), together with the effect size and its 95% confidence interval.

Level of significance

Who decides that 0.05 is significant, and when?

You do, before the study starts. The level of significance (α) is the false-positive rate you are willing to accept. If p ≤ α, the result is called statistically significant.

The 0.05 level comes from Ronald Fisher's 1925 book Statistical Methods for Research Workers: "The value for which P = .05, or 1 in 20, is 1.96 or nearly 2; it is convenient to take this point as a limit in judging whether a deviation is to be considered significant or not." He called it convenient. It is a convention, not a law. Some studies use 0.01, for example when a false positive would be especially harmful.

FeatureLevel of significance (α)p-value
What it isThe false-positive rate you acceptThe probability of a result at least this extreme if H₀ were true
Set byYou, in the protocol, before the dataThe data, after the analysis
Usual value0.05, sometimes 0.01Any value from 0 to 1
How it is usedThe thresholdCompared with α: p ≤ α is called significant
Belongs toThe procedureYour particular result

Critical value

What is a critical value, and why do p and t point in opposite directions?

α and the critical value state the same threshold in two forms. The p-value and the test statistic state the same result in two forms. So comparing p with α always gives the same decision as comparing the test statistic with the critical value.

t before the critical valuecritical t = 2.09 (dashed), t = 1.60 (red)1234t = 1.60 < 2.09, so p = 0.125 > 0.05not significant: do not reject H₀t beyond the critical valuecritical t = 2.09 (dashed), t = 2.60 (red)1234t = 2.60 ≥ 2.09, so p = 0.017 ≤ 0.05significant: reject H₀
Upper tail of the t distribution with 20 df, two-tailed test at α = 0.05 (teaching values). The blue area beyond the critical value of 2.09 is 0.025, half of α. The red area beyond the observed t is half of the p-value. Left: t = 1.60 lies before the critical value, so its tail area is larger than the blue area and p > α. Right: t = 2.60 lies beyond it, so its tail area is smaller and p ≤ α.
FeatureThreshold, fixed before the studyResult, calculated from your data
As a probability (an area under the curve)α, for example 0.05p-value, for example 0.017
As a value of the test statistic (a point on the axis)Critical value, for example t = 2.09 with 20 dfObserved test statistic, for example t = 2.60
How it is foundYou choose α. The critical value follows from α, the degrees of freedom and the number of tails.The data give t. The p-value follows from t, the degrees of freedom and the number of tails.

Significant when p ≤ α, which is the same as |test statistic| ≥ critical value

The signs point in opposite directions because a test statistic further from 0 leaves a smaller area beyond it. A large t, χ² or F goes with a small p. The rejection region (critical region) is the set of test statistic values at or beyond the critical value. If your test statistic falls in it, H₀ is rejected.

For a two-tailed t or z test, the rejection region is in both tails, so compare the absolute value of t with the critical value. χ² and F cannot be negative, and larger values mean a larger departure from H₀, so their rejection region is in the upper tail only. Teaching values at α = 0.05: the critical χ² with 1 df is 3.84, and the critical F with 2 and 27 df is 3.35.

Software prints the exact p-value, so you rarely need the critical value to reach a decision. It is still what statistical tables give, and the critical value multiplied by the SE gives the half-width of a confidence interval (1.984 × 2.4 in the teaching example).

Degrees of freedom

What are degrees of freedom, and why does the critical t depend on them?

Degrees of freedom (df) are the number of values that are free to vary once the quantities estimated from the data are fixed. For t, χ² and F tests they decide which curve, and so which critical value, is used.

Four readings, mean fixed at 130124free138free121free137fixed4 × 130 − (124 + 138 + 121)= 520 − 383 = 1374 values − 1 mean = 3 df−4−201.964.30tcritical t, α = 0.052 df: 4.305 df: 2.5730 df: 2.04normal: 1.96
Left, teaching example: four systolic readings with a mean of 130 mmHg. Once three readings are known (124, 138 and 121), the fourth must be 137. Only 3 of the 4 values are free, so the SD of these readings has 4 − 1 = 3 df. Right: the t distribution with 2 or 5 df has heavier tails than the normal curve, so its two-tailed critical value at α = 0.05 is larger. It is 4.30 with 2 df, 2.57 with 5 df, 2.04 with 30 df and 1.96 for the normal distribution.

The t distribution is used in place of the normal distribution when the SD is estimated from the sample, because the sample SD also varies from sample to sample. Its heavier tails allow for that extra uncertainty. As the degrees of freedom increase, t approaches the normal distribution. The critical value is 2.09 with 20 df, 1.98 with 98 df and 1.96 for the normal curve.

TestDegrees of freedomTeaching example
One-sample t test, paired t testn − 1 (n = number of patients or pairs)25 pairs → 24 df
Unpaired t test, equal variancesn₁ + n₂ − 250 + 50 patients → 98 df
Chi-square test, r × c table(r − 1) × (c − 1)2 × 3 table → 2 df
Chi-square goodness of fitk − 1 (k = number of categories), minus one more for each parameter estimated from the data4 blood groups → 3 df
One-way ANOVAk − 1 between groups and N − k within groups (k groups, N patients)3 groups of 10 → 2 and 27 df
Pearson correlation, simple linear regressionn − 240 patients → 38 df

The sample variance divides by n − 1 instead of n for the same reason: one degree of freedom is used in estimating the mean. Worked t tests with their degrees of freedom are in the choosing a test chapter.

Interactive

Move the test statistic and watch p cross α as t crosses the critical value

α and the degrees of freedom fix the critical t. Your data fix t and the p-value. The two comparisons always give the same decision.

Try this: move t slowly from 2.00 to 2.10. The p-value falls below 0.05 at the same moment that t passes the critical value of 2.09. Then leave t at 2.00 and change the degrees of freedom from 20 to 120. The critical t falls to 1.98, so the same t is now significant.

Two-tailed t test. The blue area is α, split between the two tails. The red area is the p-value. The dashed curve is the normal (z) distribution, drawn for comparison.

2.00

t = difference ÷ standard error of the difference

20

Unpaired t test: n₁ + n₂ − 2

Level of significance, α

Chosen before the data are collected

±2.09critical t (from α and df)
0.059p-value (from t and df)

p > α (0.059 > 0.05) and |t| < critical t (2.00 < 2.09): do not reject H₀, the difference is not statistically significant.

−6−4−20246−2.092.09t = 2.00Value of t if H₀ were true
α (rejection region)p-valuecritical t, and the normal curve

Comparison

One-tailed or two-tailed: which direction are you testing?

A two-tailed test looks for a difference in either direction. A one-tailed test looks in one direction only, and ignores a difference in the other direction however large it is.

Two-tailed test5% split: 2.5% in each tail0−1.961.962.5%2.5%z = 1.80p = 0.072, not significantOne-tailed testall 5% in one tail01.6455%z = 1.80p = 0.036, significant
The same result, z = 1.80, is significant in a one-tailed test and not significant in a two-tailed test. For this reason the choice must be made in the protocol. Choosing a one-tailed test after seeing which way the result went gives a false-positive rate of 10%, not 5%.
FeatureTwo-tailedOne-tailed
H₁Drug A differs from Drug B, in either directionDrug A is better than Drug B
Critical z at α = 0.05±1.961.645
p for the same dataTwice the one-tailed p (for symmetric tests)Half the two-tailed p
Use whenA difference in either direction would matterA difference in the other direction is impossible or would be acted on as no difference, decided in advance
ICH E9Consistent with two-sided confidence intervalsSet one-sided α at half the two-sided value (0.025 instead of 0.05)

Interactive

Move the observed difference and watch the one-tailed and two-tailed p-values

The p-value is the red area under the curve at and beyond your result. A two-tailed test adds the area in both directions. A one-tailed test counts only the direction named in advance.

Try this: move the difference to any value from 4.0 to 4.7 mmHg. There the one-tailed p-value is below 0.05 and the two-tailed p-value is not. Then move it below zero. The one-tailed test for "Drug A is better" then gives p above 0.5, however large the difference.

Teaching example from this chapter: SD 12 mmHg, 50 patients per group, so the SE of the difference is 2.4 mmHg and t has 98 degrees of freedom. α = 0.05. The red area is the p-value.

+4.5 mmHg

Positive: Drug A lowered pressure more. t = difference ÷ 2.4

0.064two-tailed p
0.032one-tailed p (H₁: Drug A is better)

t = +4.5 ÷ 2.4 = +1.88, df 98 · critical t 1.98 (two-tailed), 1.66 (one-tailed)

Two-tailed testarea beyond t in both directions0−1.98+1.98t = +1.88p = 0.064, not significantOne-tailed testarea above t only0+1.66t = +1.88p = 0.032, significant
observed tcritical t at α = 0.05

Two types of error

In what ways can a test give the wrong answer?

The test gives a decision, and the truth is unknown. So there are four possible combinations, and two of them are errors.

What is actually trueNo real differenceH₀ trueA real differenceH₀ falseYour test sayssignificant(reject H₀)Your test saysnot significant(do not reject H₀)Type I errorfalse positiveprobability α (usually 0.05)Correctreal difference detectedprobability 1 − β = powerCorrectno difference reportedprobability 1 − αType II errorfalse negativeprobability β
α is fixed by you (usually 0.05). β depends mainly on the sample size, the size of the true difference and the variability of the outcome. Power = 1 − β, the probability of detecting a real difference of a stated size. How to plan for power is covered in the sample size chapter.
FeatureType I error (α error)Type II error (β error)
MeaningRejecting H₀ when it is trueNot rejecting H₀ when it is false
ResultFalse positive: a difference reported that is not realFalse negative: a real difference missed
Probabilityα, set by you, usually 0.05β; power = 1 − β
Main causesChance, many tests, choosing the analysis after seeing the dataToo few patients, large variability, a small true difference
Reduced byA stricter α, pre-specified outcomes, correction for multiple testsA larger sample, more precise measurement
Clinical consequenceAn ineffective treatment is adoptedAn effective treatment is abandoned

For a fixed sample size, lowering α raises β. The only way to reduce both at once is to study more patients or to measure the outcome more precisely.

Interactive

Run 100 trials and count how many are significant

When no difference is real, every significant trial is a type I error. When a difference is real, the share of trials that are significant is the power, and every trial that is not significant is a type II error.

Try this: set the true difference to 0 and press "Run 100 new trials" a few times. About 5 of every 100 trials are significant. Then set it to 5 mmHg and change the patients per group from 50 to 100.

Teaching simulation: each trial compares the fall in systolic blood pressure with Drug A and Drug B, using an unpaired t-test.

5 mmHg

0 means H₀ is true

12 mmHg

More spread: wider intervals, fewer significant trials

50

More patients: narrower intervals, more power

α (two-sided)

Lower α: fewer false positives, more false negatives

50 of 100trials significant at α = 0.05

A real difference of 5 mmHg exists. Trials that detected it: 50. False negatives (type II errors): 50. Expected power about 55% (normal approximation).

95% CI = difference ± 1.984 × SE, df 98 · expected SE 2.40 mmHg

difference, mmHg−30−20−10010203040Each vertical line is one trial's 95% confidence interval for the difference
significant: the interval excludes 0not significanttrue difference

Confidence intervals

What does a 95% confidence interval actually mean?

It is a range calculated from your sample. If the same study were repeated many times, 95% of the intervals calculated this way would include the true value.

40455560true 50Each vertical line is the 95% CI from one study of 25 patients
Forty simulated studies, each of 25 patients, drawn from a population whose true mean is 50. 38 of the 40 intervals include 50 and 2 (red) do not. The 95% describes the method over many studies. Any single interval either contains the true value or does not.

95% CI = estimate ± t × SE (t is close to 1.96 in large samples)

5 ± 1.984 × 2.4 = 0.24 to 9.76 mmHg

In the teaching example, the data are compatible with Drug A being better by as little as 0.24 mmHg or by as much as 9.76 mmHg. The interval is wide because 50 patients per group is a small study. A larger sample, a less variable outcome, or a lower confidence level (90% instead of 95%) gives a narrower interval.

For a proportion, the same method uses the SE of a proportion. Teaching example: nausea after surgery in 18 of 60 patients, p = 0.30.

95% CI = p ± 1.96 × √[p(1 − p) ÷ n] = 0.30 ± 1.96 × 0.059 = 0.18 to 0.42

This simple (Wald) interval is inaccurate when n is small or p is close to 0 or 1, and it can give limits below 0 or above 1. In those situations ask the software for the Wilson interval (0.20 to 0.43 here) or the exact Clopper-Pearson interval (0.19 to 0.43).

When no events occur, for example no wound dehiscence in 40 operations, the observed proportion is 0 and the formula gives an interval of zero width. A quick 95% upper limit is 3 ÷ n, the "rule of three" described by Hanley and Lippman-Hand in 1983: 3 ÷ 40 = 7.5%. The exact one-sided 95% upper limit is 7.2%. So no complications in 40 operations is compatible with a true rate of up to about 7%.

The confidence interval was set out by Jerzy Neyman in the 1930s. The standard error and its link with the SD are covered in the descriptive statistics chapter.

Comparison

Confidence interval or p-value: why do journals ask for both?

They are calculated from the same data and agree with each other. The confidence interval gives more information.

Featurep-value95% confidence interval
AnswersHow compatible are the data with no difference?Which sizes of difference are compatible with the data?
OutputOne number from 0 to 1A range in the units of the outcome (mmHg, %, odds ratio)
Shows the size of the effectNoYes
Shows precisionNoYes: a narrow interval is precise
Effect of a large sampleA very small difference becomes significantThe interval becomes narrow
How they agreep < 0.05 (two-sided)The 95% CI for a difference excludes 0, or for a ratio (OR, RR) excludes 1
Teaching examplep = 0.0400.24 to 9.76 mmHg

Two separate intervals are not a test of the difference. Teaching example with SD 12 mmHg and 50 patients per group: the mean fall is 14.0 mmHg with Drug A (95% CI 10.6 to 17.4) and 8.0 mmHg with Drug B (95% CI 4.6 to 11.4). The two intervals overlap. The difference of 6.0 mmHg has a 95% CI of 1.2 to 10.8 mmHg, which excludes 0, and p = 0.014.

overlap0Drug A, mean fall14.0 (10.6 to 17.4)Drug B, mean fall8.0 (4.6 to 11.4)Difference, A − B6.0 (1.2 to 10.8), p = 0.01405101520mmHg
Greenland and colleagues (2016) list "If two confidence intervals overlap, the difference between two estimates or studies is not significant" as a misinterpretation. The reverse does hold: if two 95% intervals do not overlap, p is below 0.05 for the difference. Estimate the difference itself, with its own confidence interval.

Comparison

When p > 0.05, why write "H₀ not rejected" and not "H₀ accepted"?

A test can show that the data are hard to explain if H₀ is true. When p is above α, the data are compatible with H₀, but they are usually just as compatible with many other values.

Take the teaching trial of 10 patients per group with an observed difference of 10 mmHg. For H₀ "no difference", p = 0.08, so H₀ is not rejected. The 95% confidence interval is −1.3 to 21.3 mmHg. Test the same data against H₀ "the true difference is 15 mmHg" and p = 0.36. Against 20 mmHg, p = 0.08. None of these is rejected. If "not rejected" meant "accepted", you would be accepting a true difference of 0, 15 and 20 mmHg at the same time.

For a t test, the 95% confidence interval is the set of hypothesised values that a two-tailed test at α = 0.05 does not reject. This is why the interval gives more information than the words "not significant". It shows which values remain possible.

  • If you see "accept H₀" in a book or a printout, read it as "H₀ not rejected".
  • Write "not statistically significant", not "insignificant". A difference that is not significant can still be large enough to matter, as in this trial.
  • To conclude that two treatments do not differ by an important amount, the study must be designed for it. Fix a margin in advance and show that the whole confidence interval lies inside it. This is explained in the Practical Statistics chapter on equivalence and non-inferiority tests.

Interactive

Move the hypothesised difference and watch which values the data reject

The curve gives the p-value for every hypothesised true difference. Values where the curve is above 0.05 are not rejected, and together they make up the 95% confidence interval.

Try this: with the trial of 10 patients per group, H₀ "no difference" (0 mmHg) gives p = 0.079 and is not rejected. Now move the hypothesised difference to 15 mmHg. That value is not rejected either (p = 0.364). The data cannot tell 0 from 15, so neither can be accepted. Then switch to 50 patients per group and see how many values are now rejected.

Teaching trials from this chapter, SD 12 mmHg: 10 per group with an observed difference of 10 mmHg, and 50 per group with an observed difference of 5 mmHg. Two-tailed t test at α = 0.05.

Trial

Observed difference 10 mmHg, SE 5.37, df 18

0.0 mmHg

t = (observed difference − hypothesised difference) ÷ SE

0.079p for H₀: true difference = 0.0 mmHg
Not rejectedat α = 0.05

t = (10 − 0.0) ÷ 5.37 = 1.86, df 18. 95% CI −1.3 to 21.3 mmHg: every hypothesised difference inside it gives p > 0.05.

00.51pp = 0.05−10−50510152025Hypothesised true difference (mmHg)95% CI
p-value for each hypothesised differenceα = 0.05the value being tested

Comparison

Statistically significant, but does it matter to the patient?

Statistical significance says the difference is unlikely to be due to chance alone. Clinical significance says the difference is large enough to change treatment. They answer different questions.

no differencesmallest important difference: 55,000 per group1.0 (0.5 to 1.5), p < 0.001Significant, but toosmall to matter100 per group10.0 (6.7 to 13.3), p < 0.001Significant andclinically important10 per group10.0 (−1.3 to 21.3), p = 0.08Not significant:inconclusive2,000 per group0.5 (−0.2 to 1.2), p = 0.19Not significant, andrules out 5 mmHg−50510152025
Four teaching trials, SD 12 mmHg. Compare each confidence interval with the smallest difference that matters to patients (the minimal clinically important difference, MCID), fixed before the study. The p-value alone cannot separate the first trial from the second, or the third from the fourth.
FeatureStatistical significanceClinical significance
QuestionIs the difference likely to be due to chance alone?Is the difference large enough to matter to patients?
Judged byp-value compared with αEffect size and its CI compared with the MCID
Depends on sample sizeStronglyNo
Decided byThe statistical testClinicians and patients, before the study
ExampleA 1 mmHg fall with 5,000 per group: p < 0.001A 1 mmHg fall does not change management

Multiple testing

What happens when you test many outcomes?

Each test at α = 0.05 has a 5% chance of a false positive. With many tests, the chance that at least one is falsely significant becomes large.

1 test5.0%2 tests9.8%5 tests22.6%10 tests40.1%20 tests64.2%5%chance of at leastone false positivewhen no difference is real
Assumes the tests are independent and no real difference exists for any of them.

P(at least one false positive) = 1 − (1 − α)k → 1 − 0.9510 = 0.401

The Bonferroni correction divides α by the number of tests, k. With 10 tests, each is judged at 0.05 ÷ 10 = 0.005. The chance of any false positive across the 10 tests then stays below 5% (4.9%). An equivalent approach multiplies each p-value by k and compares it with 0.05.

α per test = α ÷ k = 0.05 ÷ 10 = 0.005

The correction is conservative. It lowers power, especially when k is large or the outcomes are closely related. Methods that control the false discovery rate are less strict. The better solution is to name one primary outcome in the protocol, so that fewer tests are confirmatory. Other correction methods, including the tests used after ANOVA, are covered in the Practical Statistics chapter on multiple comparisons.

An example from a major trial. ISIS-2 (1988) randomised 17,187 patients with suspected myocardial infarction. Aspirin reduced the odds of vascular death by 23% overall. Among the subgroup analyses, patients born under the astrological signs of Gemini or Libra showed no apparent benefit from aspirin. This is a chance finding produced by testing many subgroups.

Interactive

Add more tests and watch the chance of a false positive rise

Each extra test at α = 0.05 adds another chance of a false positive. The Bonferroni correction judges each test at α divided by the number of tests.

Try this: move the number of tests from 1 to 20. The chance of at least one false positive rises from 5.0% to 64.2%. With the Bonferroni correction it stays at 5% or just below.

Every test here compares groups that do not really differ, and the tests are independent. Each test on its own has a 5% chance of p ≤ 0.05.

10

Outcomes, time points or subgroups tested

40.1%chance of at least one false positive, each test at 0.05
4.9%with Bonferroni, each test at 0.05 ÷ 10 = 0.005

1 − 0.9510 = 0.401 · 1 − (1 − 0.005)10 = 0.049

Simulation of 1,000 studies, each with 10 tests: 397 had at least one p ≤ 0.05, and 55 had at least one p ≤ 0.005. The first of these studies is drawn below. It has 1 of 10 p-values ≤ 0.05, and 0 ≤ 0.005.

0.05Bonferroni 0.0050.00010.0010.010.11p-value (log scale), one dot per test

By specialty

Hypothesis testing problems by specialty

A thesis compares two antihypertensive drugs. Drug A lowers systolic pressure 5 mmHg more than Drug B: p = 0.040, 95% CI 0.2 to 9.8 mmHg.

Report the interval. It includes differences too small to matter and differences large enough to change practice.

Common myths

Common mistaken beliefs

  • Myth: p = 0.04 means a 4% chance that the null hypothesis is true.

    The p-value is calculated assuming H₀ is true. It is not the probability of any hypothesis (Greenland et al., 2016).

  • Myth: p > 0.05 proves there is no difference.

    Absence of evidence is not evidence of absence (Altman and Bland, 1995). An overview of streptokinase trials after myocardial infarction found a 22% reduction in mortality, although only 5 of the 24 trials had been significant on their own.

  • Myth: A smaller p-value means a bigger or more important effect.

    A p-value does not measure the size of an effect or the importance of a result (ASA 2016, principle 5).

  • Myth: A 95% CI means a 95% probability that the true value lies in this interval.

    The 95% refers to the method: 95% of intervals calculated this way over repeated studies include the true value.

  • Myth: 0.05 is a fixed scientific rule.

    Fisher described it in 1925 as a "convenient" limit. α is chosen, and justified, before the study.

  • Myth: Testing many outcomes and reporting the significant ones is acceptable.

    Each extra test adds a chance of a false positive. With 20 independent tests the chance of at least one is 64%.

Other ways in which correct numbers mislead, such as regression to the mean and Simpson's paradox, are covered in the Practical Statistics chapter on statistical fallacies.

Why this matters to you

Five consequences of misreading a test of significance

  1. Protocol sent back

    A protocol that says "appropriate statistical tests will be applied" does not state the hypothesis, the primary outcome, α, one- or two-tailed testing, or the test.

  2. A wrong conclusion in your thesis

    You write "no difference" when p = 0.20 in 30 patients. The study could not tell.

  3. A wrong definition at the viva

    "p = 0.04 means a 4% chance the result is due to chance" is incorrect (ASA 2016, principle 2).

  4. Misreading papers

    A significant subgroup, or one significant secondary outcome among 20, is accepted as a finding.

  5. Harm to patients

    A treatment with a trivial benefit is adopted because p < 0.001, or a useful treatment is abandoned after one small trial with p > 0.05.

History

History of significance tests and confidence intervals

  1. 1710

    John Arbuthnot

    Examined London parish records of births for the 82 years from 1629 to 1710. Every year, more boys than girls were born. If boys and girls were equally likely, the probability of this is (1/2)⁸², so he concluded that the pattern was not due to chance. This is the same reasoning as a significance test.

  2. 1908

    William Sealy Gosset ("Student")

    A chemist in an Irish brewery, he published a method for assessing means from small samples in Biometrika under the pseudonym "Student", because his company did not allow its scientists to publish confidential data. This was the origin of Student's t-test.

  3. 1925

    Ronald Fisher

    In Statistical Methods for Research Workers he wrote that P = .05 corresponds to 1.96, "or nearly 2", and that "it is convenient to take this point as a limit in judging whether a deviation is to be considered significant or not."

  4. 1933

    Jerzy Neyman and Egon Pearson

    Described how to choose the most efficient test, noting that "it is very easy to control errors of the first kind": the chance of rejecting a hypothesis when it is true can be set as low as one wishes.

  5. 1935

    Ronald Fisher

    In The Design of Experiments: "Every experiment may be said to exist only in order to give the facts a chance of disproving the null hypothesis."

  6. 1937

    Jerzy Neyman

    Published "Outline of a theory of statistical estimation based on the classical theory of probability" in the Philosophical Transactions of the Royal Society, setting out the theory of confidence intervals he had worked on from 1935.

  7. 1965

    Austin Bradford Hill

    Warned that "far too often we deduce 'no difference' from 'no significant difference.'"

  8. 1986

    Martin Gardner and Douglas Altman

    Argued in the BMJ for confidence intervals rather than P values, and recommended them for major findings in both the main text and the abstract of a paper.

  9. 1988

    ISIS-2 Collaborative Group

    A trial of 17,187 patients showed a clear benefit of aspirin after myocardial infarction. A subgroup analysis by astrological sign, in which Gemini and Libra showed no apparent benefit, is still used to show how testing many subgroups produces chance findings.

  10. 1995

    Douglas Altman and Martin Bland

    Published "Absence of evidence is not evidence of absence" in the BMJ.

  11. 2016

    American Statistical Association

    Issued its statement on p-values with six principles (Wasserstein and Lazar).

  12. 2019

    Valentin Amrhein, Sander Greenland, Blake McShane

    With more than 800 signatories, called in Nature for the concept of statistical significance to be abandoned, and warned against concluding "no difference" because a P value is larger than a threshold.

Guidelines

Hypothesis testing in guidelines

ICH E9 (1998), section 5.5

"Estimates of treatment effects should be accompanied by confidence intervals, whenever possible." The protocol must state whether one- or two-sided tests will be used, and "the approach of setting type I errors for one-sided tests at half the conventional type I error used in two-sided tests is preferable in regulatory settings."

ICH E9 (1998), section 5.6

"When multiplicity is present, the usual frequentist approach to the analysis of clinical trial data may necessitate an adjustment to the type I error." Any adjustment, or the reason for not adjusting, is set out in the analysis plan.

CONSORT 2025, items 21a, 26 and 30

Trial reports must give the "statistical methods used to compare groups for primary and secondary outcomes, including harms" (item 21a) and, for each outcome, "the estimated effect size and its precision (such as 95% confidence interval)" (item 26). The limitations section addresses imprecision and, "if relevant, multiplicity of analyses" (item 30).

ICMJE Recommendations, Statistics

"Avoid relying solely on statistical hypothesis testing, such as P values, which fail to convey important information about effect size and precision of estimates."

American Statistical Association (2016), principle 3

"Scientific conclusions and business or policy decisions should not be based only on whether a p-value passes a specific threshold."

Steps

Carrying out a test of significance, step by step

  1. Write the research question and one primary outcome.
  2. State H₀ (no difference) and H₁ (a difference), and decide on a one- or two-tailed test.
  3. Fix α, usually 0.05 two-tailed, and write it in the protocol.
  4. Choose the test that fits the type of outcome, the number of groups, pairing and the distribution.
  5. Collect the data and calculate the test statistic (t, χ², F) and its degrees of freedom.
  6. Find the p-value, or the critical value for your α and degrees of freedom.
  7. Compare p with α, or the test statistic with the critical value. If p ≤ α, reject H₀. If p > α, do not reject H₀, and do not write that H₀ is accepted.
  8. Report the effect size with its 95% confidence interval and the exact p-value, and say whether the difference matters clinically.

Reading a paper

Five checks on any study's p-values

  • Were the hypothesis and the primary outcome stated in advance, in a protocol or trial registry?
  • Are the effect size and its 95% confidence interval reported, and not only the p-value?
  • Is the confidence interval narrow enough to confirm or rule out a difference that matters to patients?
  • How many outcomes, time points and subgroups were tested, and was there any adjustment for multiplicity?
  • Does the test fit the data: paired or unpaired, normal or skewed, large or small counts?

Why is it called that?

Word surgery

“Significant”

In everyday speech

Important, large, worth attention.

In research

Unlikely to be explained by chance alone at the chosen α. A statistically significant difference can be too small to matter.

“Null”

In everyday speech

Nothing, void, invalid.

In research

The hypothesis of no difference or no association that the test is carried out on.

“Confidence”

In everyday speech

A feeling of certainty.

In research

A property of the method: how often intervals calculated this way include the true value over repeated studies.

“Critical”

In everyday speech

Serious or dangerous, or finding fault.

In research

The critical value is the value of the test statistic at the edge of the rejection region for the chosen α.

“Accept”

In everyday speech

Agree that something is true.

In research

"Accept H₀" in a book or printout means only that H₀ was not rejected. The data may be just as compatible with other values.

Memory trick

Type I: you report a difference that is not there. Type II: you miss a difference that is there. Reject H₀ only when p ≤ α. A larger test statistic goes with a smaller p-value.

Hypothesis

Greek hypothesis: "base, groundwork, foundation", literally "a placing under"

A statement set down before the study, which the data then test.

Null

Latin nullus: "not any, none"

The null hypothesis states that there is no difference.

Significant

Latin significare: "make known, indicate"

First meant "having a meaning". The sense "important" came later, which is why "statistically significant" is so often misread as "important".

Confidence

Latin confidere: "to have full trust or reliance"

In a confidence interval, the trust is placed in the method, not in one particular interval.

Inference

Latin inferre: "bring into" and "conclude, deduce"

Drawing a conclusion about a population from a sample.

Error

Latin error: "a wandering, straying", from errare, "to wander"

Used since the 18th century for the difference between an observed value and the true value. Type I and type II errors are wrong decisions.

Exam answers

Model answer outlines

Null hypothesis and alternative hypothesis (including in clinical trials)

MD Community Medicine 2020 · MD Nuclear Medicine 2018 · DM Medical Oncology 2022, 2025 · Ph.D. RM 2023
  1. Hypothesis: a testable statement about a population, written before data collection.
  2. Null hypothesis (H₀): no difference or no association (μA = μB, or OR = 1). The test calculates probabilities assuming H₀ is true.
  3. Alternative hypothesis (H₁): a difference or association exists. Two-sided (μA ≠ μB) or one-sided (μA > μB), decided in advance.
  4. Logic: assume H₀ → calculate the p-value → reject H₀ if p ≤ α (usually 0.05). Otherwise, do not reject H₀. H₀ is never proved: "not significant" is not proof of no difference.
  5. Writing them in symbols: H₀ holds the equality (=, ≤ or ≥) and H₁ the strict inequality (≠, > or <). The direction of H₁ gives the tail: ≠ two-tailed, > upper tail, < lower tail.
  6. "Not rejected" is not "accepted": the data are also compatible with other values inside the 95% CI. In the teaching trial of 10 patients per group, H₀ of 0 mmHg (p = 0.08) and H₀ of 15 mmHg (p = 0.36) are both not rejected.
  7. Example: H₀: mean fall in systolic pressure is equal with Drug A and Drug B. H₁: the mean fall differs.
  8. In clinical trials: superiority, H₀ = no difference between treatments. Non-inferiority, H₀ = the new treatment is worse than control by at least the pre-set margin. Equivalence, H₀ = the difference lies outside the margin.
  9. Errors: rejecting a true H₀ is a type I error (α). Failing to reject a false H₀ is a type II error (β). See the next outline.

Type I and type II errors (α and β errors) with examples, and α, β, p-value and power

Ph.D. RM 2016, 2017, 2018, 2023 · DM Virology 2025 · DM Medical Oncology 1997, 2020, 2022, 2024
DecisionH₀ true (no real difference)H₀ false (real difference)
Reject H₀ (significant)Type I error, probability αCorrect, probability 1 − β (power)
Do not reject H₀Correct, probability 1 − αType II error, probability β
  • Type I (α) error: false positive. Example: a trial concludes that a drug lowers blood pressure when it does not, and an ineffective drug is adopted.
  • Type II (β) error: false negative. Example: a 20-patient trial finds "no significant difference" for a drug that works, and the drug is abandoned.
  • α (level of significance): set by the researcher before the study, usually 0.05.
  • p-value: probability of a result at least as extreme as the one observed if H₀ were true. Significant if p ≤ α.
  • Power (1 − β): probability of detecting a real difference of a stated size. Studies usually plan for 80% or 90%.
  • Type I error rises with: multiple testing, repeated interim looks, choosing the analysis or a one-tailed test after seeing the data.
  • Type II error rises with: small sample, large variability, small true effect, strict α.
  • Trade-off: for a fixed n, lowering α raises β. Increasing n reduces β without changing α.
  • α and p are different: α is the false-positive rate of the procedure, fixed in advance. p is calculated from your data. p is not the probability that your significant result is a false positive (Greenland et al., 2016).

The p-value: meaning, rationale, significance in hypothesis testing, its role in evaluating a study, and the concept of statistical significance

MD Pharmacology 2025 · MCh Vascular Surgery 2025 · MD Community Medicine 2013, 2024 · DM Medical Oncology 2024 · Ph.D. RM 2024
  1. Definition: the probability, calculated assuming H₀ is true, of obtaining a result at least as extreme as the one observed.
  2. Rationale: a small p means the data would be unusual if H₀ were true, so H₀ is doubted.
  3. Calculation (teaching example): difference 5 mmHg, SD 12, 50 per group → SE 2.4, t = 2.08, df 98, p = 0.040.
  4. Statistical significance: p ≤ α, with α fixed in advance (usually 0.05). Fisher (1925) called 0.05 a "convenient" limit.
  5. Two equivalent decision rules: p ≤ α, or |test statistic| ≥ critical value. A larger test statistic goes with a smaller p. In the teaching example, t = 2.08 is beyond the critical t of 1.98 (98 df), and p = 0.040 is below 0.05.
  6. What makes p smaller: a larger difference, more patients, and less variation between patients.
  7. Role in evaluating a study:
    • It shows whether chance alone is a plausible explanation for the result.
    • It must be read with the effect size and its 95% CI.
    • Check that the outcome was primary and pre-specified, and count how many tests were done.
    • Consider the sample size. Large studies make trivial differences significant, and small studies miss real ones.
  8. What it is not: the probability that H₀ is true, the probability that the result is due to chance, or a measure of the size or importance of the effect (ASA 2016, principles 2 and 5).
  9. Reporting: give the exact p-value (p = 0.040) with the effect estimate and 95% CI (ICMJE, CONSORT 2025).

"P value does not provide a good measure of evidence": justify the statement

MD Community Medicine 2023

The statement is principle 6 of the American Statistical Association's 2016 statement: "By itself, a p-value does not provide a good measure of evidence regarding a model or hypothesis."

  1. It depends on sample size. A 1 mmHg difference with 5,000 per group gives p < 0.001. A 10 mmHg difference with 10 per group gives p = 0.08 (teaching examples, SD 12).
  2. It does not measure effect size or importance (principle 5).
  3. It is not the probability that H₀ is true (principle 2, and Greenland et al., 2016).
  4. It ignores prior plausibility and outside evidence. The same p-value means less for an implausible hypothesis (Goodman, 2008).
  5. It is distorted by multiple testing and selective reporting (principle 4). With 20 independent tests at α 0.05 the chance of at least one false positive is 64%.
  6. A threshold splits a continuous measure. p = 0.049 and p = 0.051 carry almost the same information but lead to opposite labels.

Balance: p-values can indicate how incompatible the data are with a specified model (principle 1). Conclusion: report the effect estimate with its confidence interval (Gardner and Altman, 1986, and the ICMJE recommendations), and interpret it with the study design and other evidence.

Tests of significance: steps, and the tests for different types of data (including discrete data)

MD Community Medicine 1990, 1994, 2000, 2010, 2016, 2019, 2022 · Ph.D. RM 2016, 2021, 2022, 2023

Definition: a procedure that uses sample data to calculate a test statistic and a p-value for a stated null hypothesis, to judge whether an observed difference could be due to chance.

Steps: state H₀ and H₁ → fix α → choose the test → calculate the test statistic and its degrees of freedom → find p, or compare the test statistic with the critical value → reject or do not reject H₀ → report the effect size with 95% CI.

Test statistics: z (proportions, and means in large samples), t (means, with n − 1 or n₁ + n₂ − 2 df), χ² (counts, with (r − 1)(c − 1) df) and F (ANOVA, with k − 1 and N − k df). The p-value is the area beyond the test statistic in the distribution it follows when H₀ is true.

Type of dataTwo independent groupsPaired (same patients)Three or more groups
Continuous, normalUnpaired t-test (z-test in large samples)Paired t-testOne-way ANOVA
Continuous skewed, or ordinalMann-Whitney UWilcoxon signed-rankKruskal-Wallis
Discrete (categorical counts)Chi-square, or Fisher's exact if expected counts are smallMcNemarChi-square (r × c table)
Time to eventLog-rank–Log-rank
Relationship between two variablesPearson or Spearman correlation, or regression

Discrete data, worked chi-square (teaching example): wound infection in 12 of 100 patients with dressing A and 24 of 100 with dressing B.

  1. Expected count = row total × column total ÷ grand total. Infected: 36 × 100 ÷ 200 = 18 per group. Not infected: 164 × 100 ÷ 200 = 82 per group.
  2. χ² = Σ (O − E)² ÷ E = (12 − 18)²/18 + (88 − 82)²/82 + (24 − 18)²/18 + (76 − 82)²/82 = 2.00 + 0.44 + 2.00 + 0.44 = 4.88.
  3. df = (rows − 1) × (columns − 1) = 1 → p = 0.027. Reject H₀ at α 0.05.
  4. Fisher's exact test on the same table gives p = 0.042. Other tests for counts: McNemar (paired), chi-square for trend (ordered categories), z-test for two proportions.

Confidence interval: meaning, calculation and importance

Ph.D. RM 2023, 2025 · MD Nuclear Medicine 2018, 2022 · MD Community Medicine 2019 · DM Cardiology 2015 · MD Biochemistry 2021 · MCh Surgical Gastroenterology and Proctology 2008
  1. Definition: a range calculated from sample data by a method that, over repeated samples, includes the true population value a stated proportion of the time (usually 95%).
  2. Formula: estimate ± t (or 1.96 in large samples) × SE. SE of a mean = SD ÷ √n.
  3. Worked example: difference 5 mmHg, SE 2.4, df 98 → 5 ± 1.984 × 2.4 = 0.24 to 9.76 mmHg.
  4. Interpretation: values inside the interval are compatible with the data. Not "95% probability that the true value is in this interval" (Greenland et al., 2016).
  5. Width decreases with a larger sample and smaller SD, and increases with a higher confidence level (99%).
  6. Link with the p-value: a 95% CI for a difference that excludes 0 (for a ratio, excludes 1) corresponds to p < 0.05. Every hypothesised value inside the 95% CI would not be rejected at α = 0.05.
  7. For a proportion: p ± 1.96 × √[p(1 − p) ÷ n]. Teaching example, 18 of 60: 0.30 ± 1.96 × 0.059 = 0.18 to 0.42. Use the Wilson or exact interval when n is small or p is near 0 or 1. With 0 events in n patients, the 95% upper limit is about 3 ÷ n (rule of three, Hanley and Lippman-Hand, 1983).
  8. Two groups: overlapping CIs for two group means do not show that the difference is not significant (teaching example: 10.6 to 17.4 and 4.6 to 11.4, difference p = 0.014). Use the CI of the difference.
  9. Importance:
    • It shows the size and the precision of the effect.
    • It allows comparison with the smallest clinically important difference.
    • It shows whether a "negative" study is informative or inconclusive.
    • It is used to pool studies in meta-analysis.
    • It is required by ICH E9, the ICMJE recommendations and CONSORT 2025.
  10. History: Jerzy Neyman, Phil Trans R Soc A 1937.

Odds ratio with its confidence interval and p-value

DM Neonatology 2022 · DM Cardiology 2019

Teaching example (case-control):

ExposedNot exposed
Cases (100)a = 40b = 60
Controls (100)c = 20d = 80
  1. Odds ratio = ad ÷ bc = (40 × 80) ÷ (60 × 20) = 2.67. The odds of exposure are 2.67 times as high in cases as in controls.
  2. SE of ln OR = √(1/a + 1/b + 1/c + 1/d) = √(1/40 + 1/60 + 1/20 + 1/80) = 0.323.
  3. 95% CI = exp(ln 2.67 ± 1.96 × 0.323) = exp(0.981 ± 0.633) = 1.42 to 5.02.
  4. p-value: chi-square = 9.52, df 1, p = 0.002.
  5. Reading them together: the CI excludes 1, which agrees with p < 0.05. The p-value says the association is unlikely to be due to chance alone. The CI says the true OR could be as low as 1.42 or as high as 5.02.
  6. Direction: OR = 1 means no association. OR > 1 means the exposure is more common in cases, and OR < 1 means it is less common. When the outcome is rare, the OR approximates the risk ratio. See the risk and survival chapter.

Differentiate between descriptive and inferential statistical methods

MD Community Medicine 2019
FeatureDescriptiveInferential
PurposeSummarise and present the data collectedDraw conclusions about the population from the sample
ScopeThe sample onlyThe population, with stated uncertainty
MeasuresMean, median, mode, SD, range, IQR, percentagesStandard error, confidence intervals, p-values
PresentationTables, bar charts, histograms, box plotsEstimates with 95% CI, test results
MethodsFrequency distributions, summary measurest-test, chi-square, ANOVA, regression, estimation
BasisThe data collectedThe sampling distribution of the statistic, summarised by its standard error
RequirementNone beyond accurate dataRandom sampling or random allocation, and the assumptions of the test
ExampleMean fall in blood pressure, with SD, in each groupDifference between the drugs (teaching example): 5 mmHg, 95% CI 0.24 to 9.76, p = 0.040

ANCOVA as a test of significance

MD Community Medicine 2024
  1. What it is: analysis of covariance combines ANOVA and regression. It compares the means of a continuous outcome between two or more groups after adjusting for one or more covariates, usually continuous.
  2. Why use it: it removes the variation in the outcome explained by the covariate, which gives a more precise comparison and more power, and it adjusts for chance imbalance at baseline. ICH E9 (section 5.5) mentions using baseline data to adjust for baseline differences, "for example by means of analysis of covariance".
  3. Example: HbA1c at 24 weeks compared between two drugs, with baseline HbA1c as the covariate.
  4. H₀: the adjusted group means are equal. Test statistic: F. Output: adjusted means, adjusted difference with 95% CI, and p-value.
  5. Assumptions:
    • Independent observations.
    • A linear relation between the covariate and the outcome.
    • The same slope in each group (homogeneity of regression slopes).
    • Normally distributed residuals with equal variance.
    • The covariate is measured before treatment and is not affected by it, and covariates are named in the protocol.
  6. If the assumptions fail: transform the outcome or use another model, with a statistician's help.

Statistical significance of standard deviation

MD Biochemistry 2013
  1. SD measures how much individual values vary around the mean. It is a descriptive measure and is not itself "significant" or "not significant".
  2. In a normal distribution about 95% of values lie within mean ± 1.96 SD. This is the basis of reference ranges, and of Fisher's 1925 remark that twice the SD is exceeded only about once in 22 trials.
  3. Its role in tests of significance: SE = SD ÷ √n, and test statistics divide the difference by the SE. A larger SD gives a larger SE, a smaller t, a larger p-value and a wider CI.
  4. Worked example: SD 12, n = 36 → SE = 12 ÷ 6 = 2. For a mean of 80, 95% CI = 80 ± 1.96 × 2 = 76.1 to 83.9.
  5. SD vs SE: SD describes variability between individuals. SE describes the precision of a summary statistic such as a mean (Gardner and Altman, 1986).
  6. Comparing SDs: the F-test (variance ratio) or Levene's test checks whether two groups have equal variances, an assumption of the t-test and ANOVA.
  7. In planning: the SD of the outcome is needed for the sample size calculation. See the sample size chapter.

Research proposal: reasons for and factors influencing non-compliance among patients with type 2 diabetes, with the research design and plan for statistical analysis

Ph.D. RM 2023
  1. Title, background and research question: why non-compliance matters in type 2 diabetes, and what is not known locally.
  2. Objectives: (1) estimate the proportion of patients who are non-compliant with treatment, (2) identify factors associated with non-compliance, and (3) explore patients' own reasons.
  3. Design: cross-sectional analytical study for objectives 1 and 2, with in-depth interviews for objective 3 (mixed methods). See study designs and qualitative research.
  4. Setting and participants: adults with type 2 diabetes attending the diabetes OPD, on treatment for a defined minimum period. Exclusion criteria are stated.
  5. Sample size (teaching values): the expected proportion is unknown, so p = 0.5, with a precision of ±5 points. n = 1.96² × 0.5 × 0.5 ÷ 0.05² = 384.2 → 385. Allowing 10% non-response, 385 ÷ 0.9 = 427.8 → 428.
  6. Sampling: systematic random sampling from the OPD register. Purposive sampling for interviews until no new themes emerge. See sampling.
  7. Tools: a pre-tested semi-structured questionnaire, a validated adherence scale, pill counts or refill records, and an interview guide.
  8. Variables: the outcome is compliance (yes or no, by the scale's cut-off). Factors are age, sex, education, income, duration of diabetes, number of tablets a day, insulin use, cost, side effects, knowledge, depression, family support, distance from the clinic.
  9. Plan for statistical analysis:
    • Data entered twice and checked. Analysis in SPSS or R.
    • Descriptive: frequencies and percentages, mean ± SD or median (IQR), and the proportion non-compliant with 95% CI.
    • Unadjusted analysis: chi-square test (Fisher's exact for small expected counts) for categorical factors, unpaired t-test or Mann-Whitney U for continuous factors, and odds ratios with 95% CI.
    • Adjusted analysis: multiple logistic regression for factors selected in advance or on the unadjusted analysis, giving adjusted ORs with 95% CI.
    • α = 0.05, two-tailed. Exact p-values reported. No subgroup tests beyond those planned.
    • Qualitative data: transcripts coded and analysed thematically.
  10. Ethics: Institutional Ethics Committee approval, written informed consent, confidentiality. See research ethics.
  11. Timeline, budget, expected outcomes and dissemination.

The one thing to remember

Report the size of the difference with its 95% confidence interval, and read the p-value only alongside it.

Worked examples use made-up numbers for teaching, calculated with SciPy. The confidence interval and sampling distribution figures are simulations with fixed random seeds.

Sources: Arbuthnot J. Phil Trans R Soc Lond 1710;27:186–90 (doi:10.1098/rstl.1710.0011). Łukasiewicz D. Eur J Philos Relig 2015;7:199–207 (doi:10.24204/ejpr.v7i1.138). Student. Biometrika 1908;6:1–25 (doi:10.1093/biomet/6.1.1). Raju TNK. Pediatrics 2005;116:732–5 (doi:10.1542/peds.2005-1134). Fisher RA. Statistical Methods for Research Workers. 1925. Neyman J, Pearson ES. Phil Trans R Soc Lond A 1933;231:289–337 (doi:10.1098/rsta.1933.0009). Fisher RA. The Design of Experiments. Edinburgh: Oliver and Boyd; 1935. Neyman J. Phil Trans R Soc Lond A 1937;236:333–80 (doi:10.1098/rsta.1937.0005). Hill AB. Proc R Soc Med 1965;58:295–300 (doi:10.1177/003591576505800503). Gardner MJ, Altman DG. Br Med J 1986;292:746–50 (doi:10.1136/bmj.292.6522.746). ISIS-2 Collaborative Group. Lancet 1988;2:349–60 (PMID 2899772). Yudkin JS. Diabetologia 1996;39:1407–8 (doi:10.1007/s001250050592). Spino C. Gastroenterology 2016;150:797–800 (doi:10.1053/j.gastro.2016.02.065). Altman DG, Bland JM. BMJ 1995;311:485 (doi:10.1136/bmj.311.7003.485). Goodman S. Semin Hematol 2008;45:135–40 (doi:10.1053/j.seminhematol.2008.04.003). Wasserstein RL, Lazar NA. Am Stat 2016;70:129–33 (doi:10.1080/00031305.2016.1154108). Greenland S et al. Eur J Epidemiol 2016;31:337–50 (doi:10.1007/s10654-016-0149-3). Amrhein V, Greenland S, McShane B. Nature 2019;567:305–7 (doi:10.1038/d41586-019-00857-9). Hanley JA, Lippman-Hand A. JAMA 1983;249:1743–5 (PMID 6827763). ICH E9 Statistical Principles for Clinical Trials, 1998. ICMJE Recommendations for the Conduct, Reporting, Editing, and Publication of Scholarly Work in Medical Journals. Hopewell S et al. CONSORT 2025 statement. BMJ 2025;389:e081123.

Past papers

Every TNMGRMU question on hypothesis testing

Each one is answered in this chapter. Tap a sitting to open the university's own question paper.

  1. ×6Confidence intervalPh.D. RM · Jan 2025Ph.D. RM · Jul 2023MD Nuclear Medicine · May 2022MD Community Medicine · May 2019MD Nuclear Medicine · May 2018DM Cardiology · Aug 2015
  2. ×5Tests of significanceMD Community Medicine · Oct 2022MD Community Medicine · Apr 2016Ph.D. RM · Jan 2016MD Community Medicine · Mar 2010MD Community Medicine · Apr 1994
  3. ×2Test of significancePh.D. RM · Jan 2023Ph.D. RM · Jul 2022
  4. ×2Confidence IntervalsMD Biochemistry · Nov 2021MCh Surgical Gastroenterology and Proctology · Aug 2008
  5. ×2Null hypothesisMD Community Medicine · Nov 2020MD Nuclear Medicine · May 2018
  6. ×2Type I and Type II errorsPh.D. RM · Jan 2018Ph.D. RM · Jan 2016
  7. ×1p-value in statisticsMD Pharmacology · May 2025
  8. ×1Type I and type II error in statisticsDM Virology · Feb 2025
  9. ×1Null hypothesis in context of clinical trialsDM Medical Oncology · Feb 2025
  10. ×1Explain the ‘p’ value in biostatistics and its role in evaluating a studyMCh Vascular Surgery · Feb 2025
  11. ×1ANCOVA test of significanceMD Community Medicine · Oct 2024
  12. ×1Significance of p value in hypothesis testingMD Community Medicine · May 2024
  13. ×1Describe alpha error, beta error, p value and power in statisticsDM Medical Oncology · Jan 2024
  14. ×1Concept of statistical significancePh.D. RM · Jul 2024
  15. ×1P value does not provide a good measure of evidence –Justify the statementMD Community Medicine · Oct 2023
  16. ×1Type II Error & Type I ErrorPh.D. RM · Jan 2023
  17. ×1Null hypothesis and Alternate hypothesisPh.D. RM · Jul 2023
  18. ×1As a researcher you are asked to identify the reasons for and factors influencing non-compliance among Diabetic (type 2). Write a detailed project proposal highlighting the research design including the plan for statistical analysisPh.D. RM · Jul 2023
  19. ×1Explain the ‘Test of Significance’Ph.D. RM · Jul 2023
  20. ×1Explain type-I and type II errorsPh.D. RM · Jul 2023
  21. ×1Confidence interval and its importancePh.D. RM · Jul 2023
  22. ×1Write a note on Odds Ratio and Confidence IntervalDM Neonatology · Aug 2022
  23. ×1Describe Null hypothesis, alternate hypothesis, type 1 error, type 2 error in statisticsDM Medical Oncology · Aug 2022
  24. ×1What are the Test of Significance? Describe the different tests for different types of dataPh.D. RM · Aug 2021
  25. ×1Type I and Type II errorDM Medical Oncology · Feb 2020
  26. ×1Tests for statistical significance with discrete dataMD Community Medicine · May 2019
  27. ×1Differentiate between descriptive statistical methods and inferential statistical methodsMD Community Medicine · May 2019
  28. ×1P Value and Odds ratioDM Cardiology · Feb 2019
  29. ×1Explain the types of errors with examplesPh.D. RM · Jul 2018
  30. ×1Explain the types of errors with examplePh.D. RM · Jul 2017
  31. ×1Statistical significance of Standard deviationMD Biochemistry · Apr 2013
  32. ×1P Value in Statistics- the Rationale and significance of itMD Community Medicine · Apr 2013
  33. ×1Soctal security (b>) Gene therapy ic} Tests of significanceMD Community Medicine · Apr 2000
  34. ×1Discuss tumour metastasis and its Mmanazyement. 25) 3+ Yrite briefly on: Tumour cell heterogeneity (b) Overcoming drug resistance (ec) Droloxifene Type I error {e) P-53DM Medical Oncology · Apr 1997
  35. ×1Tests of significance in statisticsMD Community Medicine · Sep 1990

Further reading

Related Stateazy articles