Resources
An AP Biology student investigates whether natural selection is actively altering allele frequencies at the pocket mouse (Chaetodipus intermedius) Mc1r locus on a dark basalt lava flow. The null hypothesis () states the population is in Hardy-Weinberg equilibrium. In a sample of mice, the observed genotypic counts are homozygous dominant (), heterozygous (), and homozygous recessive (). Calculate the sample allele frequencies, the expected counts under Hardy-Weinberg equilibrium, and the resulting chi-square test statistic (). Using a critical threshold value of at with , state the explicit statistical decision regarding .
Answer and steps
Final answer
Allele frequencies: , ; Expected counts: , , ; ; Because (), reject .
Steps
Calculate the Allele Frequencies ( and )
Each diploid individual carries two alleles at the Mc1r locus, giving a total gene pool of:
Count the copies of the dominant allele :
- Each individual has copies:
- Each individual has copy:
- Total alleles
Count the copies of the recessive allele (or calculate ):
- Each individual has copies:
- Each individual has copy:
- Total alleles
Common Pitfall: Never calculate as unless you already know the population is in Hardy-Weinberg equilibrium. In a test for equilibrium, you must determine allele frequencies directly from observed genotype counts by counting alleles.
Calculate Expected Genotype Counts under Hardy-Weinberg Equilibrium
According to the Hardy-Weinberg principle, expected genotype frequencies are given by :
- Expected frequency of :
- Expected frequency of :
- Expected frequency of :
Compute the Chi-Square Statistic ()
Use the formula:
Summing the terms across all genotypes:
Compare with Critical Value and State Decision
- Calculated test statistic:
- Critical value (, ):
Because (), the observed genotype distribution differs significantly from Hardy-Weinberg expectations. Therefore, reject . The population is not in Hardy-Weinberg equilibrium at this locus, providing evidence that evolutionary forces (such as natural selection) are actively operating.
Typical errors
01 The student mistakenly assumes the population is already in Hardy-Weinberg equilibrium and calculates q by taking the square root of the homozygous recessive genotype frequency rather than counting alleles directly from the sample.
Sample Student Work
Reviewed by ACEpath TeacherStep-by-Step Review
Walk Through It with Your Teacher- Step 1Correct
,
You calculated by taking the square root of the homozygous recessive genotype frequency (). When testing whether a population is in Hardy-Weinberg equilibrium, you cannot assume equilibrium holds. You must determine and by directly counting alleles across all observed individuals.
- Step 2Correct
, ,
Your formulas for expected counts (, , ) were applied correctly, but the resulting numbers are off because they inherited the incorrect allele frequencies from Step 1.
- Step 3Correct
You set up and evaluated the chi-square sum properly based on your values, but the total was distorted by your expected counts. Notice how setting artificially forced for to be zero.
- Step 4
, so reject
CorrectBecause , reject
You correctly compared your test statistic against the critical value and reached the correct rejection decision, though your test statistic value of was incorrect.
WHAT YOU DID WELL
Compliments from Your TeacherYou correctly used the Hardy-Weinberg expected genotype proportion formulas , , and .
You set up each term of the chi-square formula correctly.
You accurately compared your test statistic against the critical value to state the rejection decision.
THE ERROR
Where Your ACEpath Teacher Spotted the Mistakenone
WHY IT HAPPENED
ACEpath Teacher's DiagnosisYou assumed the population was already in Hardy-Weinberg equilibrium by setting . When investigating whether a population is evolving or in equilibrium, you must calculate allele frequencies using direct allele counting (), not genotype frequency square roots.
REASONING PATH
Your ACEpath teacher’s suggested approach- Allele Counting vs. Square Root Method
Only use when the problem explicitly states that the population is already in Hardy-Weinberg equilibrium. When testing for equilibrium using , you must count individual alleles: and .
Always count total alleles in the gene pool () first before calculating expected genotypic counts.
CORRECTED PATH
ACEpath Teacher's DemonstrationFind total alleles: .
Count alleles: .
Count alleles: .
Compute expected counts: , , .
Compute : .
Allele frequencies: , ; Expected counts: , , ; ; Because , reject .
02 The student forgets the factor of 2 in the heterozygous expected frequency (using pq instead of 2pq), causing the expected genotypic counts to not sum to the sample size and producing an inflated chi-square statistic.
Sample Student Work
Reviewed by ACEpath TeacherStep-by-Step Review
Walk Through It with Your Teacher- Step 1
- Step 2Correct
You calculated the expected heterozygote count as instead of . Because heterozygous offspring can receive the allele from either parent, their expected frequency is .
- Step 3Correct
Your chi-square calculation followed the correct formula, but using an expected heterozygote count of instead of inflated your middle term from to .
- Step 4
, so reject .
CorrectBecause , reject .
Your statistical conclusion to reject is qualitatively correct because both values exceed , but your test statistic of was derived from incorrect expected counts.
WHAT YOU DID WELL
Compliments from Your TeacherYou correctly counted alleles from diploid genotype numbers to determine and .
You correctly applied the chi-square goodness-of-fit formula .
You correctly compared your calculated test statistic to the critical value of to state a statistical decision.
THE ERROR
Where Your ACEpath Teacher Spotted the MistakeYou calculated expected heterozygotes using rather than .
WHY IT HAPPENED
ACEpath Teacher's DiagnosisConflating the probability of a single ordered combination ( from egg, from sperm) with the total diploid heterozygote genotype frequency, which accounts for both parental combinations ().
REASONING PATH
Your ACEpath teacher’s suggested approach- Sum of Expected Counts Check
In any Hardy-Weinberg test, the expected counts must sum to the total sample size: .
Notice that . Catching this discrepancy immediately alerts you to the missing term.
- Binomial Expansion Rule
Random union of gametes follows .
Always write out explicitly before substituting values for the heterozygous class.
CORRECTED PATH
ACEpath Teacher's DemonstrationRecalculate expected heterozygotes: .
Verify total expected individuals: .
Recalculate the middle chi-square term: .
Sum all three terms: .
Allele frequencies: , ; Expected counts: , , ; ; Reject because .
03 The student confuses the rejection rule for a hypothesis test and decides to fail to reject the null hypothesis because the test statistic exceeds the critical value.
Sample Student Work
Reviewed by ACEpath TeacherStep-by-Step Review
Walk Through It with Your Teacher- Step 1
- Step 2
- Step 3
- Step 4Correct
When the calculated test statistic exceeds the critical value (), the discrepancy between observed and expected counts is too large to attribute to chance alone, so you must reject .
WHAT YOU DID WELL
Compliments from Your TeacherYou correctly counted alleles from individual genotypes rather than assuming equilibrium to find and .
You accurately computed expected genotype frequencies and counts using the Hardy-Weinberg proportions.
You set up and evaluated the chi-square test statistic without any arithmetic errors.
THE ERROR
Where Your ACEpath Teacher Spotted the Mistakeno
WHY IT HAPPENED
ACEpath Teacher's DiagnosisYou inverted the rejection threshold rule for goodness-of-fit hypothesis testing, associating a large test statistic with accepting or failing to reject the null hypothesis rather than rejecting it.
REASONING PATH
Your ACEpath teacher’s suggested approach- Chi-Square Decision Rule
If (or ), the difference is statistically significant, so reject . If (or ), fail to reject .
Compare to . Because , conclude that the observed counts deviate significantly from equilibrium and explicitly reject .
CORRECTED PATH
ACEpath Teacher's DemonstrationCompare the test statistic to the critical value: .
Because the test statistic lies in the critical region (), the deviation from expected Hardy-Weinberg values is statistically significant.
Conclude the statistical decision: reject .
Because (), reject .
Lock it in
When a problem asks you to perform a chi-square test to determine if a population is in Hardy-Weinberg equilibrium, how should you find allele frequencies and ?
Count alleles directly from observed genotypes: and . Never assume equilibrium by taking .
Similar question
A sample of plants contains individuals with genotype , with , and with . Calculate the sample allele frequencies and by direct allele counting, and determine the expected counts under Hardy-Weinberg equilibrium.
Answer
and . Expected counts: , , and .
A population of butterflies has observed genotype counts of , , and . Calculate the allele frequencies and using direct counting, find the expected genotype counts under Hardy-Weinberg equilibrium, and compute the chi-square statistic .
Answer
Total alleles . Dominant allele count , so and . Expected counts: , , . .
An isolated island population of lizards has homozygous banded (), heterozygous banded (), and homozygous unbanded (). Test whether this locus is in Hardy-Weinberg equilibrium at (critical value , ). State the allele frequencies, expected counts, value, and your statistical decision.
Answer
Total alleles . ; . Expected counts: , , . . Because , reject ; the population is not in Hardy-Weinberg equilibrium.