Tutorials › Statistical Genetics › Inverse-Variance Weighted Estimation

Mendelian Randomization Foundations · Tutorial 838 of 989

Inverse-Variance Weighted Estimation

See how to combine variant-specific ratio estimates efficiently and interpret the resulting causal estimate and its uncertainty.

Advanced 10 min read

What You'll Learn

  • Define the inverse-variance weighted estimate from independent variant-specific ratio estimates
  • Derive the weighted estimate and its standard error under a common-effect model
  • Connect ratio weights to genetic exposure and outcome association estimates
  • Calculate an IVW estimate and confidence interval from hypothetical summary data
  • Identify the validity, independence, and precision assumptions needed for interpretation
  • Recognize when an extreme ratio should have little influence on the combined estimate

Why Weight Variant-Specific Ratios?

A genetic variant can provide a separate estimate of the causal effect of an exposure on an outcome: its variant-outcome association divided by its variant-exposure association. The Summary-Data Wald Ratio gives this estimate for one variant. With several valid, independent variants, the estimates can be combined. They should not generally receive equal influence: a ratio estimated with less uncertainty contains more information about the common causal effect.

Inverse-variance weighted (IVW) estimation makes this principle explicit. It averages the variant-specific ratios, assigning each a weight equal to the reciprocal of its variance. The result is most straightforward when all variants estimate the same causal effect and their ratio estimates are statistically independent. Those are substantive and statistical assumptions, not consequences of applying a formula.

Definition: For variant \(j\), let \(\hat{\gamma}_j\) be its estimated association with the exposure, and let \(\hat{\Gamma}_j\) be its estimated association with the outcome. Its ratio estimate is \(\hat{R}_j=\hat{\Gamma}_j/\hat{\gamma}_j\). If the estimated ratio has standard error \(s_j\), its inverse-variance weight is \(w_j=1/s_j^2\). For \(J\) independent variants, the inverse-variance weighted estimate is \(\hat{\theta}_{\mathrm{IVW}}=\sum_{j=1}^{J}w_j\hat{R}_j/\sum_{j=1}^{J}w_j\).

The units of each ratio are outcome units per exposure unit. For example, if the exposure association is measured in standard-deviation units and the outcome association in millimetres of mercury, the ratio and the combined estimate are in millimetres of mercury per exposure standard deviation. The weights have inverse squared units, so the weighted average retains the units of the ratios.

Model and Causal Assumptions

To interpret the combined value as a causal estimate, each selected variant must be a valid instrument for the exposure. In standard terms, a valid instrument is associated with the exposure, is independent of causes shared by exposure and outcome, and affects the outcome only through the exposure. In addition, the simple common-effect IVW model assumes that each valid variant identifies the same causal effect, denoted by \(\theta\). Under that model, the population associations satisfy \(\Gamma_j=\theta\gamma_j\), where \(\gamma_j\) and \(\Gamma_j\) are the corresponding true variant-exposure and variant-outcome associations.

For the usual independent-variant calculation, the variants must also be independent of one another in the relevant data, or sufficiently uncorrelated that their association estimates can be treated as independent. The ratio estimates must be approximately normally distributed around \(\theta\), with correctly estimated standard errors. In practice, this approximation is most defensible when the exposure-association estimates in the denominators are sufficiently precise. A weak or very imprecise denominator can make a ratio unstable and make a normal approximation unreliable.

A common summary-data implementation treats the exposure-association estimates as precise and uses the outcome-association standard errors to approximate the ratio variances. Specifically, if \(SE(\hat{\Gamma}_j)\) is the standard error of the variant-outcome association, the first-order approximation is \(s_j \approx SE(\hat{\Gamma}_j)/|\hat{\gamma}_j|\). This gives \(w_j \approx \hat{\gamma}_j^2/SE(\hat{\Gamma}_j)^2\). When a ratio standard error that accounts for uncertainty in both associations is available and appropriate, use that ratio standard error to define the weight instead. These formulations should not be mixed without checking which uncertainty each weight represents.

Deriving the Estimate and Its Uncertainty

Suppose the observed ratio estimates are independent and satisfy the approximate model \(\hat{R}_j\sim N(\theta,s_j^2)\), with known or estimated standard errors \(s_j\). The likelihood for \(\theta\), apart from factors not involving \(\theta\), is proportional to the exponential of minus one half the weighted sum of squared deviations. Maximizing this likelihood is equivalent to minimizing that sum.

$$ Q(\theta)=\sum_{j=1}^{J}\frac{(\hat{R}_j-\theta)^2}{s_j^2} =\sum_{j=1}^{J}w_j(\hat{R}_j-\theta)^2. $$

Differentiate with respect to \(\theta\) and set the derivative equal to zero. Since each \(w_j\) is fixed with respect to \(\theta\), the resulting equation is \(\sum_j w_j(\hat{R}_j-\theta)=0\). Solving gives the weighted average in the definition. Under the model, its variance follows from independence:

$$ \begin{aligned} \operatorname{Var}(\hat{\theta}_{\mathrm{IVW}}) &=\operatorname{Var}\left(\frac{\sum_j w_j\hat{R}_j}{\sum_j w_j}\right)\\ &=\frac{\sum_j w_j^2\operatorname{Var}(\hat{R}_j)}{(\sum_j w_j)^2}\\ &=\frac{\sum_j w_j^2s_j^2}{(\sum_j w_j)^2} =\frac{1}{\sum_j w_j}. \end{aligned} $$

Thus the estimated standard error is \(SE(\hat{\theta}_{\mathrm{IVW}})=1/\sqrt{\sum_j w_j}\). When the normal approximation is reasonable, a 95% confidence interval is \(\hat{\theta}_{\mathrm{IVW}}\pm1.96SE(\hat{\theta}_{\mathrm{IVW}})\). The interval describes uncertainty in the estimated common causal effect under the model and instrument assumptions; it does not give the probability that the fixed causal effect lies within this particular interval.

Worked Example: Combining Two Ratio Estimates

Suppose two independent, valid variants give hypothetical ratio estimates of 0.30 and 0.50 outcome units per exposure unit, with standard errors 0.10 and 0.20, respectively. Assume a common causal effect and the approximate normal model described above. The weights are the inverse variances:

$$ w_1=\frac{1}{0.10^2}=100,\qquad w_2=\frac{1}{0.20^2}=25. $$

The combined estimate is

$$ \hat{\theta}_{\mathrm{IVW}} =\frac{100(0.30)+25(0.50)}{100+25} =\frac{42.5}{125} =0.3400 $$

outcome units per exposure unit. The less precise second ratio receives one quarter of the first ratio's weight. The standard error is \(1/\sqrt{125}=0.08944\) outcome units per exposure unit. A 95% confidence interval is \(0.3400\pm1.96(0.08944)\), or approximately 0.1647 to 0.5153 outcome units per exposure unit. Under the stated model, this procedure estimates a single common effect rather than the unweighted average, which would be 0.4000.

Using Variant Association Summary Data

The weighting scheme can be expressed directly in terms of the exposure and outcome associations. Under the first-order approximation \(s_j\approx SE(\hat{\Gamma}_j)/|\hat{\gamma}_j|\), the ratio weight is approximately \(\hat{\gamma}_j^2/SE(\hat{\Gamma}_j)^2\). Substituting the ratio \(\hat{\Gamma}_j/\hat{\gamma}_j\) into the weighted average gives the familiar summary-data formula:

$$ \hat{\theta}_{\mathrm{IVW}} \approx \frac{\sum_{j=1}^{J}\hat{\gamma}_j\hat{\Gamma}_j/SE(\hat{\Gamma}_j)^2} {\sum_{j=1}^{J}\hat{\gamma}_j^2/SE(\hat{\Gamma}_j)^2}. $$

This expression is a weighted regression of the estimated outcome associations on the estimated exposure associations, constrained to pass through zero, using inverse outcome-association variances as regression weights. Its equivalence to the weighted ratio average depends on the stated first-order approximation. It does not mean exposure-association uncertainty is always negligible; if that uncertainty is material, the approximation and resulting uncertainty calculation may be inadequate.

Worked Example: Calculating IVW From Association Estimates

Consider three hypothetical independent, valid variants. Exposure associations are measured in exposure units per allele, and outcome associations in outcome units per allele. Treat the exposure-association estimates as sufficiently precise for the first-order approximation. Suppose the summary data are:

Variant\(\hat{\gamma}_j\)\(\hat{\Gamma}_j\)\(SE(\hat{\Gamma}_j)\)
10.100.0200.0100
20.150.0450.01732
30.200.1200.02828

The three ratio estimates are \(0.020/0.10=0.20\), \(0.045/0.15=0.30\), and \(0.120/0.20=0.60\) outcome units per exposure unit. Their approximate ratio standard errors are the outcome standard errors divided by the absolute exposure associations: 0.1000, 0.1155, and 0.1414. Equivalently, the approximate weights are:

$$ w_1=\frac{0.10^2}{0.0100^2}=100,\qquad w_2=\frac{0.15^2}{0.01732^2}\approx75,\qquad w_3=\frac{0.20^2}{0.02828^2}\approx50. $$

Using the unrounded association values underlying the displayed standard errors, the total weight is 225 and the weighted numerator is \(100(0.20)+75(0.30)+50(0.60)=72.5\). Therefore,

$$ \hat{\theta}_{\mathrm{IVW}}=\frac{72.5}{225}=0.3222,\qquad SE(\hat{\theta}_{\mathrm{IVW}})=\frac{1}{\sqrt{225}}=0.06667. $$

The 95% confidence interval is \(0.3222\pm1.96(0.06667)\). Using the unrounded estimate and standard error, the endpoints are \(72.5/225-1.96/\sqrt{225}=0.1916\) and \(72.5/225+1.96/\sqrt{225}=0.4529\), to four significant figures. The estimated common effect is 0.3222 outcome units per exposure unit, with a 95% confidence interval from 0.1916 to 0.4529 outcome units per exposure unit. This interpretation is conditional on the causal and statistical assumptions, not just on the arithmetic.

What the Weights Do—and Do Not—Mean

A weight measures the relative precision of a ratio under the model. It is not a measure of how biologically important a variant is, and a large weight does not establish that the variant is valid. When weights sum to \(W\), variant \(j\)'s share of the estimate is \(w_j/W\). Consequently, a precise ratio can dominate the combined estimate, while a highly uncertain ratio contributes relatively little.

Worked Example: A Noisy Extreme Ratio

Suppose a current set of independent ratio estimates has total weight 225 and weighted numerator 72.5, giving an IVW estimate of \(72.5/225=0.3222\). A fourth hypothetical valid variant has ratio estimate 0.80 outcome units per exposure unit and standard error 0.4472. Its inverse-variance weight is approximately \(1/0.4472^2=5\), much smaller than the existing total weight.

After adding it, the combined estimate is

$$ \frac{72.5+5(0.80)}{225+5} =\frac{76.5}{230} =0.3326 $$

outcome units per exposure unit. Although the new ratio, 0.80, is far from the previous combined estimate, its low precision gives it only \(5/230\), or about 2.17%, of the total weight. This illustrates the arithmetic role of inverse-variance weighting; it does not show that the new variant is valid or that any disagreement among variants can be ignored.

The causal interpretation still requires valid instruments and a common effect. If a variant affects the outcome through a pathway other than the exposure, is related to shared causes of exposure and outcome, or is correlated with other included variants, the simple independent common-effect calculation may not represent the intended causal effect. Those conditions cannot be verified merely by observing a small standard error or calculating a weighted average.

Common Mistakes

  • Giving every ratio equal weight. An ordinary average ignores differences in precision. IVW uses \(1/s_j^2\), so estimates with smaller standard errors receive more weight.
  • Using standard errors rather than variances as weights. The weight is the reciprocal of the variance, \(1/s_j^2\), not \(1/s_j\).
  • Interpreting the weighted result as automatically causal. The formula combines estimates; causal meaning depends on valid instruments and the common-effect model.
  • Ignoring how ratio standard errors were obtained. The shortcut based on outcome-association standard errors treats exposure associations as sufficiently precise. It should not be used without considering denominator uncertainty.
  • Reading a confidence interval as a probability statement about the fixed effect. A 95% confidence procedure has 95% long-run coverage under its assumptions; it does not assign a 95% probability to the parameter being in the observed interval.
Key takeaway: IVW combines independent variant-specific ratio estimates by weighting each in proportion to its precision. Under the valid-instrument, independence, common-effect, and approximate-normality assumptions, the estimate is \(\sum_j w_j\hat{R}_j/\sum_jw_j\), with standard error \(1/\sqrt{\sum_jw_j}\). Neither weighting nor a narrow interval establishes those assumptions.

Check Your Understanding

Answer each question using the model and definitions in this tutorial.

  1. Two independent ratio estimates have standard errors 0.05 and 0.10. What is the ratio of their inverse-variance weights?
  2. Under the independent normal ratio model, derive the standard error of the IVW estimate from the weights.
  3. A ratio estimate is 0.40 outcome units per exposure unit with standard error 0.20. What is its inverse-variance weight?
  4. Why does the common-effect assumption matter when interpreting the IVW estimate as one causal effect?
  5. When is the approximation \(s_j\approx SE(\hat{\Gamma}_j)/|\hat{\gamma}_j|\) used, and what important source of uncertainty does it set aside?
Clinical Biostats