Tutorials › High-Dimensional Genomic Data Analysis › Deriving the Gaussian Summary-Statistic Likelihood

Statistical Fine-Mapping and Credible Sets · Tutorial 699 of 795

Deriving the Gaussian Summary-Statistic Likelihood

Learn how LD, standard errors, and a Gaussian sampling model combine to form a likelihood for marginal association estimates.

Advanced 13 min read

What You'll Learn

  • Derive the expected marginal estimates from joint variant effects and the LD matrix
  • Express the sampling covariance using variant-specific standard errors
  • Write the Gaussian likelihood and its standardized z-score form
  • Identify assumptions about sampling, phenotype models, and LD reference data
  • Calculate a likelihood quantity from hypothetical summary statistics
  • Diagnose singular or incompatible LD matrices and other approximation failures

Why the Likelihood Must Account for LD

Marginal association estimates are computed one variant at a time, but they are not statistically independent when variants are correlated through linkage disequilibrium (LD). A signal at one variant can therefore produce association estimates at nearby correlated variants. A likelihood for these estimates must represent both their expected values under a proposed vector of joint effects and their correlated sampling error.

This tutorial derives a Gaussian approximation for that likelihood. It is a sampling model for the vector of marginal estimates, not a claim that the observed estimates are independent or that the LD matrix alone identifies a causal variant. The likelihood is useful only when the effect scale, standard errors, and LD matrix are aligned with the same variants and analysis.

Model, Notation, and Assumptions

Consider \(m\) variants. Let \(R\) be their \(m\times m\) LD correlation matrix, with \(r_{jk}\) the correlation between genotypes at variants \(j\) and \(k\). Let \(\beta_j\) denote the joint effect of variant \(j\), conditional on the other variants in this set. For the simplest derivation, genotypes are centered and scaled to variance one, and the quantitative phenotype is modeled as

$$ y = X\beta + \varepsilon, $$

where \(X\) has one standardized genotype column per variant and \(\varepsilon\) has mean zero, independent components, and common variance \(\sigma^2\). The approximation treats the observed LD matrix as the population or sample correlation matrix relevant to the association analysis. In practice, covariate adjustment requires LD calculated on genotypes residualized consistently with that analysis, or a suitable approximation to it.

Definition: Let \(\hat b_j\) be the marginal association estimate for variant \(j\), obtained by fitting its association without conditioning on the other variants. Write \(\hat b=(\hat b_1,\ldots,\hat b_m)^\mathsf{T}\), \(S=\operatorname{diag}(s_1,\ldots,s_m)\) for the standard errors, and \(\beta=(\beta_1,\ldots,\beta_m)^\mathsf{T}\) for the joint effects. Under the Gaussian summary-statistic approximation, \(\hat b\) has mean \(R\beta\) and covariance \(SRS\).

The stated mean uses effects and genotypes on a consistent standardized scale. With standardized genotypes, the marginal regression coefficient at variant \(j\) has population mean \(\sum_k r_{jk}\beta_k\): it collects the contributions of all joint effects weighted by their correlations with variant \(j\). If effects are reported on a different scale, the mean and standard errors must be transformed consistently rather than mixing scales.

The covariance \(SRS\) is an approximation when standard errors differ across variants. It says that the sampling correlation between \(\hat b_j\) and \(\hat b_k\) is approximately \(r_{jk}\). This is appropriate in a common-sample setting with a compatible LD matrix and similar association procedures. It is not guaranteed merely because marginal standard errors have been supplied.

Deriving the Mean and Covariance

For centered, variance-one genotype columns, the sample cross-product matrix satisfies \(X^\mathsf{T}X/n\approx R\), where \(n\) is the sample size. The vector of univariate marginal regression estimates can be written, under this scaling, as \(\hat b=X^\mathsf{T}y/n\). Substituting the phenotype model gives

$$ \hat b = \frac{X^\mathsf{T}X}{n}\beta+\frac{X^\mathsf{T}\varepsilon}{n} \approx R\beta+\frac{X^\mathsf{T}\varepsilon}{n}. $$

Conditional on the genotypes, the first term is the expected marginal estimate. For the error term, independence and variance \(\sigma^2\) imply

$$ \operatorname{Cov}\left(\frac{X^\mathsf{T}\varepsilon}{n}\,\middle|\,X\right) =\frac{\sigma^2}{n^2}X^\mathsf{T}X \approx \frac{\sigma^2}{n}R. $$

Thus the idealized covariance is a scalar times \(R\). For standardized genotypes and one common analysis, the marginal standard errors are approximately equal, \(s_j\approx \sigma/\sqrt{n}\). More generally, observed standard errors can differ because of allele frequencies, missingness, covariate adjustment, or other features. Replacing the common scale by the reported standard errors yields the working approximation \(SRS\). The Gaussian form follows exactly in the fixed-design linear model with Gaussian errors and known variance; with estimated variances or non-Gaussian outcomes it is generally an asymptotic approximation.

Likelihood: If \(\hat b\) is approximated by a multivariate normal distribution with mean \(R\beta\) and positive-definite covariance \(\Sigma=SRS\), its likelihood as a function of \(\beta\) is
$$ L(\beta;\hat b) =(2\pi)^{-m/2}|\Sigma|^{-1/2} \exp\left\{-\frac{1}{2}(\hat b-R\beta)^\mathsf{T} \Sigma^{-1}(\hat b-R\beta)\right\}. $$

The determinant term matters when comparing likelihoods with different covariance assumptions; for a fixed \(R\) and \(S\), it is constant as \(\beta\) varies. If \(z=S^{-1}\hat b\), the standardized form is \(z\approx N(S^{-1}R\beta,R)\). The mean in this form is not generally \(R\beta\), because standardizing the estimates also transforms their expected values.

Worked Example: Deriving the Two-Variant Covariance

Suppose two hypothetical variants have LD correlation \(r_{12}=0.40\), and their marginal association standard errors are \(s_1=0.10\) and \(s_2=0.20\) phenotype units per standardized genotype. The working covariance is

$$ \Sigma=SRS = \begin{pmatrix}0.10&0\\0&0.20\end{pmatrix} \begin{pmatrix}1&0.40\\0.40&1\end{pmatrix} \begin{pmatrix}0.10&0\\0&0.20\end{pmatrix} = \begin{pmatrix}0.0100&0.00800\\0.00800&0.0400\end{pmatrix}. $$

In particular, the covariance is \(s_1s_2r_{12}=(0.10)(0.20)(0.40)=0.00800\), and the sampling correlation is \(0.00800/(0.10\cdot0.20)=0.40\). Now suppose the hypothetical joint effects are \(\beta=(0.20,0)^\mathsf{T}\). Their expected marginal estimates are

$$ R\beta= \begin{pmatrix}1&0.40\\0.40&1\end{pmatrix} \begin{pmatrix}0.20\\0\end{pmatrix} = \begin{pmatrix}0.20\\0.0800\end{pmatrix}. $$

The second variant has a nonzero expected marginal estimate even though its specified joint effect is zero: the first variant's effect is partly reflected at a correlated variant. If the observed estimates were \(\hat b=(0.18,0.11)^\mathsf{T}\), the residual vector for this proposed \(\beta\) would be \((-0.0200,0.0300)^\mathsf{T}\). This example checks the covariance and mean used in the likelihood; it does not establish that this joint-effect vector is the correct one.

Using the Likelihood and Checking Its Inputs

A likelihood calculation evaluates how far the observed estimates are from the mean predicted by a specified \(\beta\), accounting for the covariance among estimates. The relevant squared distance is the quadratic form \((\hat b-R\beta)^\mathsf{T}\Sigma^{-1}(\hat b-R\beta)\). It is not generally the sum of squared, individually standardized residuals: that simpler sum would discard the off-diagonal covariance.

Worked Example: Computing a Gaussian Log Likelihood

Suppose hypothetical standardized summary statistics are \(z=(2,1)^\mathsf{T}\), and the two variants have \(r_{12}=0.50\). Under the zero-effect mean, the standardized sampling model is \(z\sim N(0,R)\), with \(R=\begin{pmatrix}1&0.50\\0.50&1\end{pmatrix}\). Its determinant is \(1-0.50^2=0.75\), and its inverse is

$$ R^{-1}=\frac{1}{0.75} \begin{pmatrix}1&-0.50\\-0.50&1\end{pmatrix}. $$

The quadratic form is

$$ z^\mathsf{T}R^{-1}z =\frac{1}{0.75}\{2^2-2(0.50)(2)(1)+1^2\} =\frac{3}{0.75}=4. $$

The bivariate Gaussian log density at these data under this specified mean and covariance is therefore \(\ell=-\log(2\pi)-\tfrac12\log(0.75)-\tfrac12(4)\approx-3.694\). This is a likelihood value on the log scale for this model specification, not a probability that the zero-effect model is true.

Before using the likelihood, verify that the variant order in \(R\), \(\hat b\), and \(S\) is identical; that effect alleles and effect directions are harmonized; and that the LD reference is appropriate for the association sample. A sign reversal for an allele changes the signs of corresponding correlations and estimates, so inconsistent allele alignment can change the likelihood substantially. Standard errors should correspond to the same effect scale and association model as the estimates.

The matrix \(R\) must be a valid correlation matrix: it is symmetric, has unit diagonal, and is positive semidefinite. The likelihood formula with \(\Sigma^{-1}\) requires positive definiteness. Perfectly correlated variants can make it singular; near-perfect correlation can make the inverse numerically unstable. In such cases, the data do not provide independent directions of information for all variants. Reducing redundant variants or using a method explicitly designed for singular or regularized covariance may be necessary; silently inverting an invalid matrix does not fix the model.

Worked Example: Spotting an Impossible LD Matrix

Consider a hypothetical three-variant matrix with all diagonal entries equal to one and correlations \(r_{12}=0.80\), \(r_{13}=0.80\), and \(r_{23}=-0.80\). Its determinant is

$$ |R|=1+2r_{12}r_{13}r_{23}-r_{12}^2-r_{13}^2-r_{23}^2 =1+2(0.80)(0.80)(-0.80)-3(0.80^2) =-1.944. $$

A correlation matrix must be positive semidefinite and therefore cannot have a negative determinant. These pairwise correlations cannot all describe the same three variables. They might signal a transcription, variant-order, or allele-alignment error, or inconsistent LD estimates. Because this \(R\) is invalid, it cannot be used as the covariance correlation matrix in the Gaussian likelihood.

Scope of the Approximation and Common Pitfalls

The derivation is most direct for quantitative traits under a linear model, a common set of individuals, and appropriately scaled genotypes. For binary traits analyzed by logistic regression, a Gaussian approximation to estimates or score statistics may be useful in large samples, but the covariance can depend on the analysis and is not automatically the raw genotype LD matrix. Relatedness, sample overlap patterns, variant-specific missingness, imputation uncertainty, or substantial differences between the analysis and LD-reference populations can also undermine \(SRS\).

A useful comparison is with treating marginal estimates as independent. That model uses a diagonal covariance, effectively setting all off-diagonal correlations to zero. It can be reasonable when LD is negligible, but in a correlated region it misstates the joint sampling variation and ignores the LD-induced pattern in expected marginal estimates. The Gaussian LD likelihood retains that dependence, but relies on accurate inputs and a suitable sampling approximation; it does not remove ambiguity when variants are highly correlated.

  • Common mistake: Setting the expected marginal estimate at variant \(j\) equal to its joint effect \(\beta_j\). Correction: Under the standardized linear model, its expected marginal estimate is \((R\beta)_j=\sum_k r_{jk}\beta_k\).
  • Common mistake: Using \(R\) itself as the covariance of estimates measured in phenotype units. Correction: Scale by their standard errors: \(\Sigma=SRS\). In standardized \(z\)-score units, the approximate covariance is \(R\).
  • Common mistake: Assuming a supplied LD matrix is suitable because its entries are correlations. Correction: Check positive semidefiniteness, variant order, allele orientation, and compatibility with the association analysis.

The likelihood is a model for the joint sampling distribution of summary estimates conditional on the proposed effect vector and covariance assumptions. Its reliability depends on how well that model represents the data. In particular, high LD can make the covariance nearly singular and can leave distinct joint-effect patterns producing similar marginal summaries.

Check Your Understanding

Answer each question, then compare with the solutions below.

  1. For two variants with \(r_{12}=0.30\) and standard errors \(0.05\) and \(0.10\), what is the approximate covariance of their marginal estimates?
  2. If \(R=\begin{pmatrix}1&0.60\\0.60&1\end{pmatrix}\) and \(\beta=(0,0.20)^\mathsf{T}\), what is the expected vector of marginal estimates?
  3. Why is the quadratic form in the likelihood not generally the sum of squared residuals divided by each marginal variance?
  4. Name two checks to make before using an external LD matrix with summary statistics.

Solutions. (1) The covariance is \(s_1s_2r_{12}=(0.05)(0.10)(0.30)=0.00150\), in squared phenotype units on the stated effect scale. (2) \(R\beta=(0.12,0.20)^\mathsf{T}\), because the second variant's joint effect contributes \(0.60(0.20)=0.12\) to the first variant's marginal mean. (3) Correlated estimates have off-diagonal covariance, so the inverse full covariance matrix, not just separate marginal variances, determines their joint squared distance. (4) For example, check that variant order and effect-allele orientation match, that the matrix is positive semidefinite, and that the reference population and analysis are sufficiently compatible.

Clinical Biostats