19.2 Biostatistics: Risk Measures, NNT, Confidence Intervals & Hypothesis Testing
Key Takeaways
For a harmful outcome reduced by treatment, ARR = control risk − treatment risk, and NNT = 1/ARR rounded up, with the event, comparator and time frame specified. Risks of 10% vs 7% give 3 percentage points and NNT 34.
RR = EER/CER, RRR = 1 − RR; OR = ad/bc for a 2×2 table in the stated orientation. OR estimates odds, not risk; the rare-outcome approximation depends on the risks and sampling design.
For corresponding two-sided tests, a 95% CI crossing 1 for a ratio or 0 for a difference does not reject the superiority null at α = 0.05. Interpret magnitude and precision, not just thresholds.
Type I error is rejecting a true null; type II is failing to reject at a specified alternative. Power = 1 − β, commonly targeted at 80–90%.
Choose tests based on the question, measurement scale and design: Mann–Whitney U for independent ordered groups, paired t for approximately normal paired differences, and chi-square or exact tests for independent categorical counts.
Why this matters on the OEP
Within the 5% Research and evidence-based practice domain, biostatistics includes calculations and interpretation. Practise computing an absolute risk reduction (ARR) or number needed to treat (NNT), reading a confidence interval and choosing a statistical test. Pharmacoeconomic ratios are covered in 11.3, and population incidence and prevalence in 20.3.
Data types and descriptive statistics
| Data type | Definition | Pharmacy example | Usual summary |
|---|---|---|---|
| Nominal | Named categories with no order | Blood group; died vs survived | Counts, percentages, mode |
| Ordinal | Ordered categories without necessarily equal gaps | Pain score 0–10; New York Heart Association (NYHA) class I–IV | Median, interquartile range |
| Interval | Equal gaps but no true zero | Temperature in °C | Mean and SD if normally distributed |
| Ratio | Equal gaps and a true zero | Serum creatinine, body weight, drug concentration | Mean and SD if normally distributed |
Nominal and ordinal scales are categorical; interval and ratio scales are quantitative and can be continuous (e.g. temperature) or discrete (e.g. number of dispensing errors).
- The mean is pulled by outliers. For skewed data, such as length of hospital stay, report the median and the interquartile range (IQR), the difference between the 75th and 25th percentiles (often reported by giving both limits). In many unimodal right-skewed distributions the mean exceeds the median, but the ordering of mean, median and mode is not a universal rule.
- The standard deviation (SD) describes how spread out individual values are. For independent, identically distributed observations, the estimated standard error of the mean (SEM) describes sampling uncertainty in the mean: . For n > 1, it is smaller than a positive SD. Label the two clearly; SEM must not be presented as patient-to-patient variability.
- Normal distribution (68–95–99.7 rule): about 68% of values lie within ±1 SD of the mean, 95% within ±2 SD (more precisely 1.96 SD) and 99.7% within ±3 SD.
Worked example. Suppose 100 independent patients have a mean fall in systolic blood pressure of 12 mmHg and an SD of 5 mmHg. If individual changes are approximately normally distributed, about 95% are expected between 2 and 22 mmHg (12 ± 2 × 5); this is not a confidence interval for the mean. The SEM is , so the conventional two-sided 95% t confidence interval for the mean fall is (99 degrees of freedom), about 11.0 to 13.0 mmHg. The large-sample normal approximation using 1.96 gives 11.02 to 12.98 mmHg.
Choosing a statistical test
| Comparison | Normal continuous data (parametric) | Ordinal or skewed data (non-parametric) | Nominal data |
|---|---|---|---|
| 2 independent groups | Unpaired t-test (Welch if variances are not assumed equal) | Mann–Whitney U (Wilcoxon rank-sum) test | Chi-square test; Fisher exact test when expected counts in a 2×2 table are small (e.g. any under 5) |
| 2 paired measurements (before/after, crossover) | Paired t-test (normal differences) | Wilcoxon signed-rank test (symmetric, rankable paired differences) | McNemar test (paired binary outcome) |
| 3 or more independent groups | One-way analysis of variance (ANOVA; conventional equal-variance model) | Kruskal–Wallis test | Chi-square test |
| Association between two variables | Pearson correlation (r; linear relationship) | Spearman rank correlation (rho; monotonic relationship) | Chi-square test of independence |
| Predicting an outcome from several variables | Linear regression | Ordinal logistic regression (ordered outcomes) | Binary logistic regression (adjusted OR for binary outcome) |
These are common choices, not automatic rules: check design, outcome, independence, distributional assumptions and the estimand. Rank-sum compares distributions; a location-shift or median interpretation needs further assumptions. Regression depends on the type of response, not just its skewness; a nominal outcome with more than two categories may require multinomial regression.
Time-to-event (survival) data are plotted as Kaplan–Meier curves, compared with the log-rank test and modeled with Cox proportional hazards regression. Cox regression gives a hazard ratio (HR), the relative rate of events at any moment. Under proportional hazards, an HR of 0.80 estimates a 20% lower instantaneous hazard among those still at risk in the treatment group relative to the comparator, at a given time and covariate values. It does not mean a 20% reduction in cumulative event probability.
Correlation coefficients run from −1 to +1. For simple linear regression with an intercept, squared Pearson correlation is the fraction of sample outcome variation accounted for by the fitted linear relationship: r = 0.7 gives , or 49%. Correlation does not prove causation.
Hypothesis testing and errors
The null hypothesis () specifies a parameter value or range; in a conventional two-sided superiority test it usually specifies no difference. The p-value is the probability of a result at least as extreme as the one observed under and the assumptions of the statistical test. It is not the probability that is true. If p is below the prespecified alpha (α), usually 0.05, is rejected.
| Decision | actually true (no real difference) | actually false (real difference) |
|---|---|---|
| Reject ("significant") | Type I error (false positive); probability controlled at α | Correct; probability = power (1 − β) |
| Do not reject | Correct | Type II error (false negative); probability = β |
For a prespecified alternative effect and design, trials often target power of 80–90%, corresponding to β of 0.20–0.10. A small "negative" trial may simply be underpowered. Testing many outcomes or subgroups without an appropriate multiplicity plan can inflate the familywise type I error. The Bonferroni correction divides α by the number of comparisons, so with a familywise α of 0.05 and 5 comparisons, each test uses α = 0.01.
Confidence intervals
A 95% confidence interval (CI) quantifies estimation uncertainty under the model assumptions. Over repeated sampling, a correctly calibrated procedure would produce intervals containing the true parameter 95% of the time; this is not a 95% posterior probability for this particular interval. The line of no effect is 1 for ratios (RR, OR, HR) and 0 for differences (ARR, mean difference). For a corresponding unadjusted two-sided test at α = 0.05, inclusion of the null means the result does not meet the usual criterion for rejecting it (subject to boundary/rounding conventions). This does not establish equivalence or absence of an important effect. A wider interval means less precision, usually from a small sample or few events.
- RR 0.75 (95% CI 0.62–0.91) excludes equal risk.
- OR 0.85 (95% CI 0.70–1.03) is compatible with equal odds as well as a reduction.
- A mean difference of −4 mmHg (95% CI −7 to −1) excludes zero difference.
Risk measures, NNT and NNH
Here CER and EER are the control and experimental event risks (often called event rates in trial questions), measured over the same fixed time interval, not incidence rates per person-time. The relative risk (RR) and relative risk reduction (RRR) are calculated from them as follows.
Round the NNT up to a whole patient and state the comparator, event and time frame. When treatment increases an adverse outcome, calculate ARI = EER − CER and the number needed to treat for an additional harmful outcome (NNTH, traditionally NNH) as 1/ARI, rounded up. These are positive comparative estimates, not guarantees; if the risk difference is zero there is no finite NNT. A confidence interval spanning zero yields benefit and harm limits separated by infinity.
Worked 2×2 example. A hypothetical 2-year trial randomizes 2,000 patients with atrial fibrillation to two valid care strategies, with complete fixed-time outcome ascertainment.
| Group | Stroke | No stroke | Total |
|---|---|---|---|
| Drug X | 70 (a) | 930 (b) | 1,000 |
| Control | 100 (c) | 900 (d) | 1,000 |
- EER = 70/1,000 = 7%, and CER = 100/1,000 = 10%.
- ARR = 10% − 7% = 3 percentage points (0.03).
- RR = 0.07/0.10 = 0.70, so RRR = 1 − 0.70 = 30%.
- NNT = 1/0.03 = 33.3, rounded up to 34 patients receiving drug X rather than control for 2 years for one fewer stroke on average.
- The odds ratio is calculated as follows.
Here the OR (0.68) is close to the RR (0.70). In this orientation OR compares event odds, whereas RR compares cumulative risks. The OR approximates RR when both risks are small; as event probabilities increase, interpreting OR as though it were RR can overstate the magnitude of the relative effect. Conventional case-control sampling and rate-ratio interpretation are discussed in 19.1.
In the same trial, major bleeding occurred in 45/1,000 patients (4.5%) on drug X and 25/1,000 (2.5%) on control. The ARI is 2 percentage points, so NNH = 1/0.02 = 50. Based on these point estimates, per 50 receiving drug X rather than control over 2 years, expect one additional major bleed and 1.5 fewer strokes (50 × 0.03). This is an illustration of absolute effects, not a net-benefit conclusion or prediction for an individual.
Baseline risk changes the NNT. If the same estimated RR of 0.70 applies in different populations over the same time horizon (an assumption that must be assessed), their ARR differs with baseline risk.
- A higher-risk group with a baseline risk of 20% has ARR = 0.20 × 0.30 = 0.06 (6 percentage points), so NNT = 1/0.06 = 16.7, rounded up to 17.
- A lower-risk group with a baseline risk of 2% has ARR = 0.02 × 0.30 = 0.006 (0.6 percentage points), so NNT = 1/0.006 = 166.7, rounded up to 167.
Relative effects alone can sound more impressive than absolute effects; present both, with uncertainty, comparator, baseline risk and time horizon.
Statistical versus clinical significance
A p-value measures compatibility with a specified null model, not the probability of a real effect or its clinical importance. In a hypothetical large trial, a precisely estimated 1 mmHg difference could have p < 0.001 yet be small for an individual; its population and clinical relevance depends on the setting. For a continuous outcome, compare the estimated difference and its uncertainty with an appropriate minimal clinically important difference (MCID) on the same scale. For binary outcomes, consider the ARR, NNT and corresponding uncertainty. Weigh benefits against harms, cost and patient values.
Interpreting non-inferiority margins
When the outcome is harmful and the ratio compares new versus standard treatment, a usual NI test at one-sided α = 0.025 compares the upper bound of the two-sided 95% CI with a justified prespecified margin. Suppose a hypothetical trial specifies an HR margin of 1.30 for stroke or systemic embolism; this number is illustrative, not a recommended clinical margin. Interpretation assumes trial validity, established comparator effect, appropriate estimand and analysis, and adequate conduct (19.1).
| Result: HR (95% CI) | Where the CI lies | Interpretation |
|---|---|---|
| 0.80 (0.68–0.94) | Entirely below 1 | Supports non-inferiority and superiority (if valid superiority testing is permitted by the analysis plan) |
| 0.98 (0.84–1.15) | Upper bound below 1.30 but above 1 | Supports non-inferiority; superiority not demonstrated |
| 1.10 (0.92–1.42) | Upper bound above 1.30 | Non-inferiority not shown (inconclusive) |
| 1.55 (1.35–1.78) | Lower bound above 1.30 | Inferior; even exceeds the NI margin |
When the outcome is a difference in success proportions (new minus standard), non-inferiority is supported when the lower bound of the appropriate CI lies above −Δ, for example −10 percentage points. An interval entirely below 1 for a harmful-outcome ratio (or above 0 for a success difference) supports superiority under an appropriate test; NI alone is not equivalence. Review adherence, missing data, full-analysis-set and per-protocol robustness as discussed in 19.1.
Warning
Exam traps
- Calculate the NNT from the ARR, never from the RRR, and convert percentages to decimals first (3% = 0.03).
- For the corresponding two-sided superiority test, a 95% CI crossing 1 for a ratio or 0 for a difference does not reject the null at α = 0.05; this rule is not the NI margin test.
- p = 0.04 does not mean there is a 4% chance that the drug does not work.
- The SEM is not a measure of how much patients vary.
- A non-significant result from a small trial may be a type II error. It does not prove there is no effect.
In a hypothetical 3-year trial in high-risk adults, with both groups on appropriate background care and complete outcome follow-up, myocardial infarction occurred in 8.0% of the placebo group and 5.0% of the treatment group. What is the estimated NNT over 3 years for one fewer myocardial infarction on average?
13
20
34
38
Researchers compare postoperative pain scores (0–10 numeric rating scale; markedly skewed) between 40 patients given ketorolac and 40 different patients given paracetamol. The planned comparison uses ranks of the ordered pain scores rather than a comparison of means. Which test is most appropriate?
Unpaired Student t-test
Mann–Whitney U test
Wilcoxon signed-rank test
Chi-square test
A hypothetical valid non-inferiority trial compares a new oral anticoagulant with warfarin for preventing stroke or systemic embolism in atrial fibrillation. The justified, prespecified non-inferiority margin is a hazard ratio (HR) of 1.30. Assume trial conduct and prespecified sensitivity analyses support interpretation. The primary result is HR 0.91 (95% CI 0.78–1.06). Which conclusion is correct?
The new drug is superior to warfarin because the hazard ratio is below 1
The trial is inconclusive because the confidence interval includes 1
The new drug is inferior to warfarin because the upper confidence limit is above 1
The new drug is non-inferior to warfarin but has not been shown to be superior
Sections you finish are checked off in the contents.