Tutorials › Statistical Genetics › Allele Frequency and Detectable Effect-Size Curves

Genome-Wide Association Study Design · Tutorial 348 of 989

Allele Frequency and Detectable Effect-Size Curves

See how genotype variance connects minor-allele frequency to power and to the smallest additive effect detectable at a chosen sample size and significance threshold.

Intermediate 11 min read

What You'll Learn

  • Express genotype dosage variance as a function of allele frequency under Hardy–Weinberg equilibrium
  • Construct detectable-effect curves for quantitative traits and case-control studies
  • Interpret how minor-allele frequency changes the standard error and power at a fixed design
  • Calculate approximate detectable effects for a prespecified power target
  • Recognize when rare-variant approximations may be unreliable

Why Allele Frequency Shapes Power

A genetic association study can have the same sample size and significance threshold at every tested variant, yet have very different power across variants. One reason is allele frequency: when the minor allele is rare, relatively few participants carry it, so the genotype provides less information about an additive genetic effect. A power curve makes this relationship visible by showing either power across possible effects or the effect size needed to attain a chosen power.

The focus here is a fixed design: sample size, significance threshold, trait scale, and target power are held constant while allele frequency varies. The resulting curve is a planning approximation, not a guarantee for any particular variant. It depends on assumptions about genotype frequencies and the association model, and it does not account for every complication that can alter standard errors in practice.

Definition: Let \(p\) be the frequency of one allele, and let \(f=\min(p,1-p)\) be the minor-allele frequency, so \(0<f\leq 0.5\). Let \(G\in\{0,1,2\}\) count copies of the minor allele. Under Hardy–Weinberg equilibrium, \(P(G=0)=(1-f)^2\), \(P(G=1)=2f(1-f)\), and \(P(G=2)=f^2\). Thus \(E(G)=2f\) and \(\operatorname{Var}(G)=2f(1-f)\).

The variance is central because it describes how much genotype dosage varies in the sample. If nearly everyone has dosage zero, the data contain little information for distinguishing an effect per allele from no effect. At \(f=0.5\), dosage variance reaches its maximum, \(2(0.5)(0.5)=0.5\). The formula assumes Hardy–Weinberg proportions in the population being modeled; departures, relatedness, ancestry structure, or genotype error can change the information available.

From Genotype Variance to a Detectable Effect

For a quantitative trait, consider the additive linear model \(Y=\mu+\beta G+\varepsilon\), where \(\beta\) is the mean trait change per additional minor allele and the residual errors have variance \(\sigma^2\). Assume independent participants, a correctly specified model, genotype dosage measured without error, and residual variance that does not depend on genotype. Under these conditions, the approximate standard error of the estimated effect is \(\sigma/\sqrt{N\,2f(1-f)}\), where \(N\) is the sample size.

For a case-control association, write \(\beta\) for the log odds ratio per additional minor allele. In a logistic regression with no additional covariates, under the null approximation the information for \(\beta\) is approximately \(N\pi(1-\pi)2f(1-f)\), where \(\pi\) is the proportion of sampled participants who are cases. Therefore the approximate standard error is the inverse square root of that information. The worked case-control calculation below uses a balanced sample, \(\pi=0.5\); it does not extend the discussion to imbalanced designs.

In either setting, a test statistic is approximately standard normal under the null and has an approximately normal distribution under a specified alternative. For a two-sided test at significance level \(\alpha\), write \(c=z_{1-\alpha/2}\), the standard-normal quantile with cumulative probability \(1-\alpha/2\). If the effect is positive, the test statistic has approximate mean \(\lambda\), its noncentrality parameter. For the quantitative-trait model, \(\lambda=\beta\sqrt{N\,2f(1-f)}/\sigma\). For the case-control model, \(\lambda=\beta\sqrt{N\pi(1-\pi)2f(1-f)}\).

$$ \operatorname{Power}(\lambda) = P(|Z|>c\mid Z\sim N(\lambda,1)) = 1-\Phi(c-\lambda)+\Phi(-c-\lambda) $$

Here \(\Phi\) is the standard normal cumulative distribution function. The first tail is the probability of rejecting in the direction of the positive effect; the second is the probability of rejecting in the opposite direction. For a desired power \(1-\gamma\), a useful approximation for a positive effect is \(\lambda\approx z_{1-\alpha/2}+z_{1-\gamma}\). It follows by requiring the upper-tail probability \(1-\Phi(c-\lambda)\) to be about \(1-\gamma\). The omitted lower tail is usually very small for a positive effect and a stringent two-sided threshold. For high-precision planning, solve the full power equation rather than relying on this approximation.

Key result: For a quantitative trait, the approximate effect magnitude needed for target power \(1-\gamma\) is \(|\beta|_{\min}\approx K\sigma/\sqrt{N\,2f(1-f)}\), where \(K=z_{1-\alpha/2}+z_{1-\gamma}\). For a case-control study, it is \(|\beta|_{\min}\approx K/\sqrt{N\pi(1-\pi)2f(1-f)}\), with \(\beta\) measured on the log-odds scale. These formulas assume the models and approximations just stated.

Reading the Curves

At fixed \(N\), \(\alpha\), and target power, the quantitative-trait detectable-effect curve is proportional to \(1/\sqrt{2f(1-f)}\). The same frequency dependence appears for the case-control log odds ratio when the case fraction is fixed. Thus, as minor-allele frequency rises from near zero toward 0.5, genotype variance increases and the smallest detectable effect decreases. A rare variant requires a larger effect to reach the same power, all else equal.

If the horizontal axis is allele frequency \(p\in(0,1)\), the dosage variance \(2p(1-p)\) is symmetric around \(p=0.5\): the values at \(p\) and \(1-p\) are identical. On the minor-allele-frequency scale, the domain is only \(0<f\leq0.5\); the detectable-effect curve falls toward \(f=0.5\) on that domain. It is not a curve extending on both sides of 0.5 when plotted against minor-allele frequency.

A power curve can instead hold the effect size fixed and plot power against frequency. Then power rises as \(f\) moves toward 0.5, because the noncentrality parameter increases with the square root of genotype variance. These two views express the same relationship: a frequency with more genotype variation supports greater power for a given effect, or a smaller detectable effect at a given target power.

Worked Example: Quantitative-Trait Detectable Effects

Suppose a hypothetical study has \(N=10{,}000\) unrelated participants, a quantitative trait with residual standard deviation \(\sigma=1\) trait unit, two-sided \(\alpha=0.001\), and target power 80%. Assume Hardy–Weinberg equilibrium and the additive model above. Compare the detectable effects at minor-allele frequencies \(f=0.01\) and \(f=0.30\).

For this threshold, \(z_{1-\alpha/2}=z_{0.9995}\approx3.291\), and \(z_{0.80}\approx0.8416\). Therefore \(K\approx3.291+0.8416=4.133\). At \(f=0.01\), genotype variance is \(2(0.01)(0.99)=0.0198\), so \(N\operatorname{Var}(G)=10{,}000(0.0198)=198\). The detectable effect is

$$ |\beta|_{\min}\approx\frac{4.133(1)}{\sqrt{198}} =\frac{4.133}{14.071}\approx0.2937\text{ trait units per allele}. $$

At \(f=0.30\), genotype variance is \(2(0.30)(0.70)=0.42\), giving \(N\operatorname{Var}(G)=4{,}200\). Thus

$$ |\beta|_{\min}\approx\frac{4.133(1)}{\sqrt{4{,}200}} =\frac{4.133}{64.807}\approx0.06377\text{ trait units per allele}. $$

Under these assumptions, the commoner allele permits detection of a substantially smaller per-allele change at the same target power. The comparison concerns effects in trait units; since \(\sigma=1\), the numerical values are also residual-standard-deviation units.

Worked Example: Power at a Fixed Quantitative Effect

Use the same hypothetical \(N=10{,}000\), \(\sigma=1\), and two-sided \(\alpha=0.001\), but now suppose the true additive effect is \(\beta=0.10\) trait units per allele. Estimate power at \(f=0.01\) and \(f=0.30\). The significance cutoff is \(c\approx3.291\).

At \(f=0.01\), \(\sqrt{N\operatorname{Var}(G)}=\sqrt{198}\approx14.071\), so the noncentrality parameter is \(\lambda=0.10(14.071)/1\approx1.407\). The two-sided power is

$$ 1-\Phi(3.291-1.407)+\Phi(-3.291-1.407) \approx \Phi(-1.884)+\Phi(-4.698)\approx0.0298. $$

At \(f=0.30\), \(\lambda=0.10\sqrt{4{,}200}\approx6.481\), and

$$ 1-\Phi(3.291-6.481)+\Phi(-3.291-6.481) \approx \Phi(3.190)+\Phi(-9.772)\approx0.9993. $$

The same effect and sample size yield very different power because dosage variance differs. These are model-based approximations; they do not imply that a variant at \(f=0.30\) will necessarily be associated in a real study.

Case-Control Effects on the Log-Odds Scale

For case-control studies, the frequency curve has the same general shape, but its vertical scale is different: the effect is measured as a log odds ratio, and information depends on the case fraction as well as total sample size. A log odds ratio \(\beta\) corresponds to an odds ratio \(\exp(\beta)\) for each additional minor allele under the additive logistic model. Because odds ratios are multiplicative, it is useful to report both the log-scale calculation and the corresponding odds ratio.

Worked Example: Case-Control Detectable Effect

Consider a hypothetical balanced case-control sample with \(N=5{,}000\) participants, so \(\pi=0.5\), minor-allele frequency \(f=0.10\), two-sided \(\alpha=0.001\), and target power 80%. Use the same \(K\approx4.133\). The genotype variance is \(2(0.10)(0.90)=0.18\), and the approximate information is

$$ N\pi(1-\pi)\operatorname{Var}(G) =5{,}000(0.5)(0.5)(0.18)=225. $$

The standard error of the log odds ratio is approximately \(1/\sqrt{225}=1/15\). Therefore the detectable log odds ratio is

$$ |\beta|_{\min}\approx\frac{4.133}{\sqrt{225}} =\frac{4.133}{15}\approx0.2755, \qquad \operatorname{OR}_{\min}\approx\exp(0.2755)\approx1.317. $$

Under the stated approximation, a per-allele odds ratio of about 1.317 or its reciprocal, about 0.759, is the magnitude corresponding to 80% power. The reciprocal reflects the same absolute log-scale effect in the opposite direction. This calculation assumes a balanced sample, an additive logistic effect, and adequate genotype information; it is not a general formula for all sampling designs.

How to Construct and Use a Curve

1
Set the design and target.
Specify sample size, significance threshold, target power, trait scale, and—when using a case-control model—the case fraction. Keep these fixed across the frequency values being compared.
2
Calculate genotype variance.
For each minor-allele frequency \(f\), calculate \(2f(1-f)\), assuming Hardy–Weinberg equilibrium.
3
Calculate the effect or power.
For a detectable-effect curve, use the target-power formula at each \(f\). For a power curve, insert a specified effect into the noncentrality parameter and evaluate both normal tails.
4
Label the axes and assumptions.
State whether the vertical axis is power, a quantitative-trait effect, or a log odds ratio. Report the units and the fixed threshold, sample size, and target power so that the curve is interpretable.

A smooth line between calculated frequencies is a visual aid, not evidence that the approximation is equally reliable at every frequency. At very low \(f\), expected counts of minor-allele homozygotes and even heterozygotes can be small. The normal approximation may then be poor, and the formula’s implication of an extremely large detectable effect should not be treated as a precise prediction. For example, under Hardy–Weinberg equilibrium the expected number of minor-allele homozygotes in \(N\) participants is \(Nf^2\); if that number is small, sparse genotype data deserve particular attention.

Common Mistakes and Practical Interpretation

  • Reading a frequency curve as an effect curve. A falling detectable-effect curve does not mean the true effect gets smaller as frequency rises. It means a smaller effect can be detected at the same target power under the model.
  • Confusing allele frequency with genotype variance. The information term is \(2f(1-f)\), not simply \(f\). It rises toward \(f=0.5\) on the minor-allele scale and is symmetric around 0.5 when written using allele frequency \(p\in(0,1)\).
  • Reporting an effect without its scale. A quantitative-trait coefficient has trait units per allele, while a case-control coefficient is a log odds ratio per allele. Exponentiating the latter gives the per-allele odds ratio.
  • Treating an approximation as an exact guarantee. The formulas rely on model assumptions and normal approximations. Sparse genotypes, dependence among participants, measurement error, or model misspecification can change actual power.
  • Calling a detectable effect the expected result. A detectable effect is the effect size associated with a chosen power under specified assumptions. It is not an estimate of the effect that a future study will observe.
Key takeaway: At a fixed design, minor-allele frequency changes power through genotype dosage variance. Under the additive Hardy–Weinberg model, that variance is \(2f(1-f)\); lower variance means a larger standard error, lower power for a given effect, and a larger effect required to attain a chosen power.

Check Your Understanding

Use the model assumptions and formulas in this tutorial to answer the following.

  1. Under Hardy–Weinberg equilibrium, calculate the genotype dosage variance when the minor-allele frequency is 0.20.
  2. At fixed sample size and threshold, why does a quantitative-trait detectable-effect curve fall as minor-allele frequency moves from 0.01 toward 0.50?
  3. For a case-control model, what does the coefficient \(\beta\) represent, and what quantity is obtained by calculating \(\exp(\beta)\)?
  4. Explain why a curve plotted against allele frequency \(p\in(0,1)\) is symmetric around 0.5, while a minor-allele-frequency curve is defined only up to 0.5.
  5. Name one reason the normal-approximation curve may be unreliable at very low minor-allele frequency.
Clinical Biostats