Tutorials › Statistical Genetics › Mode-Based MR and the ZEMPA Assumption

Robust Mendelian Randomization · Tutorial 857 of 989

Mode-Based MR and the ZEMPA Assumption

Learn to calculate mode-based MR estimates, interpret their precision weights, and assess whether the modal cluster plausibly represents valid instruments.

Advanced 12 min read

What You'll Learn

  • Relate variant-specific ratio estimates to causal effects and horizontal pleiotropy
  • Calculate simple-mode estimates from an equally weighted kernel density
  • Calculate weighted-mode estimates using ratio-estimate precision weights
  • Explain the Zero Modal Pleiotropy Assumption and when it supports consistency
  • Recognize how invalid-instrument clusters and bandwidth choices affect the result
  • Distinguish a robust estimate from evidence that the instruments are valid

Why Use a Mode-Based Estimate?

Inverse-variance weighted Mendelian randomization (IVW) combines variant-specific information, but a group of invalid instruments can pull the estimate away from the causal effect. Mode-based MR takes a different approach: it looks for the most prominent cluster of variant-specific ratio estimates. If the cluster corresponding to valid instruments is the modal cluster, the method can identify the causal effect even when valid instruments are not a majority.

This robustness depends on an assumption about which cluster is largest, not on the absence of all horizontal pleiotropy. The assumption is the Zero Modal Pleiotropy Assumption (ZEMPA). Before using it, we need to define the ratio estimates and how a mode is estimated from them.

Definition: For variant \(j\), let \(\gamma_j\) be its association with the exposure, \(\Gamma_j\) its association with the outcome, and \(\alpha_j\) its direct effect on the outcome not through the exposure. Under a common causal effect \(\beta\), the summary association model is \(\Gamma_j=\beta\gamma_j+\alpha_j\). When \(\gamma_j\ne 0\), the population ratio is \(\Gamma_j/\gamma_j=\beta+\alpha_j/\gamma_j\). A valid instrument has \(\alpha_j=0\), so its ratio equals \(\beta\).

In practice, the observed ratio estimate is \(\hat r_j=\hat\Gamma_j/\hat\gamma_j\). The ratio estimates are noisy, so a mode is usually estimated by smoothing them with a kernel density. This estimates where the ratio estimates are most concentrated, rather than simply selecting the most repeated exact value.

Simple and Weighted Mode Estimates

For a bandwidth \(h>0\), use the Gaussian kernel \(K(u)=(2\pi)^{-1/2}\exp(-u^2/2)\). The simple-mode density gives every variant equal weight. The weighted-mode density gives more weight to variants whose ratio estimates are more precise. A standard choice for the weighted estimate uses weights \(w_j=1/\widehat{\operatorname{Var}}(\hat r_j)\). Multiplying all weights by the same positive constant does not change the location of the mode.

$$ \hat f_{\mathrm{simple}}(t)=\frac{1}{nh}\sum_{j=1}^{n}K\left(\frac{\hat r_j-t}{h}\right), \qquad \hat f_{\mathrm{weighted}}(t)= \frac{1}{h\sum_{j=1}^{n}w_j} \sum_{j=1}^{n}w_jK\left(\frac{\hat r_j-t}{h}\right). $$

The simple-mode estimate is the value of \(t\) that maximizes the first density; the weighted-mode estimate maximizes the second. Since the Gaussian kernel and the normalizing constants are common across variants, one can locate either estimate by maximizing the corresponding sum of kernel contributions. A ratio close to \(t\) contributes more than a distant ratio, and the bandwidth determines how quickly that contribution declines.

The weights require an estimate of each ratio’s variance. A first-order delta-method approximation, with \(\hat\gamma_j\ne 0\), is

$$ \widehat{\operatorname{Var}}(\hat r_j) \approx \frac{\widehat{\operatorname{Var}}(\hat\Gamma_j)}{\hat\gamma_j^2} + \frac{\hat\Gamma_j^2\widehat{\operatorname{Var}}(\hat\gamma_j)}{\hat\gamma_j^4} - \frac{2\hat\Gamma_j\widehat{\operatorname{Cov}}(\hat\Gamma_j,\hat\gamma_j)} {\hat\gamma_j^3}. $$

When exposure associations are treated as sufficiently precise under the NOME approximation, the term involving their variance may be ignored; in a two-sample setting with independent association estimates, the covariance term is zero. These are approximations, not identities. If exposure-association uncertainty is substantial, weights based only on outcome-association uncertainty can misrepresent ratio precision.

Worked Example: Finding the Simple-Mode Cluster

Suppose eight hypothetical, approximately independent variants have ratio estimates \(0.18, 0.19, 0.20, 0.21, 0.22, 0.58, 0.60,\) and \(0.62\). Assume the exposure and outcome associations are oriented to the same effect allele, and the estimated exposure associations are nonzero. Use equal weights and bandwidth \(h=0.04\).

At \(t=0.20\), the first five ratios are at standardized distances \(-0.5,-0.25,0,0.25,0.5\). Their unnormalized Gaussian-kernel contribution is therefore

$$ 2e^{-\frac12(0.5)^2} + 2e^{-\frac12(0.25)^2} +1 = 2e^{-0.125}+2e^{-0.03125}+1 \approx 4.703. $$

The remaining ratios are at least \(9.5\) bandwidths from \(0.20\), so their contributions there are negligible. At \(t=0.60\), the three ratios in the second cluster contribute \(1+2e^{-0.125}\approx 2.765\), with negligible contribution from the first cluster. Maximizing the equal-weight kernel density places its global mode near \(0.20\); numerical maximization gives approximately \(0.2000\) at the displayed precision. The simple-mode estimate is therefore about \(0.2000\) outcome-association units per exposure-association unit. This calculation identifies a cluster, but by itself does not establish that its variants are valid.

Worked Example: Calculating a Weighted-Mode Estimate

Consider six hypothetical variants with ratios \(0.18, 0.20, 0.22, 0.58, 0.60,\) and \(0.62\), using \(h=0.04\). Suppose the first three ratios have standard errors \(0.01\) and the last three have standard errors \(0.05\), in the same ratio units. Using inverse-variance weights gives \(w=1/0.01^2=10{,}000\) for each of the first three and \(w=1/0.05^2=400\) for each of the last three. Assume these standard errors adequately account for ratio uncertainty and that the variants are approximately independent.

At \(t=0.20\), the first cluster has a weighted kernel score, omitting the common density normalizer, of

$$ 10{,}000\left(1+2e^{-0.125}\right) \approx 27{,}649.9. $$

The ratios in the other cluster are at least \(9.5\) bandwidths away, so their contribution at \(0.20\) is negligible. At \(t=0.60\), the second cluster contributes

$$ 400\left(1+2e^{-0.125}\right) \approx 1{,}106.0. $$

The weighted density consequently has its global mode near \(0.20\), approximately \(0.2000\) at the displayed precision. Here precision reinforces the first cluster: each of its ratios receives 25 times the weight of each ratio in the second cluster. The result would not be reassuring if the precise first cluster were itself dominated by invalid instruments.

What ZEMPA Assumes

Write the ratio-scale pleiotropic deviation as \(u_j=\alpha_j/\gamma_j\). The population ratio is then \(\beta+u_j\). ZEMPA says that zero is the modal value of these deviations: the most prominent cluster of instruments has no pleiotropic deviation on the ratio scale. Equivalently, the modal cluster of population ratio estimates is at \(\beta\). Since instruments with \(\alpha_j=0\) satisfy exclusion, this is often described as the assumption that the largest cluster of instruments is valid.

Assumption: Under a common causal effect and the usual instrumental-variable requirements for valid variants, ZEMPA requires that the modal cluster of ratio-scale pleiotropic deviations \(\alpha_j/\gamma_j\) is centered at zero. It does not require that more than half of the variants are valid. “Largest” refers to the modal concentration of the ratio estimates, which can depend on their spread and, for a weighted estimate, their precision as well as their count.

The basic justification is a shift of the distribution. If the distribution of \(U=\alpha_j/\gamma_j\) has density \(f_U\), then the ratio distribution \(R=\beta+U\) has density \(f_R(r)=f_U(r-\beta)\). A shift moves the location of the mode by the same amount. Thus, if the unique mode of \(U\) is zero, the mode of \(R\) is \(\beta\).

The kernel estimate approximates this population mode from observed ratios. In the standard large-sample setting, consistency requires a well-defined, unique, separated population mode, sufficient regularity of the ratio distribution, and a bandwidth that shrinks while still smoothing enough observations. For an ordinary unweighted density estimate, under standard conditions such as a bounded uniformly continuous density and a bounded kernel with suitable tail behavior, \(h\to 0\) and \(nh/\log n\to\infty\) ensure uniform consistency of the kernel density estimate; together with a unique, separated population mode, this supports consistency of the estimated global mode. This justification explains the target; it does not prove that ZEMPA holds in a particular application.

Worked Example: When an Invalid Cluster Defeats ZEMPA

Suppose a hypothetical analysis has eleven independent variants and a true common causal effect of \(0.30\). Five valid variants have ratios \(0.28, 0.29, 0.30, 0.31,\) and \(0.32\). Six invalid variants have ratios \(0.69, 0.69, 0.70, 0.70, 0.71,\) and \(0.71\). Use equal weights and \(h=0.02\); assume all variants are relevant and the stated ratios are measured without meaningful rounding error.

At \(t=0.30\), the valid cluster’s kernel score is

$$ 1+2e^{-0.5}+2e^{-0.125} \approx 3.978. $$

At \(t=0.70\), the invalid cluster’s score is

$$ 2+4e^{-0.125}\approx 5.530. $$

Contributions from the other cluster are negligible at each center because the separation is 20 bandwidths. The global mode is near \(0.70\), not the true effect \(0.30\). In this pattern, the invalid variants have a common ratio-scale deviation near \(0.40\), producing the more concentrated cluster. The valid variants are a minority and are not the modal cluster, so ZEMPA fails and the mode-based estimate is not protected from this invalid-instrument pattern.

Assessing the Estimate in Practice

Mode-based MR is useful because a modal valid cluster can identify an effect even when some variants are invalid and the valid group is not a majority. But “robust” is conditional: if invalid variants form the dominant cluster, the method can follow them. ZEMPA is not directly verifiable from the observed ratios, because those ratios do not reveal which variants have direct effects. A prominent cluster is evidence about the shape of the estimates, not proof of instrument validity.

The choice of bandwidth matters. If it is too small, sampling noise can split one genuine cluster into several narrow peaks. If it is too large, distinct valid and invalid clusters can blur together or the estimated mode can shift. Weighted estimates add a second consideration: a small number of highly precise variants can dominate the density. Analysts should examine whether the selected mode is stable across reasonable bandwidth choices and compare simple and weighted modes. Agreement is reassuring about sensitivity to weighting, but it does not establish ZEMPA.

Interpretation also depends on the causal model. The ratio identity \(\Gamma_j/\gamma_j=\beta+\alpha_j/\gamma_j\) assumes a common causal effect \(\beta\). When causal effects vary across variants, the ratios need not share a single causal target; the modal estimate then requires an explicit interpretation in terms of the effect distribution rather than an automatic claim to an average effect. As with other MR estimators, relevance and independence assumptions still matter, and a mode estimate does not repair population structure or other violations of instrument validity.

Common Mistakes

  • Assuming a majority of instruments must be valid. ZEMPA is about the modal cluster, not necessarily more than half of the variants. A smaller valid group can be modal if it is sufficiently concentrated.
  • Assuming the mode must be valid because the method is called robust. If invalid variants form the strongest cluster, the estimated mode can be biased, as the worked example shows.
  • Ignoring precision weights. A weighted mode can be dominated by a few precise ratios. Check which variants carry the weight, and do not interpret a weighted result as a simple count of instruments.
  • Treating the bandwidth as irrelevant. The bandwidth controls smoothing and can alter the number and location of apparent clusters. Report and assess sensitivity to reasonable choices.
  • Claiming that a stable mode proves causality. Stability across settings is a sensitivity check, not a test of ZEMPA, exclusion restriction, or all other IV assumptions.
Key takeaway: Simple mode weights ratios equally; weighted mode gives more influence to precise ratios. Both estimate the most prominent ratio cluster. Their causal interpretation relies on a modal condition: for the simple mode, zero must be the mode of the unweighted ratio-scale pleiotropic-deviation distribution; for the weighted mode, zero must be the mode of the corresponding precision-weighted deviation distribution (or weighting must preserve the zero-deviation modal cluster).

Check Your Understanding

Try these questions using the definitions and assumptions above.

  1. For a variant with \(\Gamma_j=\beta\gamma_j+\alpha_j\), derive its population ratio and state what makes the variant’s ratio equal to \(\beta\).
  2. In what way does the weighted-mode estimate differ from the simple-mode estimate, and what is one risk of using precision weights?
  3. Does ZEMPA require that more than half of the instruments are valid? Explain what it requires instead.
  4. Why can a clearly separated modal cluster still fail to identify the causal effect?
  5. Describe how an excessively small or large bandwidth could affect the estimated mode.
Clinical Biostats