Tutorials › Statistical Genetics › Discovery-Sample Ancestry Composition and Weight Precision

Ancestry Portability of Scores · Tutorial 740 of 989

Discovery-Sample Ancestry Composition and Weight Precision

Learn to quantify ancestry-specific weight uncertainty and connect unequal discovery representation to score accuracy in a target population.

Advanced 10 min read

What You'll Learn

  • Relate genotype variance and discovery sample size to the standard error of a GWAS effect estimate
  • State when the familiar homoskedastic OLS variance formula applies
  • Calculate the precision available from differently composed discovery samples under a shared-effect model
  • Distinguish uncertainty in estimated weights from true differences in genetic effects
  • Quantify how weight-estimation noise can reduce target-population score accuracy

Why Discovery Composition Matters

A GWAS weight is an estimated association, not a known genetic effect. Its precision depends on how much information the discovery sample contributes at that variant. Two features matter directly: how many informative individuals are included and how much the genotype varies among them. Because allele frequencies can differ across ancestry groups, equal group sizes need not provide equal information for every variant.

This creates an important distinction. A score may be less accurate in a target population because the genetic effects differ, because the tagging of causal variation differs, or simply because the discovery data estimated some weights imprecisely. The focus here is the last pathway: sampling uncertainty in weights arising from discovery-sample size and composition. The central comparison assumes effects transfer; unequal precision alone can still produce unequal score accuracy.

Sampling Precision of a GWAS Weight

Consider one variant in one discovery group. Let \(G\) be its allele dosage, coded as 0, 1, or 2 copies, and let \(Y\) be a quantitative trait. A simple association model is

$$ Y_i=\alpha+\beta G_i+\varepsilon_i,\qquad i=1,\ldots,N. $$

Here \(\beta\) is the change in the mean trait per additional effect-allele copy under this model. The ordinary least-squares estimate is denoted \(\hat{\beta}\). For the familiar variance formula below, assume independent sampled individuals, a correctly specified linear conditional mean, finite relevant moments, and homoskedastic errors: \(E(\varepsilon_i\mid G_i)=0\) and \(\operatorname{Var}(\varepsilon_i\mid G_i)=\sigma^2\). Also assume \(0<\operatorname{Var}(G)<\infty\). Under the usual large-sample conditions, the approximate variance and standard error are

$$ \operatorname{Var}(\hat{\beta})\approx \frac{\sigma^2}{N\operatorname{Var}(G)},\qquad SE(\hat{\beta})\approx \frac{\sigma}{\sqrt{N\operatorname{Var}(G)}}. $$

The units of \(\hat{\beta}\) are trait units per allele copy. Larger \(N\) and larger genotype variance reduce its sampling uncertainty. Under Hardy–Weinberg equilibrium, if the effect-allele frequency is \(p\), then \(\operatorname{Var}(G)=2p(1-p)\). This expression is conditional on that population-genetic assumption; in practice, genotype variance can instead be estimated from the observed sample.

Definition: The precision of a GWAS weight describes how concentrated its sampling distribution is around its expected value. In this model, greater precision means smaller \(\operatorname{Var}(\hat{\beta})\) or \(SE(\hat{\beta})\). Precision is not the same as effect size: a large estimated effect can still be imprecise.

A Justification—and the Role of the Assumptions

With an intercept in the regression, let \(G_c=G-E(G)\). The OLS slope is based on the sample covariance of genotype and outcome divided by the sample genotype variance. When the conditional mean is linear, the leading random part of the slope comes from the term \(G_c\varepsilon\). Under homoskedasticity, its variance is

$$ \operatorname{Var}(G_c\varepsilon) =E\{G_c^2\operatorname{Var}(\varepsilon\mid G)\} =\sigma^2 E(G_c^2) =\sigma^2\operatorname{Var}(G). $$

The sample average of these terms has variance approximately \(\sigma^2\operatorname{Var}(G)/N\). Dividing by the squared limiting denominator \(\{\operatorname{Var}(G)\}^2\) gives \(\sigma^2/[N\operatorname{Var}(G)]\), as stated. This argument shows why conditional homoskedasticity matters: an unconditional residual variance alone does not make the genotype-weighted residual variance equal to \(\sigma^2\operatorname{Var}(G)\).

If \(\operatorname{Var}(\varepsilon\mid G)\) varies with genotype, the usual large-sample variance for the slope instead has the form

$$ \operatorname{Var}(\hat{\beta})\approx \frac{E(G_c^2\varepsilon^2)} {N\{\operatorname{Var}(G)\}^2}, \qquad E(\varepsilon\mid G)=0. $$

A heteroskedasticity-robust standard error estimates this variance without imposing a constant conditional residual variance. With covariates, the corresponding calculation uses genotype variation remaining after accounting for those covariates, together with the appropriate residual variance. Thus, the simple formula is useful, but only when its assumptions—or a suitable adjusted version—are justified.

Worked Example: Comparing Precision Across Two Discovery Groups

Suppose two hypothetical discovery groups each have a quantitative trait with residual variance \(\sigma^2=1\) trait-unit squared. Within each group, assume the linear model is correct, individuals are independent, residuals have mean zero conditional on genotype and constant conditional variance, and genotypes are in Hardy–Weinberg equilibrium. Group A has \(N=2{,}000\) and effect-allele frequency \(p=0.30\); Group B has \(N=500\) and \(p=0.10\). Calculate the approximate standard error of the association estimate in each group.

For Group A, the genotype variance is \(2p(1-p)=2(0.30)(0.70)=0.42\). Its information in the simple model is \(N\operatorname{Var}(G)=2{,}000(0.42)=840\), so

$$ SE(\hat{\beta}_A)\approx \sqrt{\frac{1}{840}}=0.03450 \quad\text{trait units per allele copy}. $$

For Group B, \(\operatorname{Var}(G)=2(0.10)(0.90)=0.18\), and \(N\operatorname{Var}(G)=500(0.18)=90\). Therefore

$$ SE(\hat{\beta}_B)\approx \sqrt{\frac{1}{90}}=0.1054 \quad\text{trait units per allele copy}. $$

The estimated effect in Group B would be about \(0.1054/0.03450=3.06\) times as uncertain if the underlying effect were the same. This difference follows from both the smaller sample and lower genotype variance. It does not show that the effect itself differs between groups.

How Composition Contributes to Information

Suppose a discovery sample contains groups indexed by \(k\), with \(N_k\) individuals in group \(k\). To estimate a common effect while allowing group-specific means, consider a model with an intercept \(\alpha_k\) for each group and a shared slope \(\beta\). Assume the same per-allele effect in every group, independent observations, and residual variance \(\sigma_k^2\) within group \(k\), with conditional mean zero and conditional homoskedasticity there. With genotype centered within each group, the approximate variance of the shared-slope estimate is

$$ \operatorname{Var}(\hat{\beta})\approx \left\{\sum_k \frac{N_k\operatorname{Var}(G\mid k)}{\sigma_k^2} \right\}^{-1}. $$

Each group contributes information in proportion to its sample size and within-group genotype variance, and inversely to its residual variance. If residual variances are equal, this reduces to the reciprocal of the sum of \(N_k\operatorname{Var}(G\mid k)/\sigma^2\). A group can therefore add many participants but relatively little information at a particular variant if genotype variation there is low. Conversely, a smaller group can contribute meaningfully at a variant where genotype variation is larger.

Centering within groups is important to this interpretation: the association is estimated from genotype differences among individuals within groups, rather than from differences in group-average genotype and group-average outcome. If the true effects are not shared, the common-slope estimate need not represent the effect in every group. The calculation describes precision under a shared-effect model; it does not establish that the model is biologically appropriate.

Worked Example: Information in a Compositionally Unequal Sample

Consider a hypothetical discovery sample with 1,000 individuals in Group A and 3,000 in Group B. Assume a shared effect, group-specific intercepts, residual variance \(\sigma_k^2=1\) in each group, and the same linear-model and homoskedasticity conditions described above. Under Hardy–Weinberg equilibrium, let the effect-allele frequencies be \(0.30\) in A and \(0.20\) in B. Calculate the standard error for the common effect.

The genotype variances are \(2(0.30)(0.70)=0.42\) in A and \(2(0.20)(0.80)=0.32\) in B. The total information is

$$ 1{,}000(0.42)+3{,}000(0.32)=420+960=1{,}380. $$

Thus the approximate standard error is

$$ SE(\hat{\beta})\approx \sqrt{\frac{1}{1{,}380}}=0.02693 \quad\text{trait units per allele copy}. $$

For comparison, 4,000 individuals all with genotype variance \(0.42\), under the same residual-variance assumption, would provide \(4{,}000(0.42)=1{,}680\) units of information and an approximate standard error of \(\sqrt{1/1{,}680}=0.02440\). In this hypothetical comparison, the actual composition provides less information for this variant despite the same total sample size. The comparison is about genotype variation and precision, not about which ancestry group is preferable or about the transferability of the effect.

From Weight Uncertainty to Score Accuracy

At a set of variants, write the centered genotype vector in a target population as \(G\), the vector of true effects as \(\beta\), and the estimated weights as \(\hat{\beta}=\beta+u\), where \(u\) is estimation error. The difference between the estimated and true scores is \(G^\mathsf{T}u\). Let \(\Sigma_T=\operatorname{Cov}(G)\) in the target population, and let \(C=\operatorname{Cov}(u)\) describe uncertainty in the estimated weights. If weight errors have mean zero and are independent of target genotypes, then the expected variance of the score error is

$$ E_u\{\operatorname{Var}_T(G^\mathsf{T}u\mid u)\} =\operatorname{tr}(\Sigma_T C). $$

This expression connects discovery precision to target score error. In the special case of independent loci and independent weight errors, it becomes

$$ \operatorname{Var}_T(G^\mathsf{T}u) =\sum_j \operatorname{Var}_T(G_j)\operatorname{Var}(u_j). $$

Thus, weight uncertainty at a variant contributes more score noise when that variant also varies substantially in the target population. If loci or estimation errors are correlated, the full covariance expression is needed; the sum across loci is not generally valid. These equations concern uncertainty from estimated weights, not LD mismatch or effect heterogeneity.

Worked Example: Unequal Weight Precision Lowers Target Accuracy

Suppose a hypothetical target population has two independent loci with genotype variances \(0.40\) and \(0.20\). Effects transfer exactly, and the true weights are \(1/\sqrt{2}\) and \(1\). The true score \(P\) therefore has variance \(0.40(1/2)+0.20(1^2)=0.40\). Assume the estimated weights have independent, mean-zero errors \(u_1,u_2\), independent of target genotypes, with variances \(0.01\) and \(0.04\), respectively. These unequal variances could arise from unequal discovery precision. Let the target outcome be \(Y=P+\varepsilon\), with independent residual variance \(0.60\), so that \(\operatorname{Var}(Y)=1\).

The variance of score error from the estimated weights is

$$ \operatorname{Var}_T(G^\mathsf{T}u) =0.40(0.01)+0.20(0.04) =0.004+0.008=0.012. $$

Because the weight errors are independent of the true score, the estimated score has variance \(0.40+0.012=0.412\), and its covariance with \(Y\) is \(0.40\). Its squared correlation with the outcome is therefore

$$ R^2_{\hat{P},Y}= \frac{\operatorname{Cov}(Y,\hat{P})^2} {\operatorname{Var}(Y)\operatorname{Var}(\hat{P})} =\frac{0.40^2}{1(0.412)} =0.3883. $$

Using the true weights would give \(R^2_{P,Y}=0.40\) under these assumptions. The estimated score is less accurate even though both effects transfer perfectly: uncertainty in the weights adds noise. The calculation isolates this mechanism; it is not a general formula for score performance when loci are correlated or other sources of error are present.

Common Mistakes and Practical Interpretation

  • Assuming sample size alone determines precision. Two groups with the same \(N\) can have different genotype variances and hence different standard errors at a variant. Use \(N\operatorname{Var}(G)\), with residual variance also accounted for, under the stated model.
  • Using the homoskedastic formula with only an unconditional residual variance. Knowing \(\operatorname{Var}(\varepsilon)=\sigma^2\) does not establish \(\operatorname{Var}(\varepsilon\mid G)=\sigma^2\). Check conditional homoskedasticity or use an appropriate robust variance estimate.
  • Interpreting an imprecise weight as a small effect. A large standard error says the data estimate the effect less precisely; it does not by itself imply the true effect is small or absent.
  • Calling unequal score performance proof of non-transferable effects. Lower discovery representation can increase weight noise and reduce accuracy even when effects are shared. Other mechanisms may also matter, so performance differences alone do not identify their cause.
  • Treating the total number of participants as the whole story. Relatedness, missing genotypes, covariate adjustment, phenotype residual variance, and the effective genotype variation can all alter the information available beyond the nominal sample count.
Key takeaway: Under a correctly specified, homoskedastic association model, a variant’s weight becomes more precise as discovery sample size and within-group genotype variance increase. Unequal precision can add score noise in a target population even when genetic effects transfer; justify the variance assumptions before applying the simple formula.

Check Your Understanding

Work through these questions using the assumptions stated in each part.

  1. Under Hardy–Weinberg equilibrium, what is the genotype variance when the effect-allele frequency is \(0.25\)?
  2. For a quantitative-trait GWAS, name the conditional error assumption needed for the simple variance formula \(\sigma^2/[N\operatorname{Var}(G)]\).
  3. Two groups have equal sample sizes and residual variances, but different allele frequencies. What determines which group gives the more precise weight estimate at that variant?
  4. Why can a score be less accurate in a target population even if the genetic effects are identical in discovery and target populations?
  5. When loci or weight-estimation errors are correlated, why is the sum of per-locus score-error variances not generally sufficient?
Clinical Biostats