Skip to content

Testing for evolution with Hardy-Weinberg data

State the Hardy-Weinberg null hypothesis, calculate p, q, expected genotype counts and chi-square from observed counts, decide with 1 degree of freedom, and identify which condition fails when the null is rejected.

It opens on

A population has 98 AA, 84 Aa and 18 aa: does it fit Hardy-Weinberg equilibrium, yes or no?

Why it matters

AP Biology asks you to test whether genotype counts fit Hardy-Weinberg, to say "fail to reject" or "reject" with the numbers, and to use allele frequencies across generations as evidence of evolution (CED 7.5, skills 5.C and 5.D).

Good to know first

  • Hardy-Weinberg equations (p + q = 1 and p² + 2pq + q² = 1)
  • the chi-square test (sum of (o − e)² / e, compared with a critical value)
  • null hypothesis and degrees of freedom

Step by step

  1. Null, allele counts and expected counts

    State the null hypothesis, count alleles to find p and q, and calculate the expected genotype counts.

    Count alleles, 2 for each AA and 1 for each Aa: p = (2 × 80 + 100) / 400 = 0.65.

    A common mix-up

    To get p, divide the number of AA by the population size.

    In fact: Count alleles: p = (2 AA + Aa) / 2N.

  2. Chi-square and the decision

    Calculate chi-square for the three genotype classes, state df = 1, and decide whether to reject the null.

    AA: (80 − 84.5)² / 84.5 = 20.25 / 84.5 = 0.24.

    A common mix-up

    If the data fit Hardy-Weinberg, the population is definitely not evolving at all.

    In fact: Failing to reject means no evidence of evolution at this locus now, not proof.

  3. Generations and the cause

    Use allele frequencies across generations as evidence of evolution and choose the violated condition from the pattern.

    Describe the pattern: the frequency of B falls at each survey, in one direction.

    A common mix-up

    Any departure from Hardy-Weinberg means natural selection.

    In fact: List the five conditions and use the biology to choose which fails.

Try it

A sample of 100 has 40 AA, 40 Aa and 20 aa. Calculate p.Answer

p = (2 × 40 + 40) / 200 = 0.6

Hint: Count alleles; 200 in all

A sample of 100 has 50 AA, 40 Aa and 10 aa, with p = 0.7 and expected counts 49, 42 and 9. Calculate chi-square and decide at 3.84.Answer

0.02 + 0.10 + 0.11 = 0.23, below 3.84, so fail to reject the null

Hint: (50 − 49)² / 49 first

Allele frequencies in a small isolated population wander up and down at random. Which condition is violated?Answer

A very large population; random change in a small population is drift

Hint: Is the change in one direction?

A population of 98 AA, 84 Aa and 18 aa has p = 0.7; does it fit equilibrium?Answer

Yes; the expected counts are exactly 98, 84 and 18.

What is the decision at p = 0.05, with critical value 3.84?Answer

1.96 is below 3.84, so fail to reject the null.

Testing for evolution with Hardy-Weinberg data

30 minutes every month. No card.