Tutorials › Statistical Genetics › Deriving the Product Estimator and Its Uncertainty

Genetic Mediation and Selection Bias · Tutorial 874 of 989

Deriving the Product Estimator and Its Uncertainty

Learn how to estimate an indirect effect as a product, quantify its uncertainty, and understand when a bootstrap interval adds useful information.

Advanced 11 min read

What You'll Learn

  • Define the product-of-coefficients indirect-effect estimator and its scale
  • Derive its first-order delta-method variance, including covariance between component estimates
  • Calculate and interpret Wald confidence intervals for mediated effects
  • Compare delta-method and bootstrap intervals when component estimates are weak
  • Recognize why bootstrapping does not remove weak-instrument or identification problems

Why the Product Estimate Needs Its Own Uncertainty Calculation

In a linear mediation analysis, the indirect effect is often estimated by multiplying two component effects. In genetic mediation, these may be estimated in two steps: one estimate describes the effect of an exposure on a mediator, and another describes the effect of the mediator on an outcome. Multiplying them gives an estimate on the outcome-per-exposure scale. Its uncertainty is not found by simply multiplying the two standard errors: both component estimates are uncertain, and they may also be correlated.

This tutorial focuses on the product estimator and on two ways to quantify its sampling uncertainty: the delta method and bootstrap intervals. These calculations address uncertainty in the estimated product. They do not establish that the product has a causal interpretation; that interpretation still depends on the mediation identification assumptions, valid genetic instruments for the relevant steps, and a compatible effect scale. The simple product also presumes a linear additive mediation model without an exposure–mediator interaction.

Definition and Working Model

Definition: Let \(a\) denote the effect of the exposure on the mediator, and let \(b\) denote the effect of the mediator on the outcome under the mediation model. The product-of-coefficients indirect effect is \(ab\). Given estimates \(\hat{a}\) and \(\hat{b}\), its estimator is \(\hat{a}\hat{b}\). If \(a\) is measured in mediator units per exposure unit and \(b\) in outcome units per mediator unit, \(ab\) is in outcome units per exposure unit.

Write the estimated component effects as \(\hat{a}=a+\varepsilon_a\) and \(\hat{b}=b+\varepsilon_b\), where the estimation errors have mean zero and variances \(V_a\) and \(V_b\). Their covariance is \(C_{ab}=\operatorname{Cov}(\hat{a},\hat{b})\). The usual delta-method calculation relies on component estimates having sufficiently well-behaved sampling distributions for a first-order approximation to be informative, and on estimates of their variances and covariance being appropriate.

When the estimates come from independent, non-overlapping samples, their covariance may be negligible. That is not automatic: shared participants, shared data, or a joint estimation procedure can induce dependence. The general variance formula includes this covariance rather than assuming it away.

Deriving the Delta-Method Standard Error

The delta method approximates the sampling variation of a smooth function of estimated quantities by linearizing that function near the true values. Here the function is \(g(a,b)=ab\). Its first-order Taylor expansion around \((a,b)\) is

$$ g(\hat{a},\hat{b}) \approx g(a,b) + \frac{\partial g}{\partial a}(\hat{a}-a) + \frac{\partial g}{\partial b}(\hat{b}-b) = ab + b(\hat{a}-a)+a(\hat{b}-b). $$

The gradient is \((b,a)\). Taking the variance of the linear part gives

$$ \operatorname{Var}(\hat{a}\hat{b}) \approx b^2 V_a+a^2 V_b+2abC_{ab}. $$

In practice, the unknown component effects and covariance are replaced by their estimates. Since \(V_a=SE(\hat{a})^2\), \(V_b=SE(\hat{b})^2\), and \(C_{ab}\) is estimated from the joint sampling information, the estimated delta-method standard error is

$$ SE_{\Delta}(\hat{a}\hat{b}) = \sqrt{ \hat{b}^{\,2}SE(\hat{a})^2 +\hat{a}^{\,2}SE(\hat{b})^2 +2\hat{a}\hat{b}\widehat{C}_{ab} }. $$

If the component estimates are independent, \(\widehat{C}_{ab}=0\), so the covariance term drops out. This is a first-order approximation, not an exact expression for the variance of a product. In particular, the Taylor expansion omits the second-order term \((\hat{a}-a)(\hat{b}-b)\); its influence may matter when component estimates are imprecise or their sampling distributions depart substantially from the approximation.

Worked Example: Weak Component Estimates

Suppose a hypothetical two-step analysis estimates an exposure-to-mediator effect of \(\hat{a}=0.08\) mediator units per exposure unit, with \(SE(\hat{a})=0.07\), and a mediator-to-outcome effect of \(\hat{b}=0.30\) outcome units per mediator unit, with \(SE(\hat{b})=0.25\). Assume the component estimates are independent. Both estimates are imprecise relative to their magnitudes.

The indirect-effect estimate is

$$ \hat{a}\hat{b}=0.08(0.30)=0.024 $$

outcome units per exposure unit. With covariance zero, the delta-method variance estimate and standard error are

$$ \widehat{\operatorname{Var}}_{\Delta} =(0.30)^2(0.07)^2+(0.08)^2(0.25)^2 =0.000441+0.000400=0.000841, $$
$$ SE_{\Delta}=\sqrt{0.000841}=0.0290. $$

A 95% Wald interval, using 1.96 standard errors, is

$$ 0.024\pm1.96(0.0290) =0.024\pm0.0568 =(-0.0328,\ 0.0808). $$

In a hypothetical paired bootstrap with 2,000 replicates, suppose the 2.5th and 97.5th percentiles of the replicate products are \(-0.043\) and \(0.094\). The percentile interval is then \((-0.043,\ 0.094)\), also spanning zero and somewhat wider than the Wald interval. The two intervals are different uncertainty summaries; neither supports a precise, clearly nonzero indirect effect in this example. Because both components are weakly estimated, the product distribution can be notably non-normal, making a symmetric Wald interval a particularly rough summary.

Bootstrap Intervals for the Product

A bootstrap forms repeated estimates from resampled data and uses the resulting distribution of the target statistic—in this case, the product—to describe uncertainty. With individual-level data, a bootstrap replicate should resample the relevant observational units and re-estimate both component effects in that replicate. Resampling the components as a pair retains dependence between them. For summary-data analyses without individual-level records, a parametric bootstrap can instead draw paired component estimates from an estimated joint sampling distribution, using the estimated covariance.

A common interval is the percentile interval: for a nominal 95% interval, take the 2.5th and 97.5th percentiles of the bootstrap product estimates. Its endpoints need not be symmetric around \(\hat{a}\hat{b}\). This can be useful because products may have asymmetric sampling distributions, especially when a component is close to zero or imprecisely estimated. However, bootstrap intervals depend on the resampling scheme and on whether it represents the actual sampling process. They are not automatically better calibrated than delta-method intervals.

Worked Example: Stronger Component Estimates

Consider a second hypothetical analysis with \(\hat{a}=0.50\) mediator units per exposure unit and \(SE(\hat{a})=0.05\), and \(\hat{b}=0.40\) outcome units per mediator unit and \(SE(\hat{b})=0.06\). Assume independent component estimates.

The product estimate is

$$ \hat{a}\hat{b}=0.50(0.40)=0.200 $$

outcome units per exposure unit. The delta-method variance and standard error are

$$ \widehat{\operatorname{Var}}_{\Delta} =(0.40)^2(0.05)^2+(0.50)^2(0.06)^2 =0.000400+0.000900=0.001300, $$
$$ SE_{\Delta}=\sqrt{0.001300}=0.0361. $$

The 95% Wald interval is

$$ 0.200\pm1.96(0.0361) =0.200\pm0.0708 =(0.129,\ 0.271). $$

Suppose a hypothetical paired bootstrap with 2,000 replicates gives percentile endpoints of \(0.132\) and \(0.274\). Its interval, \((0.132,\ 0.274)\), is close to the delta-method interval and also lies above zero. Here the component estimates are more precise relative to their magnitudes, so a first-order, approximately symmetric summary is more plausible. The bootstrap interval is still not proof that the model assumptions hold; it quantifies sampling variation under the stated resampling procedure.

Why the Covariance Term Matters

The covariance term can either increase or decrease the estimated uncertainty, depending on the signs of the component estimates and their covariance. The following example shows why setting it to zero without justification can materially change the result.

Worked Example: Correlated Component Estimates

Suppose a hypothetical analysis gives \(\hat{a}=0.40\), \(SE(\hat{a})=0.08\), \(\hat{b}=0.25\), and \(SE(\hat{b})=0.05\). Assume the estimated correlation between the component estimates is \(0.50\). Their estimated covariance is

$$ \widehat{C}_{ab} =0.50(0.08)(0.05)=0.0020. $$

The product estimate is \(0.40(0.25)=0.100\). Applying the full formula gives

$$ \widehat{\operatorname{Var}}_{\Delta} =(0.25)^2(0.08)^2+(0.40)^2(0.05)^2 +2(0.40)(0.25)(0.0020) =0.000400+0.000400+0.000400=0.001200, $$
$$ SE_{\Delta}=\sqrt{0.001200}=0.0346. $$

If the covariance were incorrectly treated as zero, the standard error would instead be \(\sqrt{0.000800}=0.0283\), an underestimate for this positive covariance and positive product. This comparison is a calculation, not a reason to assume a particular covariance: it must be estimated or justified from the study design and joint estimation procedure.

Interpreting the Two Approaches

The delta method is quick, transparent, and requires component standard errors plus their covariance. A bootstrap can show the empirical shape of the product estimates and produce an interval that is not forced to be symmetric. The choice between them should reflect the design, the availability of data, and how reliable their approximations are—not a rule that one method is always preferable.

In genetic mediation, an imprecise component may arise, for example, when the genetic evidence for one step is weak. A bootstrap can represent the product’s skewness under a suitable resampling procedure, but it does not repair weak identification, invalid instruments, or a misspecified mediation model. Nor does an interval that excludes zero establish a causal pathway unless the assumptions supporting the indirect-effect interpretation are credible. Interpret the interval in the stated units and in the context of those assumptions.

Common Mistakes

  • Multiplying standard errors. The standard error of a product is not \(SE(\hat{a})SE(\hat{b})\). Use the delta-method variance, including covariance when relevant, or obtain uncertainty from a suitable bootstrap.
  • Assuming the estimates are independent. Shared samples or joint estimation can induce dependence. Omitting a nonzero covariance can either understate or overstate uncertainty.
  • Treating a bootstrap as a cure for weak evidence. Resampling quantifies uncertainty under the sampling scheme; it does not create information or solve identification problems.
  • Calling an interval a probability statement about the fixed effect. A 95% confidence procedure has 95% coverage in repeated sampling under its assumptions; it does not mean there is a 95% probability that this particular interval contains the fixed indirect effect.
Key takeaway: Estimate the indirect effect as \(\hat{a}\hat{b}\), then quantify its uncertainty using the delta-method variance \( \hat{b}^{\,2}SE(\hat{a})^2+\hat{a}^{\,2}SE(\hat{b})^2+2\hat{a}\hat{b}\widehat{C}_{ab}\), or a bootstrap that preserves the dependence structure. Weak components can make the product distribution asymmetric, but neither method removes the need for valid mediation assumptions.

Check Your Understanding

Try these questions before reviewing the worked calculations.

  1. If \(\hat{a}\) is in mediator units per exposure unit and \(\hat{b}\) is in outcome units per mediator unit, what are the units of \(\hat{a}\hat{b}\)?
  2. Write the first-order delta-method variance for \(\hat{a}\hat{b}\), including the covariance term.
  3. When is it reasonable to set the covariance term to zero? Why is non-overlap alone not a universal justification?
  4. Why might a bootstrap percentile interval differ from a Wald interval when one component estimate is weak?
  5. What does bootstrapping fail to fix if the genetic mediation assumptions are not credible?
Clinical Biostats