Tutorials › High-Dimensional Genomic Data Analysis › Why Linkage Disequilibrium Changes Marginal GWAS Effects

Polygenic Risk Scores · Tutorial 558 of 795

Why Linkage Disequilibrium Changes Marginal GWAS Effects

See how linkage disequilibrium changes the effects estimated one variant at a time, and why those marginal GWAS effects are not generally the same as joint causal effects.

Advanced 11 min read

What You'll Learn

  • Distinguish marginal GWAS coefficients from joint effects in an additive model.
  • Derive the relation between standardized marginal effects, causal effects, and the LD correlation matrix.
  • Calculate how LD can produce associations at noncausal variants or alter the sign of an effect.
  • Explain why marginal summary statistics are LD-dependent score weights.
  • Recognize the assumptions, diagnostics, and limitations of the marginal-effect relationship.

Why a GWAS Coefficient Can Differ From a Variant’s Own Effect

A GWAS commonly estimates the association of each variant with a phenotype one variant at a time. When variants are correlated through linkage disequilibrium (LD), a variant’s marginal association can reflect effects at other correlated variants as well as its own. Consequently, a strong marginal association does not by itself establish that the tested variant has a direct effect in a joint model.

This distinction matters when constructing a polygenic risk score (PRS) from summary statistics. A set of marginal GWAS coefficients reflects both the underlying genetic effects and the LD pattern in the GWAS population. The coefficients are therefore not generally interchangeable with joint effects, and their values can change when the LD pattern changes, even if the underlying joint effects do not.

Definition: Let \(G_j\) be the dosage, coded as 0, 1, or 2 copies of a specified effect allele, at variant \(j\). For a quantitative phenotype \(Y\), a marginal effect at variant \(j\) is the slope from a regression of \(Y\) on \(G_j\) alone (apart from an intercept and any specified adjustment covariates). A joint effect at variant \(j\) is its coefficient in a model that includes the other variants in the model at the same time. LD describes correlation among genotypes at different variants.

The Relationship Between Marginal and Joint Effects

First consider a linear additive model after centering the variables and adjusting for any required covariates. Write the genotype variables in standardized form, so each \(X_j\) has mean 0 and variance 1. The joint model is

$$ Y = \sum_{k=1}^{m} \beta_k X_k + \varepsilon, $$

where \(\beta_k\) is the joint effect for variant \(k\), measured in phenotype units per one standard deviation of its genotype, and the residual \(\varepsilon\) has mean 0 and is uncorrelated with every included genotype. Let \(R\) be the genotype correlation matrix, with entries \(r_{jk}=\operatorname{Corr}(X_j,X_k)\). Under these assumptions, the population marginal slope for variant \(j\) is

$$ \alpha_j = \frac{\operatorname{Cov}(X_j,Y)}{\operatorname{Var}(X_j)} = \operatorname{Cov}(X_j,Y) = \sum_{k=1}^{m} r_{jk}\beta_k. $$

The second equality uses \(\operatorname{Var}(X_j)=1\). The last equality follows by substituting the joint model and using \(\operatorname{Cov}(X_j,\varepsilon)=0\). In vector form, the relation is \(\boldsymbol{\alpha}=R\boldsymbol{\beta}\). Thus, a marginal coefficient combines joint effects, weighted by correlations with the tested variant. The tested variant’s own joint effect contributes because \(r_{jj}=1\); correlated variants contribute too.

For unstandardized dosages, if the joint model uses raw \(G_k\) dosages and coefficients \(\beta_k\) per effect-allele copy, the corresponding relation is

$$ \alpha_j = \frac{\operatorname{Cov}(G_j,Y)}{\operatorname{Var}(G_j)} = \beta_j + \sum_{k\ne j} \frac{\operatorname{Cov}(G_j,G_k)}{\operatorname{Var}(G_j)}\beta_k. $$

Here \(\alpha_j\) and \(\beta_k\) are in phenotype units per dosage copy. The standardized and dosage-scale formulas express the same principle, but their coefficients have different units. This tutorial assumes alleles are coded consistently: changing the coded allele changes the sign of the corresponding genotype and effect.

Worked Example: A Noncausal Variant Has a Marginal Association

Suppose two standardized genotypes have correlation \(r_{12}=0.75\), and the joint model is \(Y=0.12X_1+\varepsilon\), with \(\operatorname{Cov}(X_1,\varepsilon)=\operatorname{Cov}(X_2,\varepsilon)=0\). Variant 1 has joint effect \(0.12\) phenotype units per genotype standard deviation; variant 2 has joint effect 0.

For variant 1, its marginal slope is \(\alpha_1=1(0.12)+0.75(0)=0.12\). For variant 2, it is \(\alpha_2=0.75(0.12)+1(0)=0.09\). The second variant has a nonzero marginal association even though its joint effect in this model is zero: it is correlated with the variant carrying the effect.

If these population marginal effects were used as weights, the score would be \(S=0.12X_1+0.09X_2\), whereas the model’s genetic signal is \(0.12X_1\). The score includes a correlated proxy for that signal. In this example, \(\operatorname{Var}(S)=0.12^2+0.09^2+2(0.75)(0.12)(0.09)=0.0387\), and \(\operatorname{Cov}(S,0.12X_1)=0.12(0.12+0.75(0.09))=0.0225\). The added proxy changes the score’s composition; it does not supply a second independent genetic effect.

Deriving the Summary-Statistic Relationship

The population formula also explains what a vector of marginal GWAS estimates measures. Suppose \(n\) observations have centered, standardized genotype columns, collected in a matrix \(X\), and the phenotype follows \(Y=X\boldsymbol{\beta}+\boldsymbol{\varepsilon}\). For the simple marginal regression of \(Y\) on column \(j\), the estimated slope is \(\hat{\alpha}_j=X_j^\mathsf{T}Y/n\), because \(X_j^\mathsf{T}X_j=n\). Collecting these slopes gives

$$ \hat{\boldsymbol{\alpha}} = \frac{X^\mathsf{T}Y}{n} = \frac{X^\mathsf{T}X}{n}\boldsymbol{\beta} + \frac{X^\mathsf{T}\boldsymbol{\varepsilon}}{n} = \hat{R}\boldsymbol{\beta} + \frac{X^\mathsf{T}\boldsymbol{\varepsilon}}{n}, $$

where \(\hat{R}=X^\mathsf{T}X/n\) is the sample genotype correlation matrix under this standardization. The first term is the LD-weighted signal; the second is sampling noise. If the residuals are independent with variance \(\sigma^2\), then, conditional on \(X\), the noise vector has covariance \(\sigma^2\hat{R}/n\). Thus LD affects both the expected marginal coefficients and, in this simplified model, the covariance among their estimation errors.

In a real GWAS, genotypes may be differently scaled, sample sizes and standard errors can vary across variants, and covariates are usually included. The exact sample calculation must reflect that analysis. The core population relation still applies to the appropriately adjusted variables under the linear-model assumptions. For a binary phenotype analyzed by logistic regression, the linear identity is not generally exact for the reported marginal log-odds coefficients; interpretation depends on the fitted model and effect scale.

Worked Example: LD Can Change the Sign of a Marginal Effect

Suppose \(r_{12}=0.90\), with joint effects \(\beta_1=0.10\) and \(\beta_2=-0.08\), both in phenotype units per genotype standard deviation. Assume the additive linear model and uncorrelated residual described above hold.

The marginal effect for variant 1 is \(\alpha_1=1(0.10)+0.90(-0.08)=0.10-0.072=0.028\). For variant 2 it is \(\alpha_2=0.90(0.10)+1(-0.08)=0.09-0.08=0.010\). Both marginal slopes are positive, although variant 2’s joint effect is negative. Its positive marginal association reflects the positive contribution from the correlated variant 1.

The example illustrates why a marginal sign is not necessarily the sign of a variant’s joint effect. A sign reversal is possible when the other correlated contributions outweigh the variant’s own contribution. The calculation assumes the effect alleles are aligned as specified; inconsistent allele coding can also reverse a reported sign, but that is a separate data-harmonization problem.

What LD Means for PRS Weights

A PRS formed from standardized genotypes can be written \(S=\boldsymbol{w}^{\mathsf{T}}\boldsymbol{X}\), where \(w_j\) is the weight assigned to variant \(j\). If all relevant causal variants are included and the additive linear model is correct, then the model’s genetic component is \(\boldsymbol{\beta}^{\mathsf{T}}\boldsymbol{X}\). Marginal GWAS coefficients instead estimate \(\boldsymbol{\alpha}=R\boldsymbol{\beta}\). Using them directly as weights therefore makes the score reflect the LD-weighted effects, not generally the joint effects.

This does not mean marginal effects are useless as score weights. They may carry predictive information, especially when effects are estimated with uncertainty or the score is evaluated in a particular population. It does mean their interpretation is conditional on the LD pattern and the GWAS model. In an idealized setting where \(R\) is known and invertible, \(\boldsymbol{\beta}=R^{-1}\boldsymbol{\alpha}\); however, when variants are highly correlated, \(R\) can be close to singular, so small changes in marginal estimates can produce large changes in an inferred joint-effect vector. This algebraic observation is not by itself a recommendation to invert an estimated LD matrix.

Worked Example: Three Variants and the LD Matrix

Consider three standardized genotypes with pairwise correlations of \(0.50\), so \(R=\begin{pmatrix}1&0.50&0.50\\0.50&1&0.50\\0.50&0.50&1\end{pmatrix}\). Suppose their joint effects are \(\boldsymbol{\beta}=(0.10,0,-0.06)^\mathsf{T}\), in phenotype units per genotype standard deviation. Assume the linear model and residual conditions above hold.

Applying \(\boldsymbol{\alpha}=R\boldsymbol{\beta}\), the first marginal effect is \(0.10+0.50(0)+0.50(-0.06)=0.070\). The second is \(0.50(0.10)+0+0.50(-0.06)=0.020\). The third is \(0.50(0.10)+0.50(0)-0.06=-0.010\). Thus \(\boldsymbol{\alpha}=(0.070,0.020,-0.010)^\mathsf{T}\). Variant 2 has zero joint effect but a positive marginal effect; variant 3’s marginal effect is negative even though its correlation with variant 1 brings in a positive contribution.

These calculations describe population effects, not exact finite-sample GWAS estimates. With sampling noise, each estimated coefficient can differ from its population value. The matrix relation clarifies why, even before considering noise, the summary-statistic weights need not match the joint-effect vector.

Assumptions, Diagnostics, and Alternatives

The identity \(\boldsymbol{\alpha}=R\boldsymbol{\beta}\) relies on a correctly specified additive linear model for the phenotype scale being analyzed, consistent genotype coding, and residuals uncorrelated with the included genotypes after adjustment. The LD matrix and effects must refer to the same population and the same set of variants. If a model omits relevant variants, the marginal effect can also reflect their correlation with the included variants. Dominance, interactions, nonlinearity, population structure not adequately controlled, or a different phenotype scale can make the simple interpretation incomplete.

Useful checks include verifying effect-allele alignment, inspecting genotype correlations among nearby variants, and comparing marginal estimates with estimates from a joint model when that comparison is meaningful. Large marginal effects at many highly correlated variants may represent one shared signal rather than many independent effects. Differences between marginal and joint coefficients are not, on their own, proof that either estimate is erroneous: the two coefficients answer different questions. A change in the target population’s LD can also change marginal effects, even if the underlying joint effects are unchanged.

The main alternatives address different aims. A marginal analysis estimates one-variant-at-a-time associations. A joint regression estimates effects conditional on the other included variants, but strong LD can make those estimates unstable or difficult to distinguish. LD-aware summary-statistic approaches use information about correlations to relate marginal estimates to a joint-effect model. They rely on additional assumptions and appropriate LD information; choosing and auditing that information is a separate practical task.

Common Mistake and Key Takeaway

Wrong reasoning: “Variant 2 has a nonzero marginal GWAS coefficient, so variant 2 must have a nonzero joint effect.” The first worked example disproves this: \(\alpha_2=0.09\) even though \(\beta_2=0\). The correction is to distinguish the association from a one-variant regression from the effect conditional on other variants. Under the stated linear-model assumptions, the former is a row of \(R\boldsymbol{\beta}\), not simply the corresponding entry of \(\boldsymbol{\beta}\).

Key takeaway: LD mixes joint genetic effects into marginal GWAS coefficients. Because the mixing depends on genotype correlations, marginal summary-statistic weights are LD-dependent; they should not automatically be read as independent causal effects.

Check Your Understanding

Answer each question using the linear additive model and consistent effect-allele coding unless the question states otherwise. Solutions follow.

  1. Two standardized variants have correlation \(0.40\) and joint effects \(0.05\) and \(0.10\). What is the marginal effect for the first variant?
  2. A variant has joint effect zero but is correlated \(0.60\) with a variant whose joint effect is \(-0.08\). What is its marginal effect, assuming there are no other contributing variants?
  3. Why can two populations with the same joint effects have different marginal GWAS coefficients?
  4. State one assumption needed for the identity \(\boldsymbol{\alpha}=R\boldsymbol{\beta}\), and give one reason the identity may not directly describe logistic-regression coefficients.

Solutions. (1) \(\alpha_1=1(0.05)+0.40(0.10)=0.09\) phenotype units per genotype standard deviation. (2) The marginal effect is \(0.60(-0.08)=-0.048\) phenotype units per genotype standard deviation, despite the variant’s zero joint effect. (3) Their genotype correlation matrices can differ, and \(\boldsymbol{\alpha}=R\boldsymbol{\beta}\); changing \(R\) can change \(\boldsymbol{\alpha}\) while \(\boldsymbol{\beta}\) stays fixed. (4) One required assumption is that residuals are uncorrelated with the included genotypes after adjustment. Logistic-regression coefficients are on a log-odds scale and do not generally satisfy the exact linear-model covariance identity.

Clinical Biostats