MIX
English

Learn

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.

Each trial's contribution to Cochran's Q, largest first. UK 51.1 and Madras 49.4 together give 100.5 of the total 152.2. TrialContribution to Q UK 1950 51.1 Madras 1968 49.4 N USA b 1935 18.3 Chicago a 1937 12.1 Canada 1933 6.9 Haiti 1965 6.4 Georgia b 1950 2.4 Chicago b 1941 2.0 Georgia a 1947 1.4 Madanapalle 1950 0.9 Puerto Rico 1949 0.7 N USA a 1935 0.6 S Africa 1965 0.0 0 25 50
Each trial's contribution to Q: its weight times its squared distance from the fixed-effect pooled estimate. The UK and Madras trials give 100.5 of the 152.2.

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

Cochran's Q of 152.2 split into the 12 expected from chance alone (the degrees of freedom) and the excess of 140.2; I-squared is the excess as a share of Q, 92.1 percent. Cochran's Q = 152.2 Expected from chance alone: 12 Excess: 152.2 − 12 = 140.2 I² = 140.2 / 152.2 = 92.1% The light part is what Q would be, on average, if every trial estimated the same effect.
I² for the BCG trials: of a Q of 152.2, about 12 is what chance alone would give; the other 140.2 is real variation between the trials.

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:

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:

Forest plot: risk ratio of tuberculosis with BCG vaccine in 13 trials, random-effects pooled risk ratio 0.49 (95% CI 0.34 to 0.70), 95% prediction interval 0.14 to 1.77 TrialRisk ratio (95% CI) Canada 1933 0.20 (0.09 to 0.49) N USA a 1935 0.41 (0.13 to 1.26) N USA b 1935 0.46 (0.39 to 0.54) Chicago a 1937 0.25 (0.15 to 0.43) Chicago b 1941 0.26 (0.07 to 0.92) Georgia a 1947 1.56 (0.37 to 6.53) Puerto Rico 1949 0.71 (0.57 to 0.89) UK 1950 0.24 (0.18 to 0.31) Madanapalle 1950 0.80 (0.52 to 1.25) Georgia b 1950 0.98 (0.58 to 1.66) Haiti 1965 0.20 (0.08 to 0.50) S Africa 1965 0.63 (0.39 to 1.00) Madras 1968 1.01 (0.89 to 1.14) Random effects 0.49 (0.34 to 0.70) Prediction interval 0.14 to 1.77 0.1 0.25 0.5 1 2 4 favors vaccinefavors control
The BCG forest plot with the 95% prediction interval under the pooled diamond. The diamond is the uncertainty about the average effect; the prediction interval is the spread of the effects themselves.

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.

Weight of each trial under the fixed-effect and the random-effects model. Madras falls from 41.4 to 10.2 percent; the smallest trials gain weight. Fixed effect Random effects TrialShare of the total weight Madras 1968 41.4%10.2% N USA b 1935 Puerto Rico 1949 UK 1950 Madanapalle 1950 S Africa 1965 Georgia b 1950 Chicago a 1937 Canada 1933 Haiti 1965 N USA a 1935 Chicago b 1941 Georgia a 1947 0% 10% 20% 30% 40%
Share of the total weight for each trial under the two models. Madras falls from 41% to 10%; the smallest trials gain.

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:

MIX's Synthesis forest plot of the 13 BCG trials with the prediction interval: the pooled diamond at a risk ratio of 0.49 (0.34 to 0.70), with a dashed red line on either side reaching from 0.14 to 1.77.
MIX's Synthesis forest plot for the BCG trials, with the 95% prediction interval as the dashed red line through the diamond: 0.14 to 1.77, against 0.34 to 0.70 for the confidence interval. It is an Excel chart, so you can restyle it and edit any label.

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.
MIX's Baujat plot of the 13 BCG trials: contribution to the Q-statistic on the horizontal axis, contribution to the summary result on the vertical axis. Madras is at the top right, UK far right near the bottom, and N USA b, Chicago a and Canada are also highlighted. MIX's heterogeneity funnel plot of the 13 BCG trials: log risk ratio against precision, with a line at the fixed-effect estimate and dashed pseudo-confidence limits. Madras, UK, N USA b, Chicago a, Canada and Haiti lie outside the limits.
MIX's Baujat plot (left) and heterogeneity funnel plot (right) for the BCG trials. In the Baujat plot, MIX highlights the trials above the median on both axes; Madras stands out on both. In the funnel plot, six trials lie outside the pseudo-confidence limits: Madras, UK, N USA b, Chicago a, Canada and Haiti.

7. What to do next

Finding heterogeneity is the start, not the end. Don't just switch to random effects and move on:

MIX's covariate plot of the 13 BCG trials: log risk ratio against latitude, with markers sized by weight and a regression line falling from about 0 at 13 degrees to about -1.06 at 55 degrees.
MIX's covariate plot for the BCG trials: each trial's log risk ratio against its latitude, with bigger markers for trials with more weight. The line is MIX's weighted (fixed-effect) regression line. On this scale 0 means no effect and −1 is a risk ratio of 0.37: the farther from the equator, the stronger the protection.

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

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.