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.
| Feature | Descriptive statistics | Inferential statistics |
|---|---|---|
| Purpose | Summarise the data you collected | Draw conclusions about the population the sample came from |
| Applies to | The sample only | The population, with a stated uncertainty |
| Tools | Mean, median, SD, percentages, tables, graphs | Confidence intervals, tests of significance, regression |
| Needs probability | No | Yes: it assumes random sampling or random allocation |
| Example | Mean fall in blood pressure in each group, with SD | Drug 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.
| Feature | Null hypothesis (H₀) | Alternative hypothesis (H₁) |
|---|---|---|
| States | No difference, or no association | A difference, or an association, exists |
| Written as | μA = μB, or risk ratio = 1 | μA ≠ μB (two-sided), or μA > μB (one-sided) |
| Example | Mean fall in blood pressure is the same with Drug A and Drug B | Mean fall in blood pressure differs between Drug A and Drug B |
| Role in the test | The p-value is calculated assuming H₀ is true | Supported only when the data lead you to reject H₀ |
| Possible conclusions | Rejected, 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 show | H₀, the hypothesis tested | Tails | Teaching example |
|---|---|---|---|
| μnew ≠ μstandard | μnew = μstandard | Two-tailed, α ÷ 2 in each tail | Mean HbA1c at 12 weeks differs between the new and the standard drug |
| μnew > μstandard | μnew ≤ μstandard | One-tailed, all of α in the upper tail | Mean rise in haemoglobin is greater with the new iron preparation |
| μnew < μstandard | μnew ≥ μstandard | One-tailed, all of α in the lower tail | Mean 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).
Every test and confidence interval in this chapter relies on three facts shown in the figure.
- 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.
- Sample means vary far less than individual patients. SE = SD ÷ √n = 3.9 ÷ √30 = 0.71 days, less than one-fifth of the SD.
- 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.
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 statistic | Distribution when H₀ is true | Used for |
|---|---|---|
| z | Standard normal | Proportions, and means in large samples |
| t | Student's t, which depends on the degrees of freedom | One mean, two means, paired differences, regression coefficients |
| χ² (chi-square) | Chi-square, which depends on the degrees of freedom | Counts in a table, goodness of fit |
| F | F, which depends on two degrees of freedom | Three 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:
- P-values can indicate how incompatible the data are with a specified statistical model.
- 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.
- Scientific conclusions and business or policy decisions should not be based only on whether a p-value passes a specific threshold.
- Proper inference requires full reporting and transparency.
- A p-value, or statistical significance, does not measure the size of an effect or the importance of a result.
- 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.
| Feature | Level of significance (α) | p-value |
|---|---|---|
| What it is | The false-positive rate you accept | The probability of a result at least this extreme if H₀ were true |
| Set by | You, in the protocol, before the data | The data, after the analysis |
| Usual value | 0.05, sometimes 0.01 | Any value from 0 to 1 |
| How it is used | The threshold | Compared with α: p ≤ α is called significant |
| Belongs to | The procedure | Your 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.
| Feature | Threshold, fixed before the study | Result, calculated from your data |
|---|---|---|
| As a probability (an area under the curve) | α, for example 0.05 | p-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 df | Observed test statistic, for example t = 2.60 |
| How it is found | You 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.
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.
| Test | Degrees of freedom | Teaching example |
|---|---|---|
| One-sample t test, paired t test | n − 1 (n = number of patients or pairs) | 25 pairs → 24 df |
| Unpaired t test, equal variances | n₁ + n₂ − 2 | 50 + 50 patients → 98 df |
| Chi-square test, r × c table | (r − 1) × (c − 1) | 2 × 3 table → 2 df |
| Chi-square goodness of fit | k − 1 (k = number of categories), minus one more for each parameter estimated from the data | 4 blood groups → 3 df |
| One-way ANOVA | k − 1 between groups and N − k within groups (k groups, N patients) | 3 groups of 10 → 2 and 27 df |
| Pearson correlation, simple linear regression | n − 2 | 40 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.
t = difference ÷ standard error of the difference
Unpaired t test: n₁ + n₂ − 2
p > α (0.059 > 0.05) and |t| < critical t (2.00 < 2.09): do not reject H₀, the difference is not statistically significant.
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.
| Feature | Two-tailed | One-tailed |
|---|---|---|
| H₁ | Drug A differs from Drug B, in either direction | Drug A is better than Drug B |
| Critical z at α = 0.05 | ±1.96 | 1.645 |
| p for the same data | Twice the one-tailed p (for symmetric tests) | Half the two-tailed p |
| Use when | A difference in either direction would matter | A difference in the other direction is impossible or would be acted on as no difference, decided in advance |
| ICH E9 | Consistent with two-sided confidence intervals | Set 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.
Positive: Drug A lowered pressure more. t = difference ÷ 2.4
t = +4.5 ÷ 2.4 = +1.88, df 98 · critical t 1.98 (two-tailed), 1.66 (one-tailed)
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.
| Feature | Type I error (α error) | Type II error (β error) |
|---|---|---|
| Meaning | Rejecting H₀ when it is true | Not rejecting H₀ when it is false |
| Result | False positive: a difference reported that is not real | False negative: a real difference missed |
| Probability | α, set by you, usually 0.05 | β; power = 1 − β |
| Main causes | Chance, many tests, choosing the analysis after seeing the data | Too few patients, large variability, a small true difference |
| Reduced by | A stricter α, pre-specified outcomes, correction for multiple tests | A larger sample, more precise measurement |
| Clinical consequence | An ineffective treatment is adopted | An 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.
0 means H₀ is true
More spread: wider intervals, fewer significant trials
More patients: narrower intervals, more power
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
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.
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.
| Feature | p-value | 95% confidence interval |
|---|---|---|
| Answers | How compatible are the data with no difference? | Which sizes of difference are compatible with the data? |
| Output | One number from 0 to 1 | A range in the units of the outcome (mmHg, %, odds ratio) |
| Shows the size of the effect | No | Yes |
| Shows precision | No | Yes: a narrow interval is precise |
| Effect of a large sample | A very small difference becomes significant | The interval becomes narrow |
| How they agree | p < 0.05 (two-sided) | The 95% CI for a difference excludes 0, or for a ratio (OR, RR) excludes 1 |
| Teaching example | p = 0.040 | 0.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.
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.
t = (observed difference − hypothesised difference) ÷ SE
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.
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.
| Feature | Statistical significance | Clinical significance |
|---|---|---|
| Question | Is the difference likely to be due to chance alone? | Is the difference large enough to matter to patients? |
| Judged by | p-value compared with α | Effect size and its CI compared with the MCID |
| Depends on sample size | Strongly | No |
| Decided by | The statistical test | Clinicians and patients, before the study |
| Example | A 1 mmHg fall with 5,000 per group: p < 0.001 | A 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.
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.
Outcomes, time points or subgroups tested
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.
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.
Wound infection in 12 of 100 patients with a new dressing and 24 of 100 with the standard dressing. Chi-square p = 0.027.
Also report the absolute difference, 12 percentage points, with its confidence interval. The p-value alone does not give the size of the benefit.
Pain is scored at 1, 2, 4, 6, 12 and 24 hours, and the paper highlights the one time point with p < 0.05.
Six time points give six chances of a false positive. Name one primary time point in the protocol, or adjust for multiple testing.
A neonatal trial with 20 babies per group reports p = 0.20 for mortality and concludes that the drug does not work.
A small trial with p > 0.05 has not shown that there is no effect. Look at how wide the confidence interval is.
A drug reduces mean blood loss at delivery by 20 mL in a trial of 3,000 women, p < 0.001.
Ask whether 20 mL matters to a woman. A very small p-value does not make a difference clinically important.
A drug shows no overall survival benefit, but in one of many subgroups the p-value is 0.03.
When many subgroups are tested, one significant result is expected by chance. Treat it as a question for a new trial.
Anaemia prevalence is compared across 12 blocks by testing every pair of blocks.
Twelve blocks give 66 pairs. Use one overall chi-square test first, or correct for multiple comparisons.
Two formulations are compared with an ordinary superiority test, and p > 0.05 is reported as proof that they are equivalent.
Equivalence needs a margin fixed in advance and a confidence interval that lies entirely within it.
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
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.
A wrong conclusion in your thesis
You write "no difference" when p = 0.20 in 30 patients. The study could not tell.
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).
Misreading papers
A significant subgroup, or one significant secondary outcome among 20, is accepted as a finding.
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
- 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.
- 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.
- 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."
- 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.
- 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."
- 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.
- 1965
Austin Bradford Hill
Warned that "far too often we deduce 'no difference' from 'no significant difference.'"
- 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.
- 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.
- 1995
Douglas Altman and Martin Bland
Published "Absence of evidence is not evidence of absence" in the BMJ.
- 2016
American Statistical Association
Issued its statement on p-values with six principles (Wasserstein and Lazar).
- 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
"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."
"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.
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).
"Avoid relying solely on statistical hypothesis testing, such as P values, which fail to convey important information about effect size and precision of estimates."
"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
- Write the research question and one primary outcome.
- State H₀ (no difference) and H₁ (a difference), and decide on a one- or two-tailed test.
- Fix α, usually 0.05 two-tailed, and write it in the protocol.
- Choose the test that fits the type of outcome, the number of groups, pairing and the distribution.
- Collect the data and calculate the test statistic (t, χ², F) and its degrees of freedom.
- Find the p-value, or the critical value for your α and degrees of freedom.
- 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.
- 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”
Important, large, worth attention.
Unlikely to be explained by chance alone at the chosen α. A statistically significant difference can be too small to matter.
“Null”
Nothing, void, invalid.
The hypothesis of no difference or no association that the test is carried out on.
“Confidence”
A feeling of certainty.
A property of the method: how often intervals calculated this way include the true value over repeated studies.
“Critical”
Serious or dangerous, or finding fault.
The critical value is the value of the test statistic at the edge of the rejection region for the chosen α.
“Accept”
Agree that something is true.
"Accept H₀" in a book or printout means only that H₀ was not rejected. The data may be just as compatible with other values.
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- Hypothesis: a testable statement about a population, written before data collection.
- Null hypothesis (H₀): no difference or no association (μA = μB, or OR = 1). The test calculates probabilities assuming H₀ is true.
- Alternative hypothesis (H₁): a difference or association exists. Two-sided (μA ≠ μB) or one-sided (μA > μB), decided in advance.
- 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.
- 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.
- "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.
- Example: H₀: mean fall in systolic pressure is equal with Drug A and Drug B. H₁: the mean fall differs.
- 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.
- 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| Decision | H₀ 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- Definition: the probability, calculated assuming H₀ is true, of obtaining a result at least as extreme as the one observed.
- Rationale: a small p means the data would be unusual if H₀ were true, so H₀ is doubted.
- Calculation (teaching example): difference 5 mmHg, SD 12, 50 per group → SE 2.4, t = 2.08, df 98, p = 0.040.
- Statistical significance: p ≤ α, with α fixed in advance (usually 0.05). Fisher (1925) called 0.05 a "convenient" limit.
- 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.
- What makes p smaller: a larger difference, more patients, and less variation between patients.
- 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.
- 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).
- 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 2023The 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."
- 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).
- It does not measure effect size or importance (principle 5).
- It is not the probability that H₀ is true (principle 2, and Greenland et al., 2016).
- It ignores prior plausibility and outside evidence. The same p-value means less for an implausible hypothesis (Goodman, 2008).
- 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%.
- 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, 2023Definition: 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 data | Two independent groups | Paired (same patients) | Three or more groups |
|---|---|---|---|
| Continuous, normal | Unpaired t-test (z-test in large samples) | Paired t-test | One-way ANOVA |
| Continuous skewed, or ordinal | Mann-Whitney U | Wilcoxon signed-rank | Kruskal-Wallis |
| Discrete (categorical counts) | Chi-square, or Fisher's exact if expected counts are small | McNemar | Chi-square (r × c table) |
| Time to event | Log-rank | – | Log-rank |
| Relationship between two variables | Pearson 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.
- Expected count = row total × column total ÷ grand total. Infected: 36 × 100 ÷ 200 = 18 per group. Not infected: 164 × 100 ÷ 200 = 82 per group.
- χ² = Σ (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.
- df = (rows − 1) × (columns − 1) = 1 → p = 0.027. Reject H₀ at α 0.05.
- 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- 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%).
- Formula: estimate ± t (or 1.96 in large samples) × SE. SE of a mean = SD ÷ √n.
- Worked example: difference 5 mmHg, SE 2.4, df 98 → 5 ± 1.984 × 2.4 = 0.24 to 9.76 mmHg.
- 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).
- Width decreases with a larger sample and smaller SD, and increases with a higher confidence level (99%).
- 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.
- 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).
- 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.
- 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.
- History: Jerzy Neyman, Phil Trans R Soc A 1937.
Odds ratio with its confidence interval and p-value
DM Neonatology 2022 · DM Cardiology 2019Teaching example (case-control):
| Exposed | Not exposed | |
|---|---|---|
| Cases (100) | a = 40 | b = 60 |
| Controls (100) | c = 20 | d = 80 |
- 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.
- SE of ln OR = √(1/a + 1/b + 1/c + 1/d) = √(1/40 + 1/60 + 1/20 + 1/80) = 0.323.
- 95% CI = exp(ln 2.67 ± 1.96 × 0.323) = exp(0.981 ± 0.633) = 1.42 to 5.02.
- p-value: chi-square = 9.52, df 1, p = 0.002.
- 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.
- 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| Feature | Descriptive | Inferential |
|---|---|---|
| Purpose | Summarise and present the data collected | Draw conclusions about the population from the sample |
| Scope | The sample only | The population, with stated uncertainty |
| Measures | Mean, median, mode, SD, range, IQR, percentages | Standard error, confidence intervals, p-values |
| Presentation | Tables, bar charts, histograms, box plots | Estimates with 95% CI, test results |
| Methods | Frequency distributions, summary measures | t-test, chi-square, ANOVA, regression, estimation |
| Basis | The data collected | The sampling distribution of the statistic, summarised by its standard error |
| Requirement | None beyond accurate data | Random sampling or random allocation, and the assumptions of the test |
| Example | Mean fall in blood pressure, with SD, in each group | Difference 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- 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.
- 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".
- Example: HbA1c at 24 weeks compared between two drugs, with baseline HbA1c as the covariate.
- H₀: the adjusted group means are equal. Test statistic: F. Output: adjusted means, adjusted difference with 95% CI, and p-value.
- 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.
- If the assumptions fail: transform the outcome or use another model, with a statistician's help.
Statistical significance of standard deviation
MD Biochemistry 2013- SD measures how much individual values vary around the mean. It is a descriptive measure and is not itself "significant" or "not significant".
- 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.
- 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.
- 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.
- SD vs SE: SD describes variability between individuals. SE describes the precision of a summary statistic such as a mean (Gardner and Altman, 1986).
- 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.
- 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- Title, background and research question: why non-compliance matters in type 2 diabetes, and what is not known locally.
- 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.
- 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.
- Setting and participants: adults with type 2 diabetes attending the diabetes OPD, on treatment for a defined minimum period. Exclusion criteria are stated.
- 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.
- Sampling: systematic random sampling from the OPD register. Purposive sampling for interviews until no new themes emerge. See sampling.
- Tools: a pre-tested semi-structured questionnaire, a validated adherence scale, pill counts or refill records, and an interview guide.
- 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.
- 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.
- Ethics: Institutional Ethics Committee approval, written informed consent, confidentiality. See research ethics.
- 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.
- ×6Confidence interval
- ×5Tests of significance
- ×2Test of significance
- ×2Confidence Intervals
- ×2Null hypothesis
- ×2Type I and Type II errors
- ×1p-value in statistics
- ×1Type I and type II error in statistics
- ×1Null hypothesis in context of clinical trials
- ×1Explain the ‘p’ value in biostatistics and its role in evaluating a study
- ×1ANCOVA test of significance
- ×1Significance of p value in hypothesis testing
- ×1Describe alpha error, beta error, p value and power in statistics
- ×1Concept of statistical significance
- ×1P value does not provide a good measure of evidence –Justify the statement
- ×1Type II Error & Type I Error
- ×1Null hypothesis and Alternate hypothesis
- ×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 analysis
- ×1Explain the ‘Test of Significance’
- ×1Explain type-I and type II errors
- ×1Confidence interval and its importance
- ×1Write a note on Odds Ratio and Confidence Interval
- ×1Describe Null hypothesis, alternate hypothesis, type 1 error, type 2 error in statistics
- ×1What are the Test of Significance? Describe the different tests for different types of data
- ×1Type I and Type II error
- ×1Tests for statistical significance with discrete data
- ×1Differentiate between descriptive statistical methods and inferential statistical methods
- ×1P Value and Odds ratio
- ×1Explain the types of errors with examples
- ×1Explain the types of errors with example
- ×1Statistical significance of Standard deviation
- ×1P Value in Statistics- the Rationale and significance of it
- ×1Soctal security (b>) Gene therapy ic} Tests of significance
- ×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-53
- ×1Tests of significance in statistics
Further reading