Why Compare Fixed- and Random-Effects IVW?
Inverse-variance weighted (IVW) Mendelian randomization combines the exposure and outcome association estimates for multiple genetic variants. Under a common-slope model, it estimates one association between the exposure and outcome across variants. Horizontal pleiotropy can make the variants’ outcome associations depart from that model: some departures may be consistent with sampling variation, while others may be larger or systematically aligned with the exposure associations.
Fixed-effect IVW treats the outcome-association standard errors as accounting for all residual variation around the common slope. Multiplicative random-effects IVW keeps the same slope estimate but allows greater residual dispersion to increase its standard error. That distinction matters: adjusting uncertainty for dispersion is not the same as correcting bias in the slope.
The standard first-order setup assumes independent variants, harmonized alleles, and no covariance between the exposure and outcome association estimates, as is often approximated in non-overlapping two-sample MR. It also ignores uncertainty in \(\hat{\beta}_{Xj}\) when constructing the weights. This approximation is more credible when instruments are sufficiently strong; the earlier material on instrument strength and the F statistic addresses that concern. The formulas below are not a correction for weak-instrument bias.
Fixed-Effect IVW as Weighted Regression
Fixed-effect IVW fits a weighted regression through the origin: the fitted outcome association for variant \(j\) is \(\theta\hat{\beta}_{Xj}\). The weights are \(1/SE_{Yj}^2\), so variants with more precise outcome associations contribute more to the estimate. The through-origin specification represents the assumption that there is no average intercept across variants; it does not establish that every variant satisfies the exclusion restriction.
Under the fixed-effect model, outcome-association errors are independent, have mean zero, and have variances \(SE_{Yj}^2\). Treating the exposure associations as fixed, the variance of the fitted slope is the reciprocal of the weighted sum of squared exposure associations. Thus the standard error is the square root of that reciprocal. A confidence interval commonly uses the normal approximation, for example \(\hat{\theta}_{\mathrm{IVW}}\pm1.96SE(\hat{\theta}_{\mathrm{IVW}})\).
Worked Example: Calculating Fixed-Effect IVW
Suppose a hypothetical two-sample MR analysis has three independent, harmonized variants. Exposure associations are in exposure standard deviations per allele; outcome associations and their standard errors are in outcome standard deviations per allele.
| Variant | \(\hat{\beta}_{Xj}\) | \(\hat{\beta}_{Yj}\) | \(SE_{Yj}\) |
|---|---|---|---|
| 1 | 0.10 | 0.05 | 0.01 |
| 2 | 0.20 | 0.12 | 0.02 |
| 3 | 0.25 | 0.08 | 0.02 |
The weights are \(10{,}000\), \(2{,}500\), and \(2{,}500\), respectively. Substituting into the IVW formula gives
The standard error is
The approximate 95% confidence interval is \(0.4491\pm1.96(0.0530)\), or \(0.3453\) to \(0.5530\) outcome standard deviations per exposure standard deviation. Under the stated model and approximation, the interval procedure has 95% long-run coverage; this is not a 95% probability statement about the fixed parameter for this particular interval.
Residual Dispersion and Multiplicative Random Effects
To assess how far the observed associations lie from the fitted common slope, define the weighted residual sum of squares
This quantity summarizes residual dispersion around the IVW line. Since one slope has been fitted, the residual degrees of freedom are \(K-1\). In this tutorial, the multiplicative random-effects convention estimates an overdispersion multiplier as \(\hat{\phi}=\max\{1,Q/(K-1)\}\). The lower bound of one means this convention increases uncertainty when dispersion is elevated but does not reduce the fixed-effect standard error when the observed dispersion is smaller. Other implementations may report a different scale convention, so it is important to state which is used.
The scaling follows directly from the model variance. If the residual variance for each outcome association is \(\phi SE_{Yj}^2\), with \(\phi\ge1\), then the variance of the weighted slope conditional on the exposure associations is \(\phi/\sum_j w_j\hat{\beta}_{Xj}^2\). Replacing \(\phi\) with its estimated value gives the random-effects standard error.
Worked Example: Allowing for Extra Dispersion
Use the three hypothetical variants from the preceding example. Their fitted outcome associations are \(0.4491(0.10)=0.04491\), \(0.4491(0.20)=0.08982\), and \(0.4491(0.25)=0.1123\), approximately. The corresponding residuals are \(0.005088\), \(0.03018\), and \(-0.03228\). Therefore,
With \(K-1=2\) residual degrees of freedom, the multiplier is \(\hat{\phi}=\max\{1,5.140/2\}=2.570\). The random-effects standard error is
The slope remains \(0.4491\), but the approximate 95% confidence interval becomes \(0.4491\pm1.96(0.0849)\), or \(0.2827\) to \(0.6156\) outcome standard deviations per exposure standard deviation. The wider interval reflects extra residual dispersion under this model; it does not show that pleiotropic bias has been removed.
What Different Variant Ratios Mean
When variants have different ratios, fixed-effect IVW still returns a single weighted slope. It is not generally the ordinary average of those ratios. A variant with a larger exposure association, or a more precise outcome association, can have more influence. If variants have direct effects on the outcome, write their population associations as \(\beta_{Yj}=\theta\beta_{Xj}+\alpha_j\), where \(\alpha_j\) is the direct effect not mediated by the exposure. Substitution into the IVW formula shows how those effects can shift the estimate:
The second term is a weighted contribution from the direct effects. If it is nonzero, increasing the standard error with a random-effects multiplier does not remove it. Random-effects IVW can provide more cautious uncertainty around the same potentially shifted slope, but it does not make an invalid instrument valid.
Worked Example: Variant-Specific Ratios and Pleiotropic Bias
Consider a hypothetical illustration with true exposure associations \(0.10\), \(0.20\), and \(0.30\), a common causal effect \(\theta=0.40\), and direct effects \(\alpha_j=0.01\), \(-0.01\), and \(0.02\). The resulting outcome associations are \(0.05\), \(0.07\), and \(0.14\). Suppose each outcome-association standard error is \(0.01\), so the weights are equal.
The three variant-specific ratios are \(0.05/0.10=0.50\), \(0.07/0.20=0.35\), and \(0.14/0.30\approx0.4667\). The IVW slope is
The weighted direct-effect contribution is \(\{(0.10)(0.01)+(0.20)(-0.01)+(0.30)(0.02)\}/0.14=0.005/0.14=0.0357\), so \(0.40+0.0357=0.4357\). The estimate is shifted from the stated causal effect because the direct effects do not cancel in the weighted sum. These direct effects are specified for illustration; in practice, they are generally not known. The example shows why a random-effects interval alone cannot establish that a slope is unbiased.
Assumptions, Uses, and a Practical Comparison
Fixed-effect and multiplicative random-effects IVW share the same point estimate and the same central vulnerability to pleiotropic bias. Their difference concerns the variance model. Fixed-effect IVW assumes residual variation is adequately represented by the reported \(SE_{Yj}\) values. Multiplicative random-effects IVW allows the residual variance to be larger by a common multiplier. Neither approach, by itself, identifies which variants are pleiotropic or whether direct effects tend to align with exposure associations.
| Feature | Fixed-effect IVW | Multiplicative random-effects IVW |
|---|---|---|
| Point estimate | Weighted slope through the origin | The same weighted slope through the origin |
| Residual variance assumption | Fully described by outcome-association standard errors | Can be inflated by a common multiplier |
| Standard error | Based on the reported standard errors | Inflated when the estimated multiplier exceeds one |
| Effect of pleiotropic bias | May shift the estimate | May still shift the estimate; scaling does not correct bias |
In the setting considered here, these methods are most useful for describing a common-slope summary and making their uncertainty assumptions explicit. When ratios disagree, a wider random-effects interval is a signal to avoid treating a fixed-effect standard error as automatically adequate. It is not, on its own, a diagnosis of the cause of the disagreement or a test of a particular pleiotropy mechanism. The dedicated material on Cochran’s Q develops formal heterogeneity testing.
Confirm that variants are independent and harmonized, and state whether the first-order approximation treats exposure-association estimates as fixed.
Use the weighted regression-through-the-origin formula, with outcome-association precision determining the weights.
Calculate \(Q\) around the fitted slope and state the residual degrees of freedom and multiplier convention.
Report the common point estimate and the standard error model used; do not interpret random-effects scaling as a bias correction.
Common Mistake
A common mistake is to reason, “The random-effects standard error is larger, so the random-effects estimate has corrected pleiotropy.” The correction is that multiplicative random-effects IVW retains the fixed-effect weighted slope and scales its uncertainty. If pleiotropic effects contribute a nonzero weighted term, the point estimate can remain biased; a larger interval merely reflects the chosen dispersion model. Conversely, similar fixed- and random-effects standard errors do not prove that every instrument satisfies the exclusion restriction.
Check Your Understanding
Use the definitions and assumptions above to answer these questions.
- Which association standard errors determine the first-order IVW weights, and what approximation is made about the exposure-association estimates?
- Why does multiplicative random-effects IVW have the same point estimate as fixed-effect IVW?
- If the overdispersion multiplier is 2.25, by what factor is the fixed-effect standard error multiplied under the stated convention?
- Explain why an increased random-effects standard error does not remove a nonzero weighted contribution from direct effects.
- In what units should an IVW slope be reported when the exposure and outcome associations are each measured per allele?