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 (H0) states the population is in Hardy-Weinberg equilibrium. In a sample of 200 mice, the observed genotypic counts are 84 homozygous dominant (DD), 72 heterozygous (Dd), and 44 homozygous recessive (dd). Calculate the sample allele frequencies, the expected counts under Hardy-Weinberg equilibrium, and the resulting chi-square test statistic (χ2). Using a critical threshold value of χcrit2=3.841 at α=0.05 with 1 degree of freedom, state the explicit statistical decision regarding H0.
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 (H0) states the population is in Hardy-Weinberg equilibrium. In a sample of 200 mice, the observed genotypic counts are 84 homozygous dominant (DD), 72 heterozygous (Dd), and 44 homozygous recessive (dd). Calculate the sample allele frequencies, the expected counts under Hardy-Weinberg equilibrium, and the resulting chi-square test statistic (χ2). Using a critical threshold value of χcrit2=3.841 at α=0.05 with 1 degree of freedom, state the explicit statistical decision regarding H0.
Common Mistakes & Teacher Diagnosis
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 11
q2=20044=0.22⟹q=0.22≈0.469⟹p=1−0.469=0.531
Correctp=2(200)2(84)+72=400240=0.60, q=2(200)2(44)+72=400160=0.40
You calculated q by taking the square root of the homozygous recessive genotype frequency (q=0.22). When testing whether a population is in Hardy-Weinberg equilibrium, you cannot assume equilibrium holds. You must determine p and q by directly counting alleles across all observed individuals.
Made a similar mistake?Check my work on ACEpath → - Step 22
Expected DD=(0.531)2×200=56.39⟹Expected Dd=2(0.531)(0.469)×200=99.61⟹Expected dd=(0.469)2×200=44.00
CorrectE(DD)=(0.60)2×200=72.0, E(Dd)=2(0.60)(0.40)×200=96.0, E(dd)=(0.40)2×200=32.0
Your formulas for expected counts (p2N, 2pqN, q2N) were applied correctly, but the resulting numbers are off because they inherited the incorrect allele frequencies from Step 1.
- Step 33
χ2=56.39(84−56.39)2+99.61(72−99.61)2+44.00(44−44.00)2=13.52+7.65+0=21.17
Correctχ2=72.0(84−72.0)2+96.0(72−96.0)2+32.0(44−32.0)2=2.00+6.00+4.50=12.50
You set up and evaluated the chi-square sum ∑E(O−E)2 properly based on your values, but the total was distorted by your expected counts. Notice how setting q=freq(dd) artificially forced (O−E) for dd to be zero.
- Step 44
21.17>3.841, so reject H0
CorrectBecause χ2=12.50>3.841, reject H0
You correctly compared your test statistic against the critical value χcrit2=3.841 and reached the correct rejection decision, though your test statistic value of 21.17 was incorrect.
WHAT YOU DID WELL
Compliments from Your TeacherYou correctly used the Hardy-Weinberg expected genotype proportion formulas p2, 2pq, and q2.
You set up each term of the chi-square formula E(O−E)2 correctly.
You accurately compared your test statistic against the critical value 3.841 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 q=freq(dd). When investigating whether a population is evolving or in equilibrium, you must calculate allele frequencies using direct allele counting (p=2N2NDD+NDd), not genotype frequency square roots.
REASONING PATH
Your ACEpath teacher’s suggested approach- Allele Counting vs. Square Root Method
Only use q=freq(dd) when the problem explicitly states that the population is already in Hardy-Weinberg equilibrium. When testing for equilibrium using χ2, you must count individual alleles: p=2N2(DD)+Dd and q=2N2(dd)+Dd.
Always count total alleles in the gene pool (2N) first before calculating expected genotypic counts.
CORRECTED PATH
ACEpath Teacher's DemonstrationFind total alleles: 200×2=400.
Count D alleles: 2(84)+72=240⟹p=400240=0.60.
Count d alleles: 2(44)+72=160⟹q=400160=0.40.
Compute expected counts: E(DD)=0.602×200=72.0, E(Dd)=2(0.60)(0.40)×200=96.0, E(dd)=0.402×200=32.0.
Compute χ2: 72.0(84−72.0)2+96.0(72−96.0)2+32.0(44−32.0)2=2.00+6.00+4.50=12.50.
Allele frequencies: p=0.60, q=0.40; Expected counts: E(DD)=72.0, E(Dd)=96.0, E(dd)=32.0; χ2=12.50; Because 12.50>3.841, reject H0.
NEXT STEPS
Final Takeaways from Your TeacherReview the distinction between testing for equilibrium (count alleles directly) and applying equilibrium to estimate carrier frequencies (use q=q2).
Practice checking whether your calculated expected count E(dd) artificially equals the observed count O(dd), which is a telltale sign of using q=freq(dd).
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 11
Total alleles=2×200=400⟹p=4002×84+72=0.60⟹q=1−0.60=0.40
- Step 22
Expected DD=(0.60)2×200=72⟹Expected Dd=(0.60)(0.40)×200=48⟹Expected dd=(0.40)2×200=32
CorrectExpected DD=p2N=72.0⟹Expected Dd=2pqN=2(0.60)(0.40)(200)=96.0⟹Expected dd=q2N=32.0
You calculated the expected heterozygote count as pqN instead of 2pqN. Because heterozygous offspring can receive the D allele from either parent, their expected frequency is 2pq.
Made a similar mistake?Check my work on ACEpath → - Step 33
χ2=72(84−72)2+48(72−48)2+32(44−32)2=2+12+4.5=18.5
Correctχ2=72.0(84−72.0)2+96.0(72−96.0)2+32.0(44−32.0)2=2.00+6.00+4.50=12.50
Your chi-square calculation followed the correct formula, but using an expected heterozygote count of 48 instead of 96 inflated your middle term from 6.00 to 12.00.
- Step 44
18.5>3.841, so reject H0.
CorrectBecause χ2=12.50>3.841, reject H0.
Your statistical conclusion to reject H0 is qualitatively correct because both values exceed χcrit2, but your test statistic of 18.5 was derived from incorrect expected counts.
WHAT YOU DID WELL
Compliments from Your TeacherYou correctly counted alleles from diploid genotype numbers to determine p=0.60 and q=0.40.
You correctly applied the chi-square goodness-of-fit formula ∑E(O−E)2.
You correctly compared your calculated test statistic to the critical value of 3.841 to state a statistical decision.
THE ERROR
Where Your ACEpath Teacher Spotted the MistakeYou calculated expected heterozygotes using pq×N rather than 2pq×N.
WHY IT HAPPENED
ACEpath Teacher's DiagnosisConflating the probability of a single ordered combination (D from egg, d from sperm) with the total diploid heterozygote genotype frequency, which accounts for both parental combinations (2pq).
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: E(DD)+E(Dd)+E(dd)=N.
Notice that 72+48+32=152=200. Catching this discrepancy immediately alerts you to the missing 2pq term.
- Binomial Expansion Rule
Random union of gametes follows (p+q)2=p2+2pq+q2=1.
Always write out 2pq explicitly before substituting values for the heterozygous class.
CORRECTED PATH
ACEpath Teacher's DemonstrationRecalculate expected heterozygotes: E(Dd)=2pq×N=2(0.60)(0.40)(200)=96.0.
Verify total expected individuals: 72.0+96.0+32.0=200.0.
Recalculate the middle chi-square term: 96.0(72−96.0)2=96.0(−24.0)2=96.0576.0=6.00.
Sum all three terms: χ2=2.00+6.00+4.50=12.50.
Allele frequencies: p=0.60, q=0.40; Expected counts: E(DD)=72.0, E(Dd)=96.0, E(dd)=32.0; χ2=12.50; Reject H0 because 12.50>3.841.
NEXT STEPS
Final Takeaways from Your TeacherAlways add your expected genotypic counts together before computing chi-square; if their sum does not equal your sample size N, re-check the 2pq term.
Practice calculating expected genotypic counts for two additional populations using the full binomial expansion.
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 11
Total alleles=400⟹p=(2×84+72)/400=0.60⟹q=(2×44+72)/400=0.40
- Step 22
Expected DD=(0.60)2×200=72⟹Expected Dd=2(0.60)(0.40)×200=96⟹Expected dd=(0.40)2×200=32
- Step 33
χ2=72(84−72)2+96(72−96)2+32(44−32)2=72144+96576+32144=2+6+4.5=12.5
- Step 44
Since χ2=12.5 is greater than 3.841, fail to reject H0.
CorrectBecause χ2=12.50>3.841, reject H0.
When the calculated test statistic exceeds the critical value (χ2>χcrit2), the discrepancy between observed and expected counts is too large to attribute to chance alone, so you must reject H0.
Made a similar mistake?Check my work on ACEpath →
WHAT YOU DID WELL
Compliments from Your TeacherYou correctly counted alleles from individual genotypes rather than assuming equilibrium to find p and q.
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 χcalc2>χcrit2 (or p<α), the difference is statistically significant, so reject H0. If χcalc2≤χcrit2 (or p≥α), fail to reject H0.
Compare χ2=12.5 to 3.841. Because 12.5>3.841, conclude that the observed counts deviate significantly from equilibrium and explicitly reject H0.
CORRECTED PATH
ACEpath Teacher's DemonstrationCompare the test statistic to the critical value: χ2=12.50>3.841.
Because the test statistic lies in the critical region (p<0.05), the deviation from expected Hardy-Weinberg values is statistically significant.
Conclude the statistical decision: reject H0.
Because χ2=12.50>3.841 (p<0.05), reject H0.
NEXT STEPS
Final Takeaways from Your TeacherMemorize the core decision rule: large test statistic means large deviation from null expectation, which means you reject H0.
Practice interpreting chi-square values on a distribution curve showing the rejection region in the right tail.
Foundational Rules & Step-by-Step Breakdown
Calculate the Allele Frequencies (p and q)
Each diploid individual carries two alleles at the Mc1r locus, giving a total gene pool of: Total alleles=200×2=400
Count the copies of the dominant allele D:
- Each DD individual has 2 copies: 84×2=168
- Each Dd individual has 1 copy: 72×1=72
- Total D alleles =168+72=240
p=freq(D)=400240=0.60
Count the copies of the recessive allele d (or calculate q=1−p):
- Each dd individual has 2 copies: 44×2=88
- Each Dd individual has 1 copy: 72×1=72
- Total d alleles =88+72=160
q=freq(d)=400160=0.40
Common Pitfall: Never calculate q as freq(dd) 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 p2+2pq+q2=1:
- Expected frequency of DD: p2=(0.60)2=0.36 E(DD)=0.36×200=72.0
- Expected frequency of Dd: 2pq=2⋅(0.60)⋅(0.40)=0.48 E(Dd)=0.48×200=96.0
- Expected frequency of dd: q2=(0.40)2=0.16 E(dd)=0.16×200=32.0
Compute the Chi-Square Statistic (χ2)
Use the formula: χ2=∑E(O−E)2
| Genotype | Observed (O) | Expected (E) | O−E | (O−E)2 | E(O−E)2 |
|---|---|---|---|---|---|
| DD | 84 | 72.0 | +12.0 | 144.0 | 72.0144.0=2.00 |
| Dd | 72 | 96.0 | −24.0 | 576.0 | 96.0576.0=6.00 |
| dd | 44 | 32.0 | +12.0 | 144.0 | 32.0144.0=4.50 |
Summing the terms across all genotypes: χ2=2.00+6.00+4.50=12.50
Compare with Critical Value and State Decision
- Calculated test statistic: χ2=12.50
- Critical value (α=0.05, df=1): χcrit2=3.841
Because χ2=12.50>3.841 (p<0.05), the observed genotype distribution differs significantly from Hardy-Weinberg expectations. Therefore, reject H0. The population is not in Hardy-Weinberg equilibrium at this locus, providing evidence that evolutionary forces (such as natural selection) are actively operating.
Check Final Answer
Allele frequencies: p=0.60, q=0.40
Expected counts: E(DD)=72.0, E(Dd)=96.0, E(dd)=32.0
χ2=12.50
Because χ2=12.50>3.841 (p<0.05), reject H0.
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 p and q?
Count alleles directly from observed genotypes: p=2N2(AA)+Aa and q=2N2(aa)+Aa. Never assume equilibrium by taking q=freq(aa).
Similar Questions & Related Knowledge
Similar Questions
A sample of 100 plants contains 49 individuals with genotype AA, 42 with Aa, and 9 with aa. Calculate the sample allele frequencies p and q by direct allele counting, and determine the expected counts under Hardy-Weinberg equilibrium.
Answer
p=2002(49)+42=200140=0.70 and q=1−0.70=0.30. Expected counts: E(AA)=0.702×100=49.0, E(Aa)=2(0.70)(0.30)×100=42.0, and E(aa)=0.302×100=9.0.
A population of 500 butterflies has observed genotype counts of 180 BB, 140 Bb, and 180 bb. Calculate the allele frequencies p and q using direct counting, find the expected genotype counts under Hardy-Weinberg equilibrium, and compute the chi-square statistic χ2.
Answer
Total alleles =1000. Dominant allele count =2(180)+140=500, so p=0.50 and q=0.50. Expected counts: E(BB)=0.25×500=125.0, E(Bb)=0.50×500=250.0, E(bb)=0.25×500=125.0. χ2=125(180−125)2+250(140−250)2+125(180−125)2=24.2+48.4+24.2=96.8.
An isolated island population of 250 lizards has 130 homozygous banded (TT), 40 heterozygous banded (Tt), and 80 homozygous unbanded (tt). Test whether this locus is in Hardy-Weinberg equilibrium at α=0.05 (critical value χcrit2=3.841, df=1). State the allele frequencies, expected counts, χ2 value, and your statistical decision.
Answer
Total alleles =500. p=5002(130)+40=500300=0.60; q=5002(80)+40=500200=0.40. Expected counts: E(TT)=0.36×250=90.0, E(Tt)=0.48×250=120.0, E(tt)=0.16×250=40.0. χ2=90(130−90)2+120(40−120)2+40(80−40)2=17.78+53.33+40.00=111.11. Because χ2=111.11>3.841, reject H0; the population is not in Hardy-Weinberg equilibrium.
Related Knowledge
- 01Evidence to support or evaluate evolutionary explanations
- 02Explain natural selection
- 03Explain that evolution occurs in populations, not individuals
- 04Differentiate adaptation, variation and selection pressures
- 05Identify fossil, anatomical, developmental, and molecular evidence
- 06Use the Hardy-Weinberg Principle to Analyze Gene Frequencies