Tutorials › Statistical Genetics › Allele and Haplotype Frequencies in a Two-Locus Population

Haplotypes and Linkage Disequilibrium · Tutorial 121 of 989

Allele and Haplotype Frequencies in a Two-Locus Population

Calculate haplotype and allele frequencies from chromosome counts, then use random pairing to derive and check expected two-locus genotype frequencies.

Intermediate 11 min read

What You'll Learn

  • Calculate the four haplotype frequencies using the total number of chromosome copies.
  • Obtain each locus’s marginal allele frequencies by summing the appropriate haplotype frequencies.
  • Check that haplotype frequencies sum to one and that marginal frequencies are valid.
  • Distinguish observed chromosome counts from genotype frequencies expected under random pairing.
  • Calculate unordered diplotype probabilities and combine them into two-locus genotype frequencies.
  • Verify that expected genotype frequencies sum to one and agree with the marginal genotype distributions.

From Chromosome Counts to Frequencies

At two biallelic loci, label the alleles \(A\) and \(a\) at the first locus, and \(B\) and \(b\) at the second. A chromosome carries one allele at each locus, so its haplotype is one of \(AB\), \(Ab\), \(aB\), or \(ab\). For example, \(Ab\) means that the chromosome carries \(A\) at the first locus and \(b\) at the second.

A diploid individual has two chromosomes, and therefore two haplotypes at these loci. If the chromosome pairs are phased, each chromosome’s two-locus combination is known. Counting the four haplotypes across those chromosomes gives frequencies that describe the chromosome pool. This is different from counting genotypes: a two-locus genotype records the allele pair at each locus without necessarily distinguishing which alleles lie together on the same chromosome.

Definition: Let \(n_{AB}\), \(n_{Ab}\), \(n_{aB}\), and \(n_{ab}\) be the chromosome counts for the four haplotypes, and let \(M=n_{AB}+n_{Ab}+n_{aB}+n_{ab}\) be the total number of chromosome copies counted. Their frequencies are \(f_{AB}=n_{AB}/M\), \(f_{Ab}=n_{Ab}/M\), \(f_{aB}=n_{aB}/M\), and \(f_{ab}=n_{ab}/M\). The marginal allele frequencies are \(p_A=f_{AB}+f_{Ab}\), \(p_a=f_{aB}+f_{ab}\), \(p_B=f_{AB}+f_{aB}\), and \(p_b=f_{Ab}+f_{ab}\).

For \(N\) diploid individuals with both chromosomes counted, \(M=2N\). The denominator is the number of chromosome copies, not the number of individuals. Each haplotype frequency is between zero and one, and the four frequencies must sum to one. At each locus, the two allele frequencies must also sum to one: \(p_A+p_a=1\) and \(p_B+p_b=1\). These are basic consistency checks on the counts and calculations.

Worked Example: Calculating the Four Haplotype Frequencies

Worked Example: Calculating the Four Haplotype Frequencies

Suppose, in a hypothetical sample of 100 diploid individuals, both phased chromosomes are counted for every individual. The resulting counts are \(n_{AB}=80\), \(n_{Ab}=40\), \(n_{aB}=30\), and \(n_{ab}=50\). Calculate the haplotype and marginal allele frequencies and check their sums.

There are \(M=2(100)=200\) chromosome copies. Thus

$$ f_{AB}=\frac{80}{200}=0.40,\qquad f_{Ab}=\frac{40}{200}=0.20,\qquad f_{aB}=\frac{30}{200}=0.15,\qquad f_{ab}=\frac{50}{200}=0.25. $$

The haplotype frequencies add to \(0.40+0.20+0.15+0.25=1.00\), as required. The first-locus allele frequencies are

$$ p_A=f_{AB}+f_{Ab}=0.40+0.20=0.60,\qquad p_a=f_{aB}+f_{ab}=0.15+0.25=0.40. $$

The second-locus allele frequencies are

$$ p_B=f_{AB}+f_{aB}=0.40+0.15=0.55,\qquad p_b=f_{Ab}+f_{ab}=0.20+0.25=0.45. $$

Both marginal pairs sum to one: \(0.60+0.40=1.00\) and \(0.55+0.45=1.00\). In this sample, 60% of the counted chromosome copies carry \(A\), and 55% carry \(B\). These are chromosome-level proportions, not percentages of individuals with a particular genotype.

Expected Genotypes Under Random Pairing

Haplotype frequencies alone describe the chromosome pool. To calculate genotype frequencies under random pairing, add an explicit pairing assumption: the two chromosomes in a diploid individual are drawn independently from that pool, with the four haplotype frequencies held fixed. The resulting values are expected frequencies under this model. They need not equal the observed genotype frequencies in a particular sample.

An ordered draw of one \(AB\) chromosome followed by one \(ab\) chromosome has probability \(f_{AB}f_{ab}\). For two different haplotypes \(h\) and \(k\), the unordered diplotype \(h/k\) can arise in either order, so its probability is \(f_hf_k+f_kf_h=2f_hf_k\). A diplotype here means the pair of haplotypes carried by an individual. If the two haplotypes are the same, there is only one pairing type and its probability is \(f_h^2\).

Random-pairing result: Under independent pairing from a chromosome pool with frequencies \(f_h\), the expected frequency of the diplotype \(h/h\) is \(f_h^2\), and that of the unordered diplotype \(h/k\), for \(h\ne k\), is \(2f_hf_k\). A two-locus genotype frequency is found by adding the probabilities of all diplotypes that produce that genotype.

The factor of two for different haplotypes is essential. For example, \(AB/ab\) and \(ab/AB\) are the two possible ordered draws, but both describe the same unordered diplotype. When haplotypes are translated into genotypes, \(AB/ab\) gives \(AaBb\). In contrast, \(Ab/ab\) gives \(Aabb\), because it carries \(A\) and \(a\) at the first locus but \(b\) on both chromosomes at the second.

Worked Example: Aggregating Diplotypes into Genotypes

Worked Example: Aggregating Diplotypes into Genotypes

Use the frequencies from the preceding hypothetical chromosome counts: \(f_{AB}=0.40\), \(f_{Ab}=0.20\), \(f_{aB}=0.15\), and \(f_{ab}=0.25\). Find the expected two-locus genotype frequencies under random pairing.

First calculate the ten unordered diplotype frequencies. The four same-haplotype probabilities are \(f_h^2\), and the six different-haplotype probabilities are \(2f_hf_k\):

$$ \begin{aligned} AB/AB &: (0.40)^2=0.16, & Ab/Ab &: (0.20)^2=0.04,\\ aB/aB &: (0.15)^2=0.0225, & ab/ab &: (0.25)^2=0.0625,\\ AB/Ab &: 2(0.40)(0.20)=0.16, & AB/aB &: 2(0.40)(0.15)=0.12,\\ AB/ab &: 2(0.40)(0.25)=0.20, & Ab/aB &: 2(0.20)(0.15)=0.06,\\ Ab/ab &: 2(0.20)(0.25)=0.10, & aB/ab &: 2(0.15)(0.25)=0.075. \end{aligned} $$

Now translate each diplotype into the genotype at each locus. The genotype \(AaBb\) arises from \(AB/ab\) and \(Ab/aB\), so its expected frequency is \(0.20+0.06=0.26\). The other genotype frequencies are obtained in the same way:

Two-locus genotypeDiplotype contribution(s)Expected frequency
AABBAB/AB: 0.160.16
AABbAB/Ab: 0.160.16
AAbbAb/Ab: 0.040.04
AaBBAB/aB: 0.120.12
AaBbAB/ab: 0.20; Ab/aB: 0.060.26
AabbAb/ab: 0.100.10
aaBBaB/aB: 0.02250.0225
aaBbaB/ab: 0.0750.075
aabbab/ab: 0.06250.0625

The genotype frequencies sum to \(0.16+0.16+0.04+0.12+0.26+0.10+0.0225+0.075+0.0625=1.00\). This check confirms that the genotype categories account for all the probability under the pairing model.

Why the Probabilities Sum to One

The diplotype probabilities provide a useful general check. Let the sum run over the four possible haplotypes. The total probability over all unordered diplotypes is the sum of the same-haplotype probabilities and the different-haplotype probabilities:

$$ \sum_h f_h^2+\sum_{h<k}2f_hf_k = \left(\sum_h f_h\right)^2 = 1. $$

The first equality follows by expanding the square: it contains each squared frequency once and each cross-product twice. The second follows because the haplotype frequencies sum to one. When diplotypes are grouped into genotypes, every diplotype belongs to exactly one two-locus genotype. Therefore aggregation preserves the total, so the expected genotype frequencies also sum to one.

A second check comes from looking at either locus alone. For the first locus, the probability of drawing an \(A\)-carrying chromosome is \(p_A=f_{AB}+f_{Ab}\). Under independent pairing, an individual is expected to have genotype \(AA\) with probability \(p_A^2\), genotype \(Aa\) with probability \(2p_Ap_a\), and genotype \(aa\) with probability \(p_a^2\). This follows because \(AA\) requires two \(A\)-carrying draws, while \(Aa\) can arise in either order. The same argument applies to \(B\) and \(b\). These marginal checks help detect errors in the two-locus genotype table.

Worked Example: Checking Marginal Genotype Frequencies

Worked Example: Checking Marginal Genotype Frequencies

In another hypothetical set of 30 diploid individuals, the phased chromosome counts are \(n_{AB}=18\), \(n_{Ab}=12\), \(n_{aB}=6\), and \(n_{ab}=24\). There are \(60\) chromosome copies, giving frequencies \(0.30\), \(0.20\), \(0.10\), and \(0.40\), respectively. Thus \(p_A=0.30+0.20=0.50\), \(p_a=0.50\), \(p_B=0.30+0.10=0.40\), and \(p_b=0.20+0.40=0.60\).

For a check, the expected marginal genotype frequencies at the first locus are

$$ P(AA)=p_A^2=(0.50)^2=0.25,\quad P(Aa)=2p_Ap_a=2(0.50)(0.50)=0.50,\quad P(aa)=p_a^2=(0.50)^2=0.25. $$

At the second locus they are

$$ P(BB)=(0.40)^2=0.16,\quad P(Bb)=2(0.40)(0.60)=0.48,\quad P(bb)=(0.60)^2=0.36. $$

For example, the full two-locus random-pairing calculation gives \(P(AABB)=0.09\), \(P(AABb)=0.12\), and \(P(AAbb)=0.04\), which sum to \(P(AA)=0.25\). It gives \(P(AaBB)=0.06\), \(P(AaBb)=0.28\), and \(P(Aabb)=0.16\), which sum to \(P(Aa)=0.50\). The remaining \(aa\) genotypes have frequencies \(0.01\), \(0.08\), and \(0.16\), summing to \(P(aa)=0.25\). These marginal sums agree with the allele frequencies used in the calculation.

Assumptions and a Common Mistake

The arithmetic for haplotype frequencies requires chromosome counts classified into the four haplotypes. In diploid data, this means the two-locus phase must be known for the chromosomes being counted. If phase is unknown, a two-locus genotype may be compatible with more than one haplotype pair; assigning a single pair without justification can give incorrect counts. The frequencies calculated from a sample are sample proportions. Interpreting them as estimates of population frequencies additionally depends on how the chromosomes were sampled.

The genotype calculation requires more than the counts: it assumes that paired chromosomes are independent draws from the stated haplotype pool. If the pairing process differs from that model, the calculated genotype frequencies are model expectations, not a description guaranteed to match the observed individuals. State this assumption before interpreting the expected values.

  • Wrong reasoning: “The frequencies of two diplotypes can be added only if they represent the same ordered chromosome pair.”
  • Correction: Genotypes combine all diplotypes that produce the same allele pair at each locus. For instance, both \(AB/ab\) and \(Ab/aB\) produce \(AaBb\), so their probabilities are added.
  • Another error to avoid: \(Ab/ab\) is not \(AaBb\). It produces \(Aabb\): the first-locus alleles are \(A,a\), and the second-locus alleles are \(b,b\).
  • Denominator check: If \(N\) diploid individuals contribute both chromosomes, divide each haplotype count by \(2N\), not by \(N\).
Key takeaway: Count chromosome copies to obtain the four haplotype frequencies, sum the appropriate haplotypes to get each marginal allele frequency, and use \(f_h^2\) or \(2f_hf_k\) for diplotype probabilities only under random pairing. Aggregate by genotype and verify the totals and marginals.

Check Your Understanding

Use the definitions and random-pairing assumption above to answer these questions.

  1. In a sample of 40 diploid individuals with both phased chromosomes counted, what is the denominator for the four haplotype frequencies?
  2. Suppose \(f_{AB}=0.25\), \(f_{Ab}=0.15\), \(f_{aB}=0.35\), and \(f_{ab}=0.25\). Calculate \(p_A\), \(p_a\), \(p_B\), and \(p_b\), and check both marginal sums.
  3. Under random pairing, what is the expected frequency of the unordered diplotype \(AB/ab\) if \(f_{AB}=0.30\) and \(f_{ab}=0.20\)?
  4. Which two diplotypes produce genotype \(AaBb\), and how are their probabilities combined?
  5. Explain why haplotype frequencies calculated from phased chromosomes do not, by themselves, guarantee that observed genotype frequencies equal the random-pairing expectations.
Clinical Biostats