Heterogeneity and I², explained
A pooled result is only as meaningful as the agreement between the studies behind it. This guide explains the four numbers that describe that agreement, Cochran's Q, I², τ² and the prediction interval, on 13 trials of the BCG vaccine where they matter a lot.
1. Why heterogeneity matters
Studies of the same question rarely find exactly the same effect. Some of the difference is chance: smaller studies bounce around more. The rest is heterogeneity: real differences in the effect, because the studies differ in who was treated, where, how, or how the outcome was measured.
The BCG trials are a classic case. Run between 1933 and 1968 from Canada to South India, they found risk ratios from 0.20, a reduction of 80%, to 1.56, no protection at all. The pooled risk ratio of 0.49 is an average over very different results, and the statistics below tell you how different.
2. Cochran's Q: is there more variation than chance?
Q adds up how far each study is from the fixed-effect pooled estimate, in units of its own uncertainty: each squared distance is multiplied by the study's weight. If all studies estimated the same effect, Q would on average equal its degrees of freedom, the number of studies minus one.
For the BCG trials, Q = 152.2 on 12 degrees of freedom, more than twelve times what chance would give (P < 0.001). Two trials supply two-thirds of it: the UK trial, which found strong protection with great precision, and the very large Madras trial, which found none.
Q has two weaknesses. With few studies it often misses real heterogeneity, and with many large studies it flags differences too small to matter. And it says nothing about how much heterogeneity there is. That's what I² and τ² are for.
3. I²: how much of the variation is real?
I² takes the part of Q that chance can't explain, as a share of Q:
I² = (Q − df) / Q, and 0 if Q is smaller than df
So I² = 92%: almost all of the spread you see in the forest plot reflects real differences between the trials, not chance. The Cochrane Handbook gives overlapping rough guides: 0% to 40% might not be important, 30% to 60% may be moderate, 50% to 90% may be substantial, and 75% to 100% is considerable.
I² is itself an estimate. With 13 studies its 95% confidence interval here is about 82% to 98%; with five or six studies it can easily run from 0% to over 80%. Report it with that in mind.
4. What I² doesn't tell you
I² is a proportion, not an amount. It says what share of the observed spread is real, not how big the real differences are. Because it compares real variation with chance variation, it depends on how precise the studies are:
- Make every study ten times larger and chance shrinks, so I² rises towards 100%, even though the true effects differ exactly as much as before.
- A meta-analysis of small studies can have a low I² while the true effects differ a lot.
So two meta-analyses with the same I² can differ enormously in how much their true effects vary. To know that, look at τ² and the prediction interval.
5. τ² and the prediction interval: how much do the effects vary?
τ² (tau squared) is the variance of the true effects between studies, on the scale of the analysis, here the log risk ratio. It's the number the random-effects model adds to each study's variance. For the BCG trials τ² = 0.31, so τ, the standard deviation of the true log risk ratios, is 0.56. On the risk ratio scale that is a lot: a trial one standard deviation away from the average has a true risk ratio 1.7 times higher or lower.
The prediction interval turns τ² into a range you can read. It's the range in which the true effect of a new study, in a setting like those studied, is expected to fall, 95% of the time:
The pooled risk ratio is 0.49 (95% CI 0.34 to 0.70), but the prediction interval runs from 0.14 to 1.77. The average protection is clear, yet in a new setting the effect could be anything from an 86% lower risk to no protection at all. That's a very different message from the diamond alone, which is why methodologists increasingly recommend reporting the prediction interval with every random-effects result.
6. How heterogeneity changes the weights
The fixed-effect model weights each study by its precision alone, so very large trials dominate. The random-effects model adds τ² to every study's variance. When τ² is large, as here, that added amount swamps the differences in precision, and the weights become much more equal.
That's why the two models disagree for the BCG trials: 0.65 with fixed effect, pulled towards Madras's 1.01, and 0.49 with random effects. Neither is wrong; they answer different questions. But with this much heterogeneity, the fixed-effect assumption of one common effect is clearly not true.
Heterogeneity in MIX
Everything on this page takes a few clicks in MIX. Load the BCG trials: on the MIX tab, click MIX → Start MIX, then Data wizard, and choose the built-in dataset Colditz. MIX uses the model set in Preferences → Numerical preferences...; for the numbers on this page, that is the risk ratio and random effects with the DerSimonian–Laird estimator.
The numbers
Exploration → Heterogeneity statistics gives Q, I² and τ². Synthesis → Synthesis gives them next to the pooled result.
The prediction interval in the forest plot
In Preferences → Graphical preferences... → Synthesis graphs, tick “Show prediction interval of random effects result”, then click Synthesis → Synthesis forest plot. MIX draws the interval as a dashed line on either side of the pooled diamond:
Which studies cause it
The Exploration menu has plots for finding the studies behind the heterogeneity:
- Galbraith plot: each study's z-score against its precision. Studies that fall outside the band don't fit a common effect; for the BCG trials, Madras, UK and N USA b lie far outside it.
- Baujat plot: each study's contribution to Q against its influence on the pooled result. UK and Madras together give 100 of the 152 in Q, and Madras moves the pooled result most.
- Heterogeneity funnel plot: each study's result against its precision, with a line at the fixed-effect estimate and pseudo-confidence limits around it. Studies outside the limits are outliers.
- L'Abbe plot: the risk in one group against the risk in the other, one point per study. Studies that sit apart from the rest stand out.
7. What to do next
Finding heterogeneity is the start, not the end. Don't just switch to random effects and move on:
- Look for a reason. Studies can differ in population, setting, dose or design. Exploration → Covariate plot shows the effect against a study characteristic, and Evaluation → Subgroup analysis... and Meta-regression... test it. The BCG trials were run from Canada to South India, and a meta-regression on latitude finds the risk ratio falling by about 2.4% for every degree farther from the equator: trials far from the equator found much stronger protection. One explanation offered is that people nearer the equator are more often exposed to environmental mycobacteria that give some natural protection, so the vaccine adds less.
- Check whether one study drives the result. Evaluation → Exclusion sensitivity plot shows how the pooled result shifts when each study is left out in turn.
- Report all of it. Q, I² with its confidence interval, τ² and the prediction interval, not I² alone, and what you found when you looked for causes.
- Ask whether one pooled number makes sense. If the effects differ this much for no reason you can find, an average can mislead. Report the spread, or the subgroups, instead.
Try it in MIX
MIX Lite is free for any use, with no account or license key, and includes the BCG dataset and many other textbook examples. MIX Pro adds your own datasets.
Windows · Excel 2007 or later, 32- and 64-bit
More guides
- How to do a meta-analysis in Excel
Effect measures, fixed and random effects, and the pooled result, step by step.
- How to make a forest plot in Excel
A scatter chart, error bars and a log axis, or one click in MIX.
Data: Colditz GA et al. Efficacy of BCG vaccine in the prevention of tuberculosis. JAMA 1994;271(9):698–702, as tabulated in Egger M, Davey Smith G, Altman DG (eds). Systematic Reviews in Health Care: Meta-analysis in Context. BMJ Books, 2001. Results by the DerSimonian–Laird random-effects model, checked against R's metafor package; the confidence interval for I² by the Q-profile method. Further reading: Higgins JPT, Thompson SG. Quantifying heterogeneity in a meta-analysis. Statistics in Medicine 2002;21:1539–1558. Higgins JPT, Thompson SG, Spiegelhalter DJ. A re-evaluation of random-effects meta-analysis. Journal of the Royal Statistical Society, Series A 2009;172:137–159. Borenstein M et al. Basics of meta-analysis: I² is not an absolute measure of heterogeneity. Research Synthesis Methods 2017;8:5–18.