Chapter 18 - Introduction to Genetic Analysis (12th ed.)
Center for Quantitative Genetics and Genomics
Aarhus University
2026-03-27
Population genetics explains how evolutionary processes shape patterns of genetic variation and their consequences.
→
→
What Is a Population?
A population is defined by gene exchange and a shared contribution to future generations.
What Is Population Genetics?
Driven by evolutionary forces:
Focus: how evolutionary forces shape allele frequencies across generations.
1. Detecting Genetic Variation
2. Gene Pool & Hardy–Weinberg
3. Mating Systems & Inbreeding
4. Measurement of Genetic Variation
5. Evolutionary Forces
DNA variation occurs at specific genomic locations
Humans are diploid
→ two alleles at each autosomal locus
At a locus, individuals may carry different alleles.
Major types of genetic variation
SNPs
Microsatellites (STRs)
SNPs → abundant and relatively stable
Microsatellites → highly variable
Figure 18-1. Aligned DNA sequences from seven chromosomes. Asterisks indicate SNPs. Indels and a microsatellite region are also shown.
Genomic technologies allow measurement of variation at thousands to millions of loci.
Marker-based genotyping
Sequencing-based approaches
Large genotype datasets across many loci form the foundation of population genetic analysis.

Figure 18-2. Microarray for SNP genotyping
After genotyping, data are organized into an n × m matrix.
Common SNP Coding (biallelic loci)
| Code | Genotype |
|---|---|
| 0 | Homozygous reference |
| 1 | Heterozygous |
| 2 | Homozygous alternative |
| SNP₁ | SNP₂ | SNP₃ | … | |
|---|---|---|---|---|
| Ind₁ | 0 | 1 | 2 | |
| Ind₂ | 1 | 1 | 0 | |
| Ind₃ | 2 | 0 | 1 | |
| … |
Biological data → Numerical matrix → Statistical analysis
Loci are arranged along chromosomes.
These allele combinations on a single chromosome are called haplotypes.
Definition:
A haplotype = a set of alleles at multiple loci
located on the same chromosome copy.
Example: Two linked loci
Possible haplotypes: AB, Ab, aB, ab
Phase
The same genotype can correspond to different phases.
Mother
Haplotype 1: A ─── B
Haplotype 2: a ─── b
Father
Haplotype 1: A ─── b
Haplotype 2: a ─── B
Transmitted haplotypes remain intact.
Example offspring:
A ─── B
a ─── B
Haplotypes: A B / a B
Genotype: A a B B
Recombination creates new haplotypes.
Example recombinant haplotypes:
A ─── b
a ─── B
New allele combinations become possible.

Figure 18-4.
(a) Six haplotypes (A–F) from aligned DNA sequences.
(b) Haplotype network showing mutational relationships.

Figure 18-6 Human mitochondrial DNA haplotype network mapped globally.

Figure 18-7. A Frog Gene Pool
Gene pool = total collection of alleles
in a population at a given time.
Population size: N = 16 (diploid)
Total alleles at one locus: 2N = 32
Genotype counts:
Allele counts:
- 18 A
- 14 a
Definition
Genotype frequency = proportion of individuals
with a given genotype.
For a diploid locus with alleles A and a:
\[ f(AA) = \frac{\#AA}{N} \]
\[ f(Aa) = \frac{\#Aa}{N} \]
\[ f(aa) = \frac{\#aa}{N} \]
Genotype frequencies sum to 1:
\[ f(AA) + f(Aa) + f(aa) = 1 \]
Example (N = 16 frogs)
Counts:
Frequencies:
\[ f(AA) = \frac{5}{16} = 0.31 \]
\[ f(Aa) = \frac{8}{16} = 0.50 \]
\[ f(aa) = \frac{3}{16} = 0.19 \]
Check: \[ 0.31 + 0.50 + 0.19 = 1 \]
Definition
Instead of counting genotypes, we count alleles.
For a diploid population:
\[ \text{Total alleles} = 2N \]
Let:
Then:
\[ p = \frac{\#A}{2N} \qquad q = \frac{\#a}{2N} \]
Allele frequencies sum to 1:
\[ p + q = 1 \]
Example (N = 16 frogs)
Total alleles:
\[ 2N = 2 \times 16 = 32 \]
Allele counts:
Frequencies:
\[ p = \frac{18}{32} = 0.56 \]
\[ q = \frac{14}{32} = 0.44 \]
Check: \[ 0.56 + 0.44 = 1 \]
Hardy–Weinberg Law
If mating is random:
\[ f(AA) = p^2 \]
\[ f(Aa) = 2pq \]
\[ f(aa) = q^2 \]
\[ p^2 + 2pq + q^2 = 1 \]
If Hardy–Weinberg assumptions hold, allele frequencies remain constant across generations and the population is in equilibrium.
Why does this work?
Allele frequency = probability of drawing that allele from the gene pool.
Let:
Under random union of gametes:
\[ f(AA) = p \times p = p^2 \]
\[ f(aa) = q \times q = q^2 \]
\[ f(Aa) = p q + q p = 2pq \]
Hardy–Weinberg applies only if:
These conditions define the null model.
Violations occur when:
Deviations from Hardy–Weinberg
indicate evolutionary forces are acting.
Mathematical relationship
At a locus with alleles A and a:
Let genotype frequencies be:
\[ f(AA), \quad f(Aa), \quad f(aa) \]
Then allele frequencies are:
\[ p = f(AA) + \tfrac{1}{2} f(Aa) \]
\[ q = f(aa) + \tfrac{1}{2} f(Aa) \]
\[ p + q = 1 \]
Intuition
Each individual carries two alleles.
Heterozygotes contribute half to each allele.
Allele frequencies are weighted averages
of genotype frequencies.
Hardy–Weinberg Test (Theory Template)
| A/A | A/G | G/G | Sum | |
|---|---|---|---|---|
| Observed number (\(O\)) | \(N_{AA}\) | \(N_{AG}\) | \(N_{GG}\) | \(N\) |
| Observed frequency | \(\dfrac{N_{AA}}{N}\) | \(\dfrac{N_{AG}}{N}\) | \(\dfrac{N_{GG}}{N}\) | \(1\) |
| Expected frequency | \(p^2\) | \(2pq\) | \(q^2\) | \(1\) |
| Expected number (\(E\)) | \(Np^2\) | \(N(2pq)\) | \(Nq^2\) | \(N\) |
| \(\chi^2\) contribution | \(\dfrac{(N_{AA}-E_{AA})^2}{E_{AA}}\) | \(\dfrac{(N_{AG}-E_{AG})^2}{E_{AG}}\) | \(\dfrac{(N_{GG}-E_{GG})^2}{E_{GG}}\) | \(\chi^2\) |
Estimated frequency of allele A
\[ p = \frac{2n_{AA} + n_{AG}}{2N} \]
The frequency of allele G:
\[ q = 1 - p \]
since \(p + q = 1\).
Example: SNP rs9272426 (HLA-DQA1)
| A/A | A/G | G/G | Sum | |
|---|---|---|---|---|
| Observed number | 17 | 55 | 12 | 84 |
| Observed frequency | 0.202 | 0.655 | 0.143 | 1 |
| Expected frequency | 0.281 | 0.498 | 0.221 | 1 |
| Expected number | 23.574 | 41.851 | 18.574 | 84 |
| \(\chi^2\) contribution | 1.833 | 4.131 | 2.327 | 8.29 |
Allele frequency:
\[ p = \frac{2n_{AA}+n_{AG}}{2N} = \frac{2\cdot17 + 55}{2\cdot84} = 0.53, \quad q = 0.47 \] HWE Test:
\[ \chi^2 = 8.29, \quad df = 1, \quad p = 0.004 \] Since \(p < 0.05\), the SNP deviates from Hardy–Weinberg equilibrium.
Computation
We test whether observed genotype counts deviate from Hardy–Weinberg expectations.
For each genotype class:
\[ \chi^2_i = \frac{(O - E)^2}{E} \]
Total test statistic:
\[ \chi^2 = \sum \frac{(O - E)^2}{E} \]
Inference
Compare \(\chi^2\) to the chi-square distribution with 1 degree of freedom for a biallelic locus.
If \(\chi^2\) exceeds the critical value → reject HWE.
Significant deviation suggests:
Random mating (HWE assumption)
If random mating holds:
If mating is not random
Hardy–Weinberg proportions may fail.
Common causes:
Non-random mating primarily alters
genotype frequencies.
Positive assortative mating
Effect:
Negative assortative mating
Effect:
Major Histocompatibility Complex (MHC)
Evolutionary consequence
Example: HLA-DQA1 (Tuscany sample) shows heterozygote excess
| A/A | A/G | G/G | Sum | |
|---|---|---|---|---|
| Observed number | 17 | 55 | 12 | 84 |
| Observed frequency | 0.202 | 0.655 | 0.143 | 1 |
| Expected frequency | 0.281 | 0.498 | 0.221 | 1 |
| Expected number | 23.574 | 41.851 | 18.574 | 84 |
| \(\chi^2\) contribution | 1.833 | 4.131 | 2.327 | 8.29 |
Isolation by distance
Population structure
If pooled:
→ Excess of homozygotes
→ Wahlund effect

Figure 18-11
\(\Rightarrow\) Geographic variation creates
population structure
Local HWE ≠ global HWE
Definition
Inbreeding = mating between relatives.
Because relatives share alleles from common ancestors, offspring are more likely to inherit two identical copies of an allele.
Genetic consequences:
Key concept:
Inbreeding increases homozygosity.
Biological consequences
However, in some species inbreeding can be advantageous:
The effects depend on ecological context.

Consider the half-sib pedigree in Figure 18-12:
A has two gene copies:
I is inbred because there is a closed ancestral loop.
If I’s two alleles trace back to the same physical gene copy in A, they are identical by descent (IBD).
The probability of this event is the inbreeding coefficient, \(F_I\).

Figure 18-13 Frequency of genetic disorders among children of unrelated parents (blue columns) compared to that of children of parents who are first cousins (red columns with diagonal lines). [Data from C. Stern, Principles of Human Genetics, W. H. Freeman, 1973.]

Figure 18-13
Increase in inbreeding coefficient (\(F\)) over generations for different population sizes (\(N\)).
Smaller \(N\) \(\Rightarrow\) Faster increase in \(F\)
Let:
Under inbreeding, genotype frequencies are:
\[ f(AA) = p^2 + Fpq \]
\[ f(Aa) = 2pq(1 - F) \]
\[ f(aa) = q^2 + Fpq \]
Interpretation
If \(F = 0\) → Hardy–Weinberg
If \(F = 1\) → Complete homozygosity
Allele frequencies remain:
\[ p + q = 1 \]
| Mechanism | Changes Allele Frequencies? | Changes Genotype Frequencies? | Typical Pattern |
|---|---|---|---|
| Positive assortative mating | No | Yes | Excess homozygotes |
| Negative assortative mating | No | Yes | Excess heterozygotes |
| Inbreeding | No (initially) | Yes | Excess homozygotes |
| Isolation by distance | Yes (across space) | Yes | Gradual geographic structure |
| Population subdivision | Yes (between groups) | Yes | Wahlund effect |
How do we quantify DNA variation?
For a DNA region:
Segregating sites (\(S\))
Number of polymorphic nucleotide positions
Number of haplotypes (\(H\))
Distinct sequence types observed
Allele frequencies (\(p_i\))
Gene diversity (expected heterozygosity)
\[ GD = 1 - \sum p_i^2 \]
Probability that two alleles differ
Nucleotide diversity (\(\pi\))
Average pairwise nucleotide differences per site
Example: G6PD (5102 bp)
| Measure | Total | Africans | Non-Africans |
|---|---|---|---|
| Sample size | 47 | 16 | 31 |
| Segregating sites | 18 | 14 | 7 |
| Haplotypes | 12 | 9 | 6 |
| Gene diversity | 0.22 | 0.47 | 0.00 |
| Nucleotide diversity (\(\pi\)) | 0.0006 | 0.0008 | 0.0002 |
Africans show higher genetic diversity.

Figure 18-15
Levels of nucleotide diversity
at synonymous (silent) sites
in diverse organisms.
Key pattern:
Fundamental evolutionary forces
Mutation
Generates new alleles
Migration (gene flow)
Moves alleles between populations
Recombination
Reshuffles alleles into new haplotypes
Genetic drift
Random sampling in finite populations
Selection
Differential reproductive success
What these forces determine
Together, these forces determine
the evolutionary trajectory of populations.
Mutation: the origin of new alleles
Mutation introduces new genetic variation into the gene pool.
Typical rates:
Genome scale:
Estimating mutation rates
Pedigree-based sequencing:
Because mutations are rare, large numbers of nucleotides must be sequenced to estimate \(\mu\) accurately.
Migration (gene flow)
Movement of individuals or gametes
between populations that reproduce successfully.
Consequences:
Genetic admixture
Gene flow between previously separated populations.
Admixture is the genomic signature of migration.

Figure 18-16. Genetic admixture in individuals of mixed ancestry (South Africa).
Each vertical bar represents one individual.
Colors indicate genomic segments inherited
from different ancestral populations.
Admixture reflects historical migration
and interbreeding between populations.
Parental haplotypes (before recombination)
Consider two linked loci:
Suppose the original haplotypes are:
Because the loci are physically close, these allele combinations are often inherited together.
Recombinant haplotypes (after crossover)
A crossover between loci A and B can generate:
Recombination:
Over time, recombination reshapes associations between loci.
Linkage equilibrium
Two loci are in linkage equilibrium
when alleles combine independently.
If independent:
\[ P_{AB} = p_A p_B \]
The haplotype frequency
equals the product of allele frequencies.
Linkage disequilibrium (LD)
If:
\[ P_{AB} \neq p_A p_B \]
alleles are associated non-randomly
across loci.
Measuring LD
For two biallelic loci (A/a and B/b):
Define:
\[ D = P_{AB} - p_A p_B \]
Interpretation:
\(D\) measures the magnitude and direction
of statistical association between loci.
How LD arises
LD arises when alleles become associated
non-randomly across loci.
Common causes:
A new mutation appears on a single chromosome
→ initially in strong LD with nearby alleles
Migration (admixture) mixes populations
with different haplotype frequencies
Genetic drift in finite populations
New alleles typically begin in LD
with their chromosomal background.
LD decay by recombination
Recombination breaks down
non-random associations.
Let \(r\) = recombination fraction between loci.
\[ D_{t+1} = (1-r)D_t \]
Over generations:
\[ D_t = (1-r)^t D_0 \]

Figure 18-18
Simulations of random genetic drift
Each colored line = one simulated population
tracked for 30 generations.
Hardy–Weinberg assumes an infinitely large population.
Real populations are finite.
In finite populations, allele frequencies change by chance:
Random genetic drift
Natural selection
Individuals with certain heritable traits
are more likely to survive and reproduce.
Key ingredients:
Evolution = change in allele frequencies over generations.
Fitness
Darwinian fitness = reproductive success.
Absolute fitness (\(W\)):
Expected number of offspring produced.
Relative fitness (\(w\)):
Fitness relative to the most successful genotype.
Example:
If the most successful genotype produces 10 offspring:
Selection acts through differences in fitness.
Genotype fitnesses
| Genotype | Relative fitness (\(w\)) |
|---|---|
| A/A | 1.0 |
| A/a | 1.0 |
| a/a | 0.5 |
Allele A is beneficial and dominant.
Only \(a/a\) individuals have reduced fitness.
Effect on allele frequency
After selection:
Result:
Selection reduces the frequency
of the low-fitness genotype.

Figure 18-21
Change in allele frequency over time for:
Both alleles increase due to natural selection, but at different rates.
For two alleles A and a:
Genotype fitnesses:
\[ w_{AA}, \quad w_{Aa}, \quad w_{aa} \]
Mean fitness:
\[ \bar{w} = p^2 w_{AA} + 2pq w_{Aa} + q^2 w_{aa} \]
Allele frequency in next generation:
\[ p' = \frac{p^2 w_{AA} + pq\, w_{Aa}}{\bar{w}} \]
If \(w_{AA}\) and \(w_{Aa}\) are high → allele A increases
If \(w_{aa}\) is low → allele a decreases
Selection changes allele frequencies
through differences in reproductive success.
| Genotype | HW freq | Fitness (\(w\)) | After selection | Normalized freq (\(f'\)) |
|---|---|---|---|---|
| A/A | 0.01 | 1.0 | 0.01 | 0.017 |
| A/a | 0.18 | 1.0 | 0.18 | 0.303 |
| a/a | 0.81 | 0.5 | 0.405 | 0.681 |
Assume initial allele frequencies:
\[ p = 0.10, \qquad q = 0.90 \]
Under Hardy–Weinberg:
\[ p^2 = 0.01,\quad 2pq = 0.18,\quad q^2 = 0.81 \]
Mean fitness:
\[ \bar{w} = 0.01 + 0.18 + 0.405 = 0.595 \]
New Allele Frequency
\[ p' = f'(AA) + \tfrac12 f'(Aa) \]
\[ p' = 0.017 + 0.152 = 0.169 \]
\[ 0.10 \rightarrow 0.17 \]
Interpretation
Selection changes allele frequencies
through differential reproductive success.
Natural selection
Directional selection
Balancing selection
Artificial selection
Selection imposed by humans.
Examples:
Artificial selection = natural selection
directed by humans.

Figure 18-22
Haplotypes before and after
a beneficial allele (red)
sweeps to fixation.
After selection:

Figure 18-23. Gene diversity near the SLC24A5 locus on chromosome 15.
Gene diversity is strongly reduced in Europeans
around the SLC24A5 locus.
This pattern is consistent with
a recent selective sweep.
| Gene | Trait / Function | Population(s) |
|---|---|---|
| G6PD | Malaria resistance | African populations |
| HBB (β-globin) | Malaria resistance (sickle-cell trait) | African, Mediterranean, South Asian populations |
| CCR5 | Reduced susceptibility to HIV | European populations |
| LCT | Lactase persistence (milk digestion) | European and some African populations |
| SLC24A5 | Skin pigmentation | European populations |
| MHC | Infectious disease resistance | Multiple populations |
These genes show evidence of recent natural selection.

Figure 18-24
Number of SNPs along chromosome 6.
The MHC region shows a pronounced spike
of unusually high genetic diversity.
Key idea:
Balancing selection can maintain multiple alleles at a locus.
Neutral Variation: Mutation vs Drift
In small populations:
In large populations:
Key idea:
Genetic diversity reflects a balance between mutation and drift.
Deleterious Alleles: Mutation vs Selection
Even harmful alleles persist at low frequency
because mutation never stops.
Stronger selection → lower frequency
Higher mutation rate → higher frequency
Key idea:
Mutation prevents genetic variation from disappearing completely.
Real-world applications
Population genetics informs:
Core principles applied
These applications rely on:
Population genetics connects
DNA variation → population patterns → real-world decisions.
When population size declines:
Consequences:
Key question:
Should conservation programs
minimize inbreeding
or allow inbreeding to purge deleterious alleles?
Theoretical argument:
Empirical evidence:
Population genetics allows us to:
Using Hardy–Weinberg equilibrium:
Under Hardy–Weinberg:
Effect of inbreeding:
\[ \text{Homozygote frequency} = q^2 + Fpq \]
DNA identification relies on:
Microsatellite markers (STRs)
Highly polymorphic, multi-allelic loci
Population allele frequencies
Estimated from reference databases
Hardy–Weinberg equilibrium
Used to calculate genotype probabilities
Multiple independent loci are analyzed
to increase discriminatory power.
We evaluate the random match probability:
\[ P(\text{match} \mid \text{unrelated individual}) \]
This is the probability that a random person
would share the same DNA profile.
Assuming independence across loci:
Very small probability → strong statistical evidence
What We Observe
Represent measurable genetic patterns.
The Null Model
Hardy–Weinberg equilibrium
Deviations indicate evolutionary forces.
Evolutionary Forces
Change in allele frequencies over time
What These Forces Shape
Population genetics connects patterns → processes → consequences