Chapter 21 · Many variables, validation and pitfalls
Why do correct numbers still mislead?
Simpson's paradox, regression to the mean, the ecological fallacy, misused P-values and misleading reporting.
Read first: Bias, confounding and validity, Hypothesis testing
The problem first
You are an MD Medicine resident presenting at a journal club. A paper reports that 50 patients recruited with a clinic systolic pressure above 160 mmHg fell by 12 mmHg over 8 weeks on a herbal supplement, p < 0.001. The arithmetic in the paper is correct.
You recommend the supplement. The chairperson asks one question.
“The patients were selected because their pressure was high. How much of that fall would have happened anyway?”
Start here
How can a study with correct arithmetic reach the wrong conclusion?
A statistical fallacy is an error in reasoning from data. The calculations can be correct while the sample, the comparison, the analysis, the presentation or the interpretation leads the reader to a false conclusion.
| Stage | What goes wrong | Section |
|---|---|---|
| Who was studied | Survivors, volunteers, referral patients, too few patients | Biased and small samples |
| What was compared | Groups that differ in severity or follow-up, combined groups that reverse a result | Incomparable groups, Simpson's paradox |
| How patients were selected over time | Selection on an extreme value, treatment that starts after follow-up starts | Regression to the mean, Immortal time |
| Level of the data | Group averages read as facts about individuals | Ecological fallacy |
| How results were summarised | Percentages from tiny denominators, percent confused with percentage points | Percentages and means |
| How results were interpreted | Significance read as importance, non-significance as no effect, association as cause | P-values, Causation |
| How results were reported | Relative risk alone, truncated axes, selected outcomes | Misleading reporting |
Who was studied
Can a sample give the wrong answer even when it is large?
Yes. A sample that differs systematically from the population gives a biased answer, and a larger biased sample only makes that answer more precise.
- Survivors and prevalent cases: patients who died early, or recovered quickly, never enter a study of existing cases.
- Volunteers: people who agree to take part differ in health, motivation and adherence from those who do not.
- Hospital and referral samples: tertiary centres see more severe and unusual cases. Results may not apply to patients in primary care.
- Too small a sample: a small study has low power, so it misses real effects. When it does find a significant result, the estimated effect tends to be too large. A review of neuroscience studies by Button and colleagues (2013) estimated a median statistical power of 21%.
Sampling methods and selection bias are covered in the bias and validity chapter.
What was compared
Were the groups alike in everything except the treatment?
A difference between groups can come from the treatment, or from any other difference between the patients in the groups.
- Case-mix: one hospital, clinic or treatment group has sicker, older or more complex patients.
- Different follow-up or exposure time: rates compared over unequal periods. Use events per person-time, not events per person.
- Different intensity of looking: a group that is examined more often has more of the outcome recorded.
- Different adherence or dropout: patients who stay on a treatment differ from those who stop.
- Chance imbalance: even randomisation can leave small trials unbalanced on an important prognostic factor. Look at the baseline table.
The remedy is to compare like with like: randomisation, matching, stratified results, or adjustment in a regression model for the factors that differ. Confounding is explained in the bias and validity chapter.
Mixing distinct groups
Can combining two groups reverse the result seen in each of them?
Yes. When a factor that affects the outcome is distributed very differently between the groups being compared, the pooled comparison can point the opposite way from every stratum. This is Simpson's paradox.
Made-up teaching example. Hospital A, a referral centre, treats 400 severe and 100 mild patients. Hospital B treats 100 severe and 400 mild patients. Hospital A has the higher success rate in both strata.
| Hospital A | Hospital B | |
|---|---|---|
| Mild patients | 95/100 (95.0%) | 360/400 (90.0%) |
| Severe patients | 280/400 (70.0%) | 60/100 (60.0%) |
| All patients | 375/500 (75.0%) | 420/500 (84.0%) |
Pooled, Hospital B looks better, because most of its patients are mild and mild patients do well everywhere. Adjusted for severity, Hospital A is better: standardised to the same case-mix (half mild, half severe), A has 82.5% success and B 75.0%.
The reversal was pointed out by Pearson (1899) and Yule (1903). Simpson's 1951 paper showed how combining contingency tables can lead to paradoxical conclusions. The fix is to report stratum-specific results, or an estimate adjusted for the factor, such as the Mantel-Haenszel odds ratio.
Interactive
Change the case-mix of the two hospitals and watch the pooled comparison reverse
Try this: move Hospital A's share of severe patients from 80% down to 20%. Watch the pooled comparison reverse, while the two stratum comparisons never change.
Teaching example with made-up success rates: Hospital A (a referral centre) 95% in mild and 70% in severe patients; Hospital B 90% and 60%. Each hospital treats 500 patients.
Pooled, Hospital B looks better (84.0% against 75.0%), although Hospital A has the higher success rate in mild and in severe patients. This reversal is Simpson's paradox.
standardised to the same case-mix (half mild, half severe): A 82.5% · B 75.0%
Selection on an extreme value
Why do patients selected for a very high reading improve without treatment?
Every measurement is the patient's usual level plus some chance variation. Patients picked because a reading was extreme are, on average, patients whose chance variation was high that day. At the next reading, the chance part is new, so the average moves back towards the usual level.
expected visit 2 = population mean + R × (visit 1 − population mean)
- R
- reliability = variance of true values ÷ variance of observed values = SD_true² ÷ (SD_true² + SD_error²)
- R = 1
- no measurement error: no regression to the mean
- R = 0.5
- half the observed spread is chance: the expected second reading is halfway back to the mean
Teaching example: true systolic pressure averages 130 mmHg with SD 12, and visit-to-visit variation has SD 8, so R = 144 ÷ 208 = 0.69. Patients reading 160 or more at visit 1 average 165.3 mmHg. Their expected visit 2 value is 130 + 0.69 × 35.3 = 154.4 mmHg, a fall of 10.8 mmHg with no treatment. The name comes from Galton's 1886 paper on “regression towards mediocrity” in the heights of parents and children.
Barnett and colleagues (2005) noted that the effect becomes more noticeable as measurement error increases and when follow-up is examined only in a subgroup selected on a baseline value. How to deal with it: include a randomised control group selected in the same way, select patients on the average of two or more readings, take a fresh baseline reading after selection, and analyse follow-up values adjusted for baseline (analysis of covariance).
Interactive
Recall patients with a high reading and watch their average fall with no treatment
Try this: keep the cut-off at 160 mmHg and move the measurement error from 8 to 0. With no error there is nothing to fall back from. Then move it to 16 and watch the fall grow, although nobody is treated.
Teaching simulation: 1,000 untreated adults, true systolic BP averaging 130 mmHg (SD 12). Each visit adds random variation. Patients with a visit 1 reading at or above the cut-off are recalled for visit 2.
Measurement error plus day-to-day change
A more extreme cut-off selects more patients whose high reading was partly chance
21 of 1,000 patients read 160 mmHg or more at visit 1 (mean 165.0). At visit 2 the same patients average 154.3 mmHg. Normal theory predicts 165.3 falling to 154.4.
reliability = 12² ÷ (12² + 8²) = 0.69 · expected visit 2 = 130 + 0.69 × (visit 1 mean − 130)
Level of the data
Does an association between districts hold for the people in them?
Not necessarily. An association found with group-level data (districts, countries, years) may be weaker, absent or reversed among individuals. Assuming it holds for individuals is the ecological fallacy.
- Why it happens: group averages hide the variation within groups, and factors that differ between groups (age, income, diagnosis rates) are mixed in with the exposure. The data cannot show whether the exposed individuals are the ones with the outcome.
- Example: Messerli (2012) reported a correlation of r = 0.791 (p < 0.0001) between chocolate consumption per person and Nobel laureates per 10 million people across 23 countries. Country averages cannot show that the people who eat chocolate are the ones who receive Nobel prizes, and Messerli himself noted that the direction could be reversed.
- Classic reference: W. S. Robinson, “Ecological correlations and the behavior of individuals” (1950).
- Remedy: collect individual-level data, or analyse individuals and groups together in a multilevel model. Use ecological studies to generate hypotheses and to study exposures that act on whole areas.
Ecological study design is described in the study designs chapter.
Summaries
When do percentages and means mislead?
A percentage hides its denominator, and a mean hides the spread and the shape of the data.
| Problem | Teaching example | What to report |
|---|---|---|
| Small denominator | 2 of 5 (40%) against 3 of 5 (60%) looks like a 20-point difference. The exact 95% CIs are 5.3% to 85.3% and 14.7% to 94.7%, and Fisher's exact p = 1.00. One patient made the difference. | Counts as n/N, with confidence intervals |
| Wrong base | 12 deep infections among 30 wound infections after 200 operations: 40% of infections, but 6% of operations. | State the denominator every time |
| Percent vs percentage points | A complication rate rising from 10% to 15% is a rise of 5 percentage points, or a 50% relative rise. | Use “percentage points” for absolute differences |
| Missing people | “80% satisfied” among those who returned a questionnaire that half the patients did not return. | Response rate and how non-responders differ |
| Mean of skewed data | A few patients staying 40 days raise the mean length of stay far above what a typical patient experiences. | Median and interquartile range |
A published example of confusing the two units: Gigerenzer and colleagues (2007) pointed out that Naylor and colleagues (1992) described a fall in myocardial infarction from 3.9% to 2.5% as “a 1.4% decrease” instead of a decrease of 1.4 percentage points.
Interpretation
What can a P-value not tell you?
A P-value is the probability of data at least as extreme as those observed if the null hypothesis were true. It is not the probability that the hypothesis is true, and it does not measure the size or importance of an effect.
Significance is not importance
With 20,000 patients per group, a difference of 1.0 percentage point in mortality (15.0% vs 16.0%) gives p = 0.006, although the whole 95% CI (−1.7 to −0.3 points) lies within the 3 points that matter. Large samples make small differences significant. Judge importance from the effect size and its confidence interval, compared with the smallest difference that matters to patients.
“No evidence of effect” is not “evidence of no effect”
Trial A (6/40 vs 8/40 deaths) gives p = 0.56, but its 95% CI runs from 21.6 points fewer deaths to 11.6 points more. The study cannot separate a large benefit from a large harm. Only Trial B, whose interval lies within ±3 points, supports the statement that there is no important difference. To show that two treatments are equivalent, a study must be designed for that purpose.
p-hacking and multiple testing
Every extra outcome, time point, subgroup, cut-off, covariate set or interim look gives another chance of a false positive. If 20 independent outcomes are tested at α = 0.05 when no effect exists, the chance of at least one significant result is 1 − 0.95²⁰ = 64%. Simmons and colleagues (2011) showed with simulations and experiments that undisclosed flexibility in collecting, analysing and reporting data greatly increases the actual false-positive rate. Trying analyses until one reaches p < 0.05 and reporting only that one is called p-hacking.
The American Statistical Association's 2016 statement on P-values, type I and II errors, and multiple testing are covered in the hypothesis testing chapter.
Interpretation
When does an association mean that one thing causes the other?
An association can come from chance, bias, confounding by a third factor, or reverse causation, as well as from cause and effect.
- Chance: check the confidence interval and how many associations were tested.
- Bias: check how patients were selected and how exposure and outcome were measured.
- Confounding: a third factor linked to both. Grey hair and cataract are associated because both increase with age.
- Reverse causation: the outcome, or its early stage, causes the exposure. People who feel unwell may stop exercising before a diagnosis is made.
In 1965 Austin Bradford Hill listed nine viewpoints from which to study an association “before we cry causation”: strength, consistency, specificity, temporality, biological gradient, plausibility, coherence, experiment and analogy. He stated that they are not hard-and-fast rules. Whatever else is uncertain, a cause must come before its effect. A randomised trial removes confounding by design, which is why it gives the strongest evidence that a treatment causes an effect.
Time
Why do patients who received a treatment later seem to live longer?
To be counted as treated, a patient must survive until treatment starts. If that waiting time is credited to the treated group, the treated group gets survival time during which it could not die. This is immortal time bias.
- First described: in the 1970s, in cohort studies of the survival benefit of heart transplantation (Suissa, 2008). Gail's 1972 reassessment asked “Does cardiac transplantation prolong life?”
- Oscar winners: a 2001 study reported that Academy Award winners lived 3.9 years longer than other performers (79.7 vs 75.8 years). A reanalysis that did not credit winners' years before winning found an advantage closer to 1 year, and not statistically significant (Sylvestre and colleagues, 2006).
- Survivorship bias is the wider problem: analysing only people who survived long enough to be observed.
- How to avoid it: treat the exposure as time-varying, so that follow-up before treatment starts counts as untreated time, or start follow-up for everyone at a fixed landmark time after diagnosis and classify patients by treatment received by then.
Interactive
Delay the start of a drug that does nothing and watch the naive analysis show a benefit
Try this: move the average delay before the drug starts from 0 to 6 months. The drug does nothing, but the naive rate ratio falls further below 1. Switch to "Time-split analysis" and the rate ratio returns close to 1.
Teaching simulation: 600 patients after a diagnosis, the same death rate (0.08 per patient-month) in everyone, followed for 12 months. Half are planned to start a drug that has no effect. A patient who dies before the planned start stays in the never-treated group.
Naive: 254 ever-treated patients, 50.4% died; 346 never-treated patients, 66.5% died. Death rates 5.5 and 9.8 per 100 patient-months. The drug appears to protect, because the treated group had to survive until treatment started.
naive rate ratio 0.56 · time-split rate ratio 1.08 · true effect of the drug: none (rate ratio 1)
Presentation
How can correct results be reported in a misleading way?
The same result can be made to look large or small by the measure chosen, the axis drawn and the outcomes selected for the abstract.
Relative risk without absolute risk
- A relative change describes the risk ratio. An absolute change describes how many patients in 100 or 1,000 are affected. Report both, with the baseline risk.
- Naylor and colleagues (1992) randomised 100 Toronto clinicians to see trial results as relative or absolute risk reductions. Ratings of effectiveness were lower when the same data were shown as absolute differences (P < 0.001).
- CONSORT 2025 item 26 asks for “presentation of both absolute and relative effect size” for binary outcomes. RR, ARR and NNT are explained in the risk and survival chapter.
Graphs that exaggerate
A bar chart whose vertical axis does not start at zero makes small differences look large. The lie factor and other misleading graphs are shown in the data presentation chapter.
Selective reporting
Reporting only the outcomes, time points or subgroups that reached significance makes chance findings look like results. Compare the paper with its protocol or trial registration. CONSORT 2025 item 28 asks that ancillary analyses distinguish pre-specified from post hoc.
Decide
Which fallacy might explain this result?
Start from what the paper claims.
What does the paper claim?
Which fallacy: all possible answers
- Regression to the mean: Extreme first readings are partly chance, so the next reading moves towards the average without treatment. Look for a control group selected the same way.
- Possible ecological fallacy: A link between group averages may not hold for individuals. Look for individual-level data.
- Absence of evidence: Read the confidence interval. A wide interval that includes important benefit and harm means the study could not tell.
- Multiple testing or flexible analysis: Count the outcomes, subgroups and analyses. Check the protocol or registry for what was pre-specified.
- Relative risk without absolute risk: Find the baseline risk and the absolute difference. A 50% relative reduction can be 1 patient in 1,000.
- Immortal time bias: Patients had to survive until treatment started to be counted as treated. Look for a time-varying exposure or a landmark analysis.
- Confounding, and possibly Simpson's paradox: Look at the results within strata of the factor, or an adjusted estimate. A pooled comparison can reverse.
- Check who entered the study: Survivors, volunteers, referral patients or a small sample can still bias the result. Check how patients were selected and how many were analysed.
Comparison
No evidence of effect, or evidence of no effect?
| Feature | No evidence of effect | Evidence of no important effect |
|---|---|---|
| P-value | Usually > 0.05 | Usually > 0.05, which alone does not separate the two |
| Confidence interval | Wide: includes important benefit and important harm | Narrow: lies entirely within the smallest important difference |
| Typical study | Small, underpowered | Large, or designed as an equivalence or non-inferiority trial |
| Correct conclusion | The study could not tell | Any difference is too small to matter |
| Teaching example | Trial A: −5.0 points (−21.6 to 11.6), p = 0.56 | Trial B: −0.5 points (−2.7 to 1.7), p = 0.66 |
Comparison
Regression to the mean, or a real treatment effect?
| Feature | Regression to the mean | Real treatment effect |
|---|---|---|
| Seen in | Any group selected for an extreme value, treated or not | The treated group more than a comparable control group |
| Size depends on | Measurement variability and how extreme the selection cut-off is | The treatment |
| Direction | Always back towards the population mean | In the direction the treatment acts, whatever the starting value |
| Shown by | A before-after comparison without a control group | A difference between randomised groups at follow-up, adjusted for baseline |
| Teaching example | Recalled patients fall from 165.3 to about 154.4 mmHg with no treatment | The treated group falls further than the control group recalled with the same cut-off |
The formula
Worked examples: adjusting, predicting and splitting time
Made-up teaching data, calculated in Python (SciPy and statsmodels).
1. Simpson's paradox: crude and Mantel-Haenszel odds ratios
Odds of success in Hospital A compared with Hospital B, from the table in the Simpson's paradox section.
crude OR = (375 × 80) ÷ (125 × 420) = 0.57
ORMH = Σ(aidi ÷ ni) ÷ Σ(bici ÷ ni)
- a, b
- successes and failures in Hospital A within a stratum
- c, d
- successes and failures in Hospital B within the same stratum
- n
- patients in the stratum
- Mild stratum: a = 95, b = 5, c = 360, d = 40, n = 500. ad ÷ n = 3,800 ÷ 500 = 7.6. bc ÷ n = 1,800 ÷ 500 = 3.6. Stratum OR 2.11.
- Severe stratum: a = 280, b = 120, c = 60, d = 40, n = 500. ad ÷ n = 22.4. bc ÷ n = 14.4. Stratum OR 1.56.
- ORMH = (7.6 + 22.4) ÷ (3.6 + 14.4) = 30 ÷ 18 = 1.67 (95% CI 1.11 to 2.50, Cochran-Mantel-Haenszel p = 0.014).
- The crude comparison (OR 0.57, chi-square p < 0.001) points the opposite way from both strata and from the adjusted estimate.
2. Regression to the mean: the expected second reading
- Observed SD = √(12² + 8²) = √208 = 14.42 mmHg. Reliability R = 144 ÷ 208 = 0.692.
- Cut-off 160 mmHg is z = 30 ÷ 14.42 = 2.08 above the mean. 1.9% of patients are recalled.
- Mean visit 1 reading in those recalled = 130 + 14.42 × φ(2.08) ÷ [1 − Φ(2.08)] = 165.3 mmHg.
- Expected visit 2 = 130 + 0.692 × 35.3 = 154.4 mmHg. Expected fall without treatment: 10.8 mmHg.
3. Immortal time: naive and time-split rates
200 patients with the same constant death rate, 0.10 per patient-month, are followed for 12 months. 100 are planned to start a drug with no effect at month 3. 74 of them are still alive then and count as treated.
- Naive analysis, all follow-up of the 74 counted as treated: 44 deaths in 662 patient-months, 6.6 per 100 patient-months. Never treated (126 patients): 96 deaths in 736 patient-months, 13.0 per 100. Rate ratio 0.51.
- Time-split analysis, the first 3 months of the 74 counted as untreated: treated 44 deaths in 440 patient-months, 10.0 per 100. Untreated 96 deaths in 958 patient-months, 10.0 per 100. Rate ratio 1.00.
In a real paper
Immortal time bias and Simpson's paradox in published studies
van der Vaart TW, Prins JM, van Werkhoven CH, Ten Doesschate T, Soetekouw R, van Twillert G, et al. Positive impact of [18F]FDG-PET/CT on mortality in patients with Staphylococcus aureus bacteremia explained by immortal time bias. Clin Infect Dis. 2023;77(1):9-15.
doi:10.1093/cid/ciad112 · PMID 36869816 · Free full text (PMC10320066)
The study: A prospective cohort of 476 patients with Staphylococcus aureus bacteraemia in 2 university and 5 non-university hospitals in the Netherlands. 178 (37%) had FDG-PET/CT on clinical indication. Earlier studies had suggested that PET/CT improves survival, but a patient must survive long enough to be scanned. The authors modelled PET/CT as a time-varying variable in a Cox model, adjusted for confounders.
“The confounder adjusted hazard ratio (aHR) for all-cause mortality was 0.50 (95% confidence interval [CI]: .34–.74) in patients that underwent [18F]FDG-PET/CT. Adjustment for immortal time bias changed the aHR to 1.00 (95% CI .68–1.48).”
When patients who were scanned were compared with those who were not, as if everyone's status was known from day 1, the scanned patients had half the death rate. When each patient's time before the scan was counted as unscanned time, the hazard ratio became 1.00: no association with 90-day mortality. The apparent halving of deaths came from the time patients had to survive to be scanned.
| Reported | Value | What it means |
|---|---|---|
| Patients, PET/CT | 476; 178 (37%) | Cohort size and number scanned |
| 90-day all-cause mortality | 31% (147 patients) | The outcome |
| aHR, PET/CT as fixed exposure | 0.50 (95% CI .34–.74) | Apparent halving of the death rate, biased by immortal time |
| aHR, PET/CT as time-varying exposure | 1.00 (95% CI .68–1.48) | No association once the waiting time is counted correctly |
| Infection-related mortality, cause-specific aHR | 1.30 (95% CI .77–2.21) | No reduction in infection-related deaths either |
- Patients who died within 48 hours of the first positive blood culture were excluded. Check how exclusions based on early events affect the comparison.
- PET/CT was done on clinical indication, so confounding by indication can remain after adjustment for measured factors.
- A null hazard ratio with a confidence interval from .68 to 1.48 does not exclude a moderate benefit or harm in particular subgroups.
Grellety E, Golden MH. Severely malnourished children with a low weight-for-height have a higher mortality than those with a low mid-upper-arm-circumference: I. Empirical data demonstrates Simpson's paradox. Nutr J. 2018;17(1):79.
doi:10.1186/s12937-018-0384-4 · PMID 30217205 · Free full text (PMC6138885)
The study: Programme data on 76,887 children aged 6 to 60 months admitted for severe acute malnutrition in 18 African countries, of whom 3,588 died. Children were grouped by the admission criterion they met: low mid-upper-arm circumference (MUAC) only, low weight-for-height (WHZ) only, or both. The question was whether WHZ adds prognostic information to MUAC.
“The data were subject to extreme confounding giving Simpson’s paradox, which reversed the apparent mortality rates when children fulfilling both WHZ and MUAC criteria were included in the estimation of the risk of death of those fulfilling either the WHZ or MUAC criteria alone.”
Among children without oedema, those who met only the WHZ criterion died more often than those who met only the MUAC criterion. But when the large group meeting both criteria was added to each, the combined “low MUAC” group had the higher death rate. The same high-risk children were counted in both combined groups, and they made up a larger share of the MUAC group, so the comparison reversed.
| Reported | Value | What it means |
|---|---|---|
| MUAC only (no oedema) | 56 of 7,191 died (0.78%) | Lowest death rate |
| WHZ only (no oedema) | 332 of 16,530 (2.01%) | Higher than MUAC only |
| Both criteria | 2,000 of 40,307 (4.96%) | The highest-risk group |
| All low MUAC (MUAC only + both) | 2,056 of 47,498 (4.33%) | Now higher than all low WHZ |
| All low WHZ (WHZ only + both) | 2,332 of 56,837 (4.10%) | The pooled comparison is reversed |
- The "both" group is counted in both pooled groups. The authors call this mathematical coupling: pooled comparisons of overlapping groups can mislead.
- These are retrospective programme data from many facilities, so other differences between facilities can also affect death rates.
- Compare mutually exclusive groups, as the authors do, before drawing a policy conclusion.
Software
How to run it
Checking for a fallacy usually means running the analysis that removes it: stratifying, adjusting for baseline, correcting for multiple tests, or splitting follow-up time.
Stratified analysis (Simpson's paradox, confounding)
- SPSS: Analyze > Descriptive Statistics > Crosstabs. Put the treatment or hospital in Rows, the outcome in Columns, and the stratifying factor in Layer. Under Statistics, tick Cochran's and Mantel-Haenszel statistics, which are computed once for all layers.
- jamovi: the Contingency Tables analysis (the same analysis as jmv::contTables) accepts layer variables and shows a table for each stratum. Its Mantel-Haenszel option is a test for trend, not the stratified odds ratio, so use R or SPSS for the adjusted odds ratio.
# R: Cochran-Mantel-Haenszel test and common odds ratio
tab <- array(c(95, 5, 360, 40, # mild: A success, A failure, B success, B failure
280, 120, 60, 40), # severe
dim = c(2, 2, 2),
dimnames = list(outcome = c("success", "failure"),
hospital = c("A", "B"),
severity = c("mild", "severe")))
mantelhaen.test(tab) # the last dimension holds the strataRegression to the mean (baseline adjustment)
- SPSS: Analyze > General Linear Model > Univariate. Follow-up value as Dependent Variable, group as Fixed Factor, baseline value as Covariate.
- jamovi: ANCOVA, with the follow-up value as the dependent variable, group as a factor and baseline as a covariate (jmv::ancova).
- R: lm(followup ~ group + baseline, data = d)
Multiple testing
p <- c(0.004, 0.012, 0.03, 0.04, 0.20) p.adjust(p, method = "holm") # controls the family-wise error rate p.adjust(p, method = "BH") # controls the false discovery rate
Immortal time (time-varying treatment)
library(survival) # pts: one row per patient: id, futime (months), died (0/1) # trt: one row per treated patient: id, start (months), on_drug = 1 base <- tmerge(pts, pts, id = id, death = event(futime, died)) tv <- tmerge(base, trt, id = id, drug = tdc(start, on_drug, 0)) coxph(Surv(tstart, tstop, death) ~ drug, data = tv)
Checked against the documentation: mantelhaen.test and p.adjust (R stats), tmerge with tdc(y, x, init) and event() (survival 3.8-12), contTables and ancova (jmv 2.8.0), and the IBM SPSS Statistics 25 pages for Crosstabs Statistics and GLM Univariate.
Reporting
How to report it
Show the reader the analysis that answers the fallacy, not only the one that gives the smallest P-value.
- “Success rates are reported within severity strata. The odds of success were higher in Hospital A in both mild (OR 2.11) and severe patients (OR 1.56). The Mantel-Haenszel odds ratio adjusted for severity was 1.67 (95% CI 1.11 to 2.50). The crude odds ratio was 0.57 because the two hospitals treated very different proportions of severe patients.”
- “Because patients were enrolled on a single raised reading, follow-up blood pressure was compared between randomised groups with analysis of covariance adjusted for the baseline value.”
- “Treatment was analysed as a time-varying exposure from the day it started, so that follow-up before treatment was counted as untreated time.”
- “Mortality was 15.0% with the new treatment and 15.5% with standard care (difference −0.5 percentage points, 95% CI −2.7 to 1.7). The confidence interval excludes the pre-specified smallest important difference of 3 percentage points.”
- For binary outcomes give absolute and relative effect sizes (CONSORT 2025, item 26). State which analyses were pre-specified (item 28).
Reading a paper
A checklist for reading an article's statistics
Read the paper in the order the study was done: who, compared with whom, measured how, analysed how, and concluded what.
| Part of the paper | Questions to ask | Fallacy it detects |
|---|---|---|
| Title and abstract | Does the abstract claim cause from observational data? Are the headline numbers relative or absolute? | Correlation read as causation, relative risk alone |
| Methods: participants | How were patients selected? Survivors, volunteers, referrals? How many were eligible, enrolled and analysed? Was the sample size calculated? | Biased or small sample |
| Methods: comparison | Randomised? If not, how were confounders handled? Were patients selected on an extreme value? When did exposure start relative to follow-up? | Incomparable groups, regression to the mean, immortal time |
| Methods: analysis | Was one primary outcome pre-specified (protocol, registry)? How many outcomes, subgroups and time points were tested? Were group-level data used? | p-hacking, multiple testing, ecological fallacy |
| Results: tables | Are counts and denominators given? Are baseline characteristics similar? Do stratified results agree with pooled ones? | Misused percentages, Simpson's paradox |
| Results: effect sizes | Is each effect given with a 95% CI? Is the CI compared with a clinically important difference? | Significance read as importance, non-significance as no effect |
| Figures | Do axes start at zero for bars? Are individual data or spread shown? | Exaggerated differences |
| Discussion | Do the conclusions follow from the primary analysis? Are limitations and alternative explanations discussed? | Overreporting, selective reporting |
By specialty
Statistical fallacies by specialty
District data show that districts with more private clinics have higher recorded diabetes prevalence.
A district-level association does not show that people who use private clinics are more likely to have diabetes. More clinics can mean more diagnosis.
Patients enrolled because of a clinic blood pressure above 160 mmHg have lower readings at the next visit, before any drug has had time to act.
Part of the fall is regression to the mean. Use the average of two or more readings for selection, and compare with a control group.
A district hospital reports better overall outcomes than the referral centre for the same operation.
Compare outcomes within severity groups or use risk adjustment. The referral centre may treat far more high-risk patients.
A retrospective study reports that patients who received maintenance therapy lived longer than those who did not.
Patients had to survive until maintenance began. Count the time before starting as untreated time.
A case series reports "60% response" in a rare disease, based on 3 of 5 children.
Report 3 of 5 with its confidence interval (14.7% to 94.7%). With 5 patients one child changes the percentage by 20 points.
A news report says that a contraceptive doubles the risk of venous thrombosis.
Ask for the absolute risks. In the 1995 UK pill scare, the increase was from about 1 to 2 per 7,000 women.
Patients recruited when their depression score is at its worst improve by several points on a waiting list.
Symptoms that fluctuate move back towards their usual level. Only a randomised control group shows how much improvement the treatment adds.
A thesis compares two drugs on 12 outcomes at 6 time points and reports the two that reached p < 0.05.
Name one primary outcome and time point in the protocol. Report every outcome tested, and label the rest exploratory.
Common myths
Common mistaken beliefs
Myth: A large database cannot give a biased answer.
Size reduces random error, not bias. A large sample of survivors, volunteers or referral patients gives a precise but biased estimate.
Myth: If a group improves from baseline, the treatment worked.
Patients selected for a high value improve on average without treatment. Only a comparable control group shows the treatment effect.
Myth: A result seen in the combined data holds in each subgroup.
Simpson's paradox: the pooled comparison can reverse the comparison in every stratum.
Myth: A correlation between countries shows the same relation in people.
Group-level associations may be absent or reversed among individuals: the ecological fallacy.
Myth: p > 0.05 shows that two treatments are the same.
It shows that the study could not detect a difference. Look at the confidence interval, or at a trial designed to show equivalence.
Myth: p = 0.03 means a 3% chance that the result is a false positive.
ASA 2016, principle 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.
Myth: Patients who received the drug lived longer, so the drug prolongs life.
If treatment started after follow-up began, treated patients had to survive to receive it. Check for immortal time bias.
Why this matters to you
Five consequences of missing a statistical fallacy
A thesis conclusion that does not hold
A before-after study of patients recruited at their worst reports an improvement that is mostly regression to the mean.
A wrong ranking of hospitals or units
Crude outcome rates penalise the unit that accepts the sickest patients.
A common viva error
"The difference was not significant, so the two drugs are equally effective."
Misreading papers at journal club
Observational studies with immortal time or ecological data are presented as proof of benefit.
Harm to patients
A relative risk headline leads patients to stop a useful treatment, or a trivial benefit is adopted because p was small.
History
History of statistical fallacies in medicine
- 1886
Francis Galton
Published "Regression towards mediocrity in hereditary stature", the origin of the term regression.
- 1903
G. Udny Yule
Published "Notes on the theory of association of attributes in statistics", one of the first descriptions of the reversal later named after Simpson.
- 1950
W. S. Robinson
Published "Ecological correlations and the behavior of individuals" in the American Sociological Review.
- 1951
E. H. Simpson
Published "The interpretation of interaction in contingency tables", showing how combining contingency tables can lead to paradoxical conclusions.
- 1965
Austin Bradford Hill
Set out nine viewpoints for judging whether an association is causal, and warned against treating them as hard-and-fast rules.
- 1972
Mitchell Gail
Published "Does cardiac transplantation prolong life? A reassessment". Immortal time bias was first identified in studies of heart transplantation in the 1970s.
- 1992
David Naylor and colleagues
Showed that clinicians rated the same trial results as more effective when presented as relative rather than absolute risk reductions.
- 1995
Douglas Altman and Martin Bland
Published "Absence of evidence is not evidence of absence" in the BMJ.
- 2006
Marie-Pierre Sylvestre, Ella Huszti and James Hanley
Reanalysed the 2001 report that Oscar winners live 3.9 years longer. Without immortal time the advantage was closer to 1 year and not significant.
- 2008
Samy Suissa
Described immortal time bias in pharmaco-epidemiology and showed that the bias grows with the duration of immortal time.
- 2011
Joseph Simmons, Leif Nelson and Uri Simonsohn
Showed that flexibility in data collection, analysis and reporting greatly increases false-positive rates.
- 2013
Katherine Button and colleagues
Estimated a median statistical power of 21% in neuroscience studies, with overestimated effects and low reproducibility as consequences.
- 2016
American Statistical Association
Released a statement on statistical significance and P-values with six principles.
Guidelines
Fallacies in guidelines and statements
“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.” “A p-value, or statistical significance, does not measure the size of an effect or the importance of a result.”
For each primary and secondary outcome, by group: “the estimated effect size and its precision (such as 95% confidence interval)” and “for binary outcomes, presentation of both absolute and relative effect size”.
“Any other analyses performed, including subgroup and sensitivity analyses, distinguishing pre-specified from post hoc.”
Reading a paper
Five checks for statistical fallacies in any paper
- Who was included, and who could not have been (people who died, did not attend, or were never referred)?
- Were patients selected on an extreme value, and is there a control group selected the same way?
- Do the groups differ in severity or other risk factors, and do stratified or adjusted results agree with the crude ones?
- Did follow-up start at the same time for treated and untreated patients?
- Are effects given as absolute and relative differences with 95% confidence intervals, compared with a difference that matters?
Why is it called that?
Word surgery
“Significant”
Important, large, worth attention.
Unlikely to be explained by chance alone at the chosen α. A significant difference can be too small to matter.
“Regression”
Going backwards, getting worse.
In "regression to the mean", extreme values are followed by values nearer the average. In regression analysis, predicting one variable from others.
“Ecological”
About the natural environment.
About groups or areas rather than individuals. An ecological study uses group-level data.
Before believing a comparison, ask four questions: who was counted, from when, compared with whom, and out of how many.
Fallacy
Latin fallacia: "deception, deceit, trick", from fallere "to deceive"
An argument that looks valid but is not. A statistical fallacy draws a false conclusion from data.
Paradox
Greek paradoxos: "contrary to expectation", from para- "contrary to" + doxa "opinion"
Simpson's paradox is a result contrary to expectation that has a clear explanation: an unevenly distributed confounder.
Regression
Latin regressio: "a going back, a return", from regredi "to go back"
Galton used it for offspring whose heights were closer to the average than their parents'.
Immortal
Latin immortalis: "deathless", from in- "not" + mortalis "mortal"
Immortal time is follow-up during which a patient could not have had the outcome, because of how exposure was defined.
Spurious
Latin spurius: "illegitimate, false"
A spurious association is real in the data but does not reflect cause and effect.
Exam answers
Model answer outlines
Describe ecological fallacy
MD Community Medicine 2024- Definition: the error of assuming that an association observed between groups (districts, countries, years) holds for the individuals within those groups.
- Ecological study: exposure and outcome are measured as group averages or rates, so it is not known whether the exposed individuals are the ones with the outcome. Design details: study designs chapter.
- Mechanisms: confounding by group-level factors (age structure, income, diagnosis rates), variation within groups hidden by averaging, and different grouping giving different results.
- Illustration: districts with more exposed adults have higher disease rates, while inside each district exposed and unexposed people have the same rate (teaching example).
- Published example: country-level chocolate consumption correlated with Nobel laureates per 10 million people (r = 0.791, 23 countries, Messerli 2012). This cannot show that individuals who eat chocolate receive Nobel prizes.
- History: W. S. Robinson, “Ecological correlations and the behavior of individuals”, American Sociological Review, 1950.
- Prevention: individual-level data (cross-sectional, case-control, cohort), multilevel models that include individual and group variables, and caution in wording conclusions.
- Value of ecological studies: quick and cheap with routine data, useful for hypotheses and for exposures that act on whole areas (air pollution, water supply, policies).
How will you study statistical fallacies in an article?
MD Community Medicine 2020- Definition: a statistical fallacy is an error in reasoning from data that leads to a false conclusion even when the calculations are correct.
- Sample: selection (survivors, volunteers, referral patients), non-response and loss to follow-up, and a sample size calculation. Small studies miss effects and overestimate the effects they find.
- Comparability of groups: randomisation, baseline table, case-mix, equal follow-up time. Check stratified or adjusted results for confounding and Simpson's paradox (hospital example: A better in both strata, B better pooled).
- Selection on extreme values: regression to the mean in before-after studies without a control group. Expected second reading = mean + reliability × (first reading − mean).
- Timing: immortal time bias when treatment starts after follow-up begins. Look for time-varying exposure or landmark analysis.
- Level of data: ecological fallacy when group averages are used to draw conclusions about individuals.
- Summaries: percentages from small denominators, wrong base, percent vs percentage points, means of skewed data.
- P-values: significance vs clinical importance, non-significance read as no effect, multiple testing and p-hacking. Compare with the protocol or registry (ASA 2016 principles).
- Causation: chance, bias, confounding and reverse causation before cause. Bradford Hill's nine viewpoints, remembering that a cause must precede its effect.
- Reporting: absolute and relative effects with 95% CIs (CONSORT 2025 item 26), graphs with honest axes, pre-specified vs post hoc analyses (item 28).
- Conclusion: judge whether the authors' conclusion follows from the primary analysis, and state which fallacies could explain the result.
The one thing to remember
Before believing a result, ask who was counted, from when, compared with whom, and out of how many.
Hospital, blood pressure, district, percentage, trial and immortal-time examples are made-up teaching data, calculated in Python (SciPy 1.15 and statsmodels). The kidney stone, malnutrition, PET/CT and pill-scare figures come from the cited sources.
Sources: Galton F. J Anthropol Inst 1886;15:246–63 (doi:10.2307/2841583). Yule GU. Biometrika 1903;2:121–34 (doi:10.1093/biomet/2.2.121). Robinson WS. Am Sociol Rev 1950;15:351–7 (doi:10.2307/2087176). Simpson EH. J R Stat Soc B 1951;13:238–41 (doi:10.1111/j.2517-6161.1951.tb00088.x). Hill AB. Proc R Soc Med 1965;58:295–300 (doi:10.1177/003591576505800503; PMID 14283879). Gail MH. Ann Intern Med 1972;76:815–7 (doi:10.7326/0003-4819-76-5-815; PMID 4554414). Charig CR et al. Br Med J 1986;292:879–82 (doi:10.1136/bmj.292.6524.879; PMID 3083922). Naylor CD, Chen E, Strauss B. Ann Intern Med 1992;117:916–21 (doi:10.7326/0003-4819-117-11-916; PMID 1443954). Altman DG, Bland JM. BMJ 1995;311:485 (doi:10.1136/bmj.311.7003.485; PMID 7647644). Redelmeier DA, Singh SM. Ann Intern Med 2001;134:955–62 (doi:10.7326/0003-4819-134-10-200105150-00009; PMID 11352696). Barnett AG, van der Pols JC, Dobson AJ. Int J Epidemiol 2005;34:215–20 (doi:10.1093/ije/dyh299; PMID 15333621). Sylvestre MP, Huszti E, Hanley JA. Ann Intern Med 2006;145:361–3 (doi:10.7326/0003-4819-145-5-200609050-00009; PMID 16954361). Gigerenzer G et al. Psychol Sci Public Interest 2007;8:53–96 (doi:10.1111/j.1539-6053.2008.00033.x; PMID 26161749). Suissa S. Am J Epidemiol 2008;167:492–9 (doi:10.1093/aje/kwm324; PMID 18056625). Simmons JP, Nelson LD, Simonsohn U. Psychol Sci 2011;22:1359–66 (doi:10.1177/0956797611417632; PMID 22006061). Messerli FH. N Engl J Med 2012;367:1562–4 (doi:10.1056/NEJMon1211064; PMID 23050509). Kayser M. Investig Genet 2012;3:26 (doi:10.1186/2041-2223-3-26; PMID 23231922). Button KS et al. Nat Rev Neurosci 2013;14:365–76 (doi:10.1038/nrn3475; PMID 23571845). Wasserstein RL, Lazar NA. Am Stat 2016;70:129–33 (doi:10.1080/00031305.2016.1154108). Grellety E, Golden MH. Nutr J 2018;17:79 (doi:10.1186/s12937-018-0384-4; PMID 30217205). Bonovas S, Piovani D. J Clin Med 2023;12:1633 (doi:10.3390/jcm12041633; PMID 36836181). van der Vaart TW et al. Clin Infect Dis 2023;77:9–15 (doi:10.1093/cid/ciad112; PMID 36869816). Hopewell S et al. CONSORT 2025 statement. BMJ 2025;389:e081123 (doi:10.1136/bmj-2024-081123; PMID 40228833).
Further reading: Indrayan A. Medical Biostatistics. 4th ed. Chapman and Hall/CRC; 2017 (doi:10.4324/9781315100265), chapter 21. Jawlik AA. Statistics from A to Z: Confusing Concepts Clarified. Hoboken, NJ: John Wiley & Sons; 2016 (doi:10.1002/9781119272021). Lang TA, Altman DG. Basic statistical reporting for articles published in biomedical journals: the SAMPL guidelines. Int J Nurs Stud 2015;52:5–9 (doi:10.1016/j.ijnurstu.2014.09.006; PMID 25441757).
Past papers
TNMGRMU questions on statistical fallacies
Questions from MD, MS, DM, MCh and Ph.D. papers that this chapter helps you answer. Tap a sitting to open the university's own question paper.
- ×1Describe ecological fallacy
- ×1How will you study statistical fallacies in an article?
Further reading