Why Derive Genotype Frequencies?
A PBPK virtual cohort may need genotypes as well as age, organ size, and other physiological attributes. If allele frequencies are known, Hardy–Weinberg equilibrium (HWE) provides a simple way to calculate the genotype frequencies expected under random mating. These are population expectations, not guarantees about the exact composition of a particular cohort. The derivation matters because it shows both what information the calculation uses and which assumptions connect allele frequencies to genotype frequencies.
This tutorial considers one autosomal locus with two alleles, denoted \(A\) and \(a\), in a diploid population. It does not assign functional effects to either allele. The calculation is about the expected distribution of genotypes, not about enzyme activity or drug disposition.
Deriving the Three Frequencies
The key assumption for the one-generation derivation is random union of gametes with respect to this locus: an allele in one gamete pairs independently of the allele in the other gamete. Assume that both gamete pools have the same allele frequencies, \(p\) for \(A\) and \(q\) for \(a\). Each offspring receives one allele from each gamete.
There are four possible ordered pairings. An \(AA\) offspring requires an \(A\) from each gamete, so its probability is \(p \times p\). An \(aa\) offspring requires \(a\) from each, with probability \(q \times q\). A heterozygote can arise in either order: \(A\) from the first gamete and \(a\) from the second, or \(a\) from the first and \(A\) from the second. Each order has probability \(pq\), so the total heterozygote probability is \(pq+qp=2pq\).
The probabilities sum to one because \(p+q=1\):
This identity is a useful arithmetic check. The same derivation can be written as \((p+q)^2\): the two same-allele terms correspond to the homozygotes, and the two cross-products combine to give the heterozygote frequency.
From Frequencies to Expected Counts
For a population or sample of \(N\) individuals, multiply each expected genotype frequency by \(N\). The resulting values are expected counts; they need not be integers, and the observed counts in a finite sample need not equal them exactly.
Worked Example: Expected Counts When Allele Frequencies Are Given
Suppose a hypothetical cohort contains \(N=1{,}000\) individuals at a biallelic autosomal locus. Assume the allele frequency of \(A\) is \(p=0.70\), the frequency of \(a\) is \(q=0.30\), and the HWE assumptions are appropriate. Calculate the expected genotype frequencies and counts.
First check the allele frequencies: \(p+q=0.70+0.30=1.00\). The genotype frequencies are
They sum to \(0.49+0.42+0.09=1.00\). Multiplying by the cohort size gives
Thus the expected counts are 490 \(AA\), 420 \(Aa\), and 90 \(aa\). These are expected values under the stated assumptions, not a prediction that a cohort of exactly 1,000 must contain those precise counts.
Inferring Allele Frequency From a Hypothetical Genotype Table
Sometimes a genotype table is available and allele frequencies must first be calculated. Each homozygote contributes two copies of its allele, and each heterozygote contributes one copy of each allele. For \(N\) diploid individuals, there are \(2N\) allele copies. The sample frequency of \(A\) is therefore the number of \(A\) copies divided by \(2N\). Substituting this estimate into the HWE expressions gives expected counts conditional on that estimated allele frequency.
Worked Example: Estimating Allele Frequency and Computing Expectations
In a hypothetical sample of \(N=500\), the observed counts are 200 \(AA\), 200 \(Aa\), and 100 \(aa\). Calculate the sample allele frequencies and the HWE expected counts using those frequencies.
The sample contains \(2(200)+200=600\) copies of \(A\) among \(2(500)=1{,}000\) total allele copies. Hence \(p=600/1{,}000=0.60\), and \(q=1-p=0.40\). The HWE frequencies are
Multiplying by 500 gives
The observed counts (200, 200, 100) differ from the expected counts (180, 240, 80), despite having the same estimated allele frequency. That difference is a reason to examine the data and assumptions; it is not, by itself, evidence for any one explanation. A formal assessment would also account for sampling variation and the way allele frequencies were estimated.
What If the Gamete Pools Differ?
The standard \(p^2,2pq,q^2\) expressions require the same allele frequencies in the two gamete pools. If the frequency of \(A\) is \(p_1\) in one pool and \(p_2\) in the other, the pairing probabilities instead follow directly from those two probabilities. The probability of a heterozygote is the sum of the two ways to form one.
Worked Example: Unequal Allele Frequencies in Two Gamete Pools
Consider a hypothetical mating situation in which one gamete pool has \(A\)-frequency \(p_1=0.70\) and the other has \(A\)-frequency \(p_2=0.50\). Assume random pairing between the pools. Calculate the offspring genotype frequencies, and compare them with the result obtained by using the average \(A\)-frequency as if both pools were identical.
The frequency of \(a\) is \(1-p_1=0.30\) in the first pool and \(1-p_2=0.50\) in the second. The offspring probabilities are
These frequencies sum to \(0.35+0.50+0.15=1.00\). The average allele frequency is \((0.70+0.50)/2=0.60\); treating both pools as if they had this frequency would give \(AA=0.36\), \(Aa=0.48\), and \(aa=0.16\). Those values differ from the correct paired-pool calculation. Averaging the allele frequencies first does not generally preserve genotype probabilities when the pools differ.
Assumptions, Diagnostics, and Alternatives
The algebra is exact under its probability assumptions, but applying it to a real or simulated cohort requires care. The locus must be treated as diploid and biallelic for these three genotype categories to suffice. The allele frequencies must refer to a clearly defined population, and the gametes must pair independently with respect to the locus. If the population is expected to maintain the same allele frequencies over generations, additional evolutionary conditions matter: selection, mutation, migration, and random drift can change allele frequencies.
When observed genotype counts differ from HWE expectations, consider both biological and data-related explanations. Nonrandom mating, population structure, relatedness, selection, and unequal allele frequencies across mating groups can alter genotype proportions. Genotyping errors, sample selection, and small-sample variation can also create discrepancies. A deviation does not uniquely identify its cause, and matching HWE expectations does not prove that every assumption holds.
A useful diagnostic sequence is to verify the genotype definitions and sample size, recalculate allele frequencies from allele copies, check that the expected frequencies sum to one, and then compare observed counts with expected counts. Examine whether the sample represents one coherent population and whether there are reasons to expect nonrandom mating or allele-dependent survival. If the goal is simply to describe the cohort, observed genotype proportions are a direct alternative: report the observed counts and divide by \(N\), without imposing HWE. If different mating pools or subgroups are known, calculate expectations within those groups rather than treating them as one homogeneous pool.
HWE expectations are useful as a transparent baseline, including when constructing a hypothetical population from allele frequencies. They are not a substitute for measured genotype data when those data are available, nor do the expected genotype frequencies alone specify how genotypes affect a drug-related parameter. That requires a separate biological model.
Common Mistakes
- Forgetting the two ways to form a heterozygote. Using \(pq\) for \(Aa\) counts only one ordering. The correct frequency is \(pq+qp=2pq\).
- Treating expected counts as observed facts. \(Np^2\) is an expectation under the model; finite samples can differ from it.
- Using the wrong allele-frequency denominator. In \(N\) diploid individuals there are \(2N\) allele copies, not \(N\).
- Assuming a discrepancy proves a particular biological mechanism. Several biological, sampling, and measurement factors can produce differences from expected counts.
- Combining distinct gamete pools without checking them. The simple expressions assume the same \(p\) and \(q\) in both pools; otherwise use the separate-pool probabilities.
Check Your Understanding
Work through the questions, then compare with the brief solutions.
- If \(p=0.25\), what are the HWE frequencies for \(AA\), \(Aa\), and \(aa\)?
- For \(N=200\) and \(p=0.25\), calculate the three expected genotype counts.
- A hypothetical sample has 80 \(AA\), 100 \(Aa\), and 20 \(aa\) individuals. What is the sample frequency of \(A\)?
- Why is the expected heterozygote frequency \(2pq\), rather than \(pq\)?
- Name two reasons why observed genotype counts might differ from HWE expectations, and explain why the difference alone does not identify the cause.
Solutions. (1) \(AA=0.25^2=0.0625\), \(Aa=2(0.25)(0.75)=0.375\), and \(aa=0.75^2=0.5625\); they sum to 1. (2) The expected counts are \(200(0.0625)=12.5\) \(AA\), \(200(0.375)=75\) \(Aa\), and \(200(0.5625)=112.5\) \(aa\). Fractional values are permissible for expectations. (3) There are \(2(80)+100=260\) \(A\) copies among \(2(200)=400\) copies, so \(p=260/400=0.65\). (4) The heterozygote can arise as \(A\) then \(a\), or \(a\) then \(A\); each has probability \(pq\), giving \(2pq\). (5) For example, nonrandom mating and genotyping error can both cause differences. Other causes include population structure and sampling variation, so a discrepancy does not select one explanation by itself.