An evolutionary geneticist samples Nobs=400 field mice from an agricultural enclosure to test whether a coat-color locus is evolving under natural selection or remaining in Hardy-Weinberg equilibrium (neutral drift and random mating). The observed counts are: 184 dark brown (A1A1), 172 intermediate brown (A1A2), and 44 light tan (A2A2). (a) Calculate the sample allele frequencies p=f(A1) and q=f(A2). (b) Calculate the expected genotype counts under Hardy-Weinberg equilibrium. (c) Compute the Pearson Chi-Square test statistic χ2=∑E(O−E)2 and, comparing against the critical value χcrit2=3.841 at α=0.05 with df=1, state the formal statistical conclusion.
An evolutionary geneticist samples Nobs=400 field mice from an agricultural enclosure to test whether a coat-color locus is evolving under natural selection or remaining in Hardy-Weinberg equilibrium (neutral drift and random mating). The observed counts are: 184 dark brown (A1A1), 172 intermediate brown (A1A2), and 44 light tan (A2A2). (a) Calculate the sample allele frequencies p=f(A1) and q=f(A2). (b) Calculate the expected genotype counts under Hardy-Weinberg equilibrium. (c) Compute the Pearson Chi-Square test statistic χ2=∑E(O−E)2 and, comparing against the critical value χcrit2=3.841 at α=0.05 with df=1, state the formal statistical conclusion.
Common Mistakes & Teacher Diagnosis
01 A student incorrectly assumes the population is already in Hardy-Weinberg equilibrium and calculates q by taking the square root of the frequency of homozygous recessives instead of using direct allele counting.
Sample Student Work
Reviewed by ACEpath TeacherStep-by-Step Review
Walk Through It with Your Teacher- Step 11
q=40044≈0.3317⟹p=1−q=1−0.3317=0.6683
Correctp=2(400)2(184)+172=0.675, q=2(400)2(44)+172=0.325
You calculated q by taking the square root of the homozygous frequency f(A2A2). That formula already assumes the population is in Hardy-Weinberg equilibrium (q2=f(A2A2)), which is the very hypothesis being tested. When all three genotype counts are known, you must find allele frequencies by direct allele counting.
Made a similar mistake?Check my work on ACEpath → - Step 22
E(A1A1)=0.66832×400=178.65⟹E(A1A2)=2×0.6683×0.3317×400=177.30⟹E(A2A2)=0.33172×400=44.01
CorrectE(A1A1)=0.6752×400=182.25⟹E(A1A2)=2(0.675)(0.325)×400=175.50⟹E(A2A2)=0.3252×400=42.25
Your method of multiplying the expected genotype frequencies p2, 2pq, and q2 by the total sample size N=400 was completely correct, but the values were affected by the inaccurate allele frequencies from Step 1.
- Step 33
χ2=178.65(184−178.65)2+177.30(172−177.30)2+44.01(44−44.01)2=0.318⟹χ2=0.318<3.841, fail to reject null hypothesis
Correctχ2=182.25(184−182.25)2+175.50(172−175.50)2+42.25(44−42.25)2≈0.159⟹χ2=0.159<3.841, fail to reject H0
You correctly applied the Pearson Chi-Square formula and drew the proper statistical decision relative to χcrit2=3.841, but your test statistic differed because of the propagated values from previous steps.
WHAT YOU DID WELL
Compliments from Your TeacherYou correctly applied the expected frequency expressions p2, 2pq, and q2 multiplied by total sample size N.
You correctly applied the Chi-Square formula ∑E(O−E)2.
You correctly compared your calculated test statistic against the critical value χcrit2=3.841 to state the decision.
THE ERROR
Where Your ACEpath Teacher Spotted the MistakeNo, this was a conceptual error in estimating allele frequencies rather than an arithmetic slip.
WHY IT HAPPENED
ACEpath Teacher's DiagnosisWhen conducting a Chi-Square goodness-of-fit test for Hardy-Weinberg equilibrium, calculating q=f(recessive) assumes the null hypothesis is true before testing it. Direct allele counting must be used whenever all three genotype classes are observed.
REASONING PATH
Your ACEpath teacher’s suggested approach- Allele Counting vs. Square Root Method
Use p=2N2N11+N12 whenever all genotypes are identifiable. Only use q=q2 when alleles exhibit complete dominance and heterozygous individuals cannot be distinguished from homozygous dominant individuals.
Check whether heterozygotes are explicitly counted in the data; if so, count alleles directly.
CORRECTED PATH
ACEpath Teacher's DemonstrationCount total alleles: 2N=2×400=800.
Count A1 alleles: 2(184)+172=540⟹p=800540=0.675.
Count A2 alleles: 2(44)+172=260⟹q=800260=0.325.
Compute expected counts: E(A1A1)=0.6752×400=182.25, E(A1A2)=2(0.675)(0.325)×400=175.50, E(A2A2)=0.3252×400=42.25.
Compute χ2=182.25(184−182.25)2+175.50(172−175.50)2+42.25(44−42.25)2≈0.0168+0.0698+0.0725=0.159.
(a) p=0.675, q=0.325; (b) E(A1A1)=182.25, E(A1A2)=175.50, E(A2A2)=42.25; (c) χ2≈0.159<3.841; fail to reject H0; the population is consistent with Hardy-Weinberg equilibrium.
NEXT STEPS
Final Takeaways from Your TeacherPractice identifying when all genotype classes are distinct (codominance/incomplete dominance) versus when dominant and heterozygous phenotypes are indistinguishable.
Recompute Chi-Square goodness-of-fit problems starting strictly from the direct allele counting formulas.
02 A student forgets the factor of 2 when calculating the expected number of heterozygotes under Hardy-Weinberg equilibrium, using pq instead of 2pq.
Sample Student Work
Reviewed by ACEpath TeacherStep-by-Step Review
Walk Through It with Your Teacher- Step 11
p=8002×184+172=800540=0.675⟹q=1−0.675=0.325
- Step 22
E(A1A1)=0.6752×400=182.25⟹E(A1A2)=0.675×0.325×400=87.75⟹E(A2A2)=0.3252×400=42.25
CorrectE(A1A1)=p2N=182.25, E(A1A2)=2pqN=2(0.675)(0.325)(400)=175.50, E(A2A2)=q2N=42.25
You calculated E(A1A2) as pqN=87.75 instead of 2pqN=175.50. Heterozygotes can form in two distinct reciprocal ways (A1 from the egg and A2 from the sperm, or vice versa), requiring the factor of 2.
Made a similar mistake?Check my work on ACEpath → - Step 33
χ2=182.25(184−182.25)2+87.75(172−87.75)2+42.25(44−42.25)2=80.98⟹χ2=80.98>3.841, reject null hypothesis; population is not in Hardy-Weinberg equilibrium
Correctχ2=182.25(184−182.25)2+175.50(172−175.50)2+42.25(44−42.25)2≈0.159⟹χ2=0.159<3.841, fail to reject H0; locus is in Hardy-Weinberg equilibrium
Your Chi-Square calculation and decision rule followed logically from your expected counts, but using E(A1A2)=87.75 falsely inflated χ2 from 0.159 to 80.98.
WHAT YOU DID WELL
Compliments from Your TeacherYou correctly calculated the total gene pool size as 2N=800 alleles.
You applied the allele-counting method accurately to find p=0.675 and q=0.325.
You computed the expected homozygote counts p2N and q2N accurately.
You set up the Pearson Chi-Square formula correctly using your computed expected counts.
THE ERROR
Where Your ACEpath Teacher Spotted the MistakeYou forgot to multiply by 2 when computing the expected frequency of the heterozygous genotype A1A2.
WHY IT HAPPENED
ACEpath Teacher's DiagnosisYou treated the heterozygous genotype probability as a simple conjunction of two alleles (p×q) rather than accounting for the two mutually exclusive gametic unions (pmaternal×qpaternal+qmaternal×ppaternal=2pq). Notice also that your expected counts summed to 182.25+87.75+42.25=312.25, which is well below the total sample size of N=400.
REASONING PATH
Your ACEpath teacher’s suggested approach- Sum of Expected Counts Check
The sum of expected counts across all genotype classes must always equal the total sample size: ∑Ei=N.
Always sum your expected values before calculating χ2. If E(A1A1)+E(A1A2)+E(A2A2)=N, check whether you omitted the coefficient 2 on 2pqN.
- Binomial Expansion for Diploid Genotypes
Under random mating, diploid genotypes follow the binomial expansion (p+q)2=p2+2pq+q2=1.
Pair each genotype frequency with its algebraic term: homozygotes are squared (p2 or q2), while heterozygotes always carry the coefficient 2 (2pq).
CORRECTED PATH
ACEpath Teacher's DemonstrationCalculate the correct expected heterozygote count: E(A1A2)=2pqN=2(0.675)(0.325)(400)=175.50.
Verify the sum of expected counts: 182.25+175.50+42.25=400.00=N.
Recompute each term of the Chi-Square test statistic: 182.25(184−182.25)2≈0.0168, 175.50(172−175.50)2≈0.0698, and 42.25(44−42.25)2≈0.0725.
Sum the components: χ2≈0.0168+0.0698+0.0725=0.159.
Compare χ2=0.159 to χcrit2=3.841 at α=0.05 with df=1: because 0.159<3.841, fail to reject the null hypothesis (H0).
Expected counts are E(A1A1)=182.25, E(A1A2)=175.50, E(A2A2)=42.25. The test statistic is χ2≈0.159<3.841; fail to reject H0, meaning the locus is consistent with Hardy-Weinberg equilibrium.
NEXT STEPS
Final Takeaways from Your TeacherReview the Punnett square derivation of the Hardy-Weinberg model to reinforce why heterozygote classes appear twice (A1A2 and A2A1).
Adopt the habit of verifying that expected genotype counts sum exactly to sample size N prior to computing χ2.
Work through practice questions calculating expected counts and testing goodness-of-fit for two-allele systems.
03 A student forgets to double the denominator to 2N when counting alleles from diploid individuals, dividing total alleles by N instead of 2N.
Sample Student Work
Reviewed by ACEpath TeacherStep-by-Step Review
Walk Through It with Your Teacher- Step 11
Total A1 alleles=2×184+172=540⟹p=540/400=1.35⟹q=260/400=0.65
Correctp=2(400)2(184)+172=800540=0.675⟹q=2(400)2(44)+172=800260=0.325
You correctly counted the total copies of each allele (540 of A1 and 260 of A2). However, because mice are diploid, each of the 400 individuals carries 2 alleles, making the total gene pool 2N=800. Dividing by N=400 yielded p=1.35, which is impossible because an allele frequency must satisfy 0≤p≤1.
Made a similar mistake?Check my work on ACEpath → - Step 22
E(A1A1)=1.352×400=729⟹E(A1A2)=2×1.35×0.65×400=702⟹E(A2A2)=0.652×400=169
CorrectE(A1A1)=(0.675)2×400=182.25⟹E(A1A2)=2(0.675)(0.325)×400=175.50⟹E(A2A2)=(0.325)2×400=42.25
Your application of the Hardy-Weinberg expected proportions p2N, 2pqN, and q2N was structurally correct, but the values were distorted by the incorrect allele frequencies from Step 1. Notice that the sum of your expected counts (729+702+169=1600) exceeded the total sample size of 400.
- Step 33
χ2=729(184−729)2+702(172−702)2+169(44−169)2=900.04⟹900.04>3.841, reject null hypothesis
Correctχ2=182.25(184−182.25)2+175.50(172−175.50)2+42.25(44−42.25)2≈0.159⟹0.159<3.841, fail to reject H0
Your chi-square formula and decision rule were applied logically to your numbers, but because the expected counts were inflated, the resulting test statistic was erroneously large, reversing the true biological conclusion.
WHAT YOU DID WELL
Compliments from Your TeacherYou correctly counted the total number of A1 and A2 alleles from the observed genotype counts.
You correctly recalled and applied the formulas for Hardy-Weinberg expected genotype counts (p2N, 2pqN, and q2N).
You correctly set up the Pearson chi-square goodness-of-fit formula and compared your statistic against the critical value.
THE ERROR
Where Your ACEpath Teacher Spotted the Mistakeno
WHY IT HAPPENED
ACEpath Teacher's DiagnosisYou divided the allele counts by the number of diploid individuals (N=400) rather than the total number of alleles in the gene pool (2N=800), overlooking that probabilities and relative frequencies must never exceed 1.
REASONING PATH
Your ACEpath teacher’s suggested approach- Gene Pool Size for Diploids
In a diploid organism with N individuals, the total number of allele copies at an autosomal locus is 2N.
Always multiply the total number of individuals by 2 when determining the denominator for allele frequencies: p=2N2N11+N12.
- Probability Sanity Check
Allele frequencies represent relative proportions and must satisfy 0≤p,q≤1 with p+q=1.
If your calculated p or q exceeds 1.0, pause immediately and check whether you forgot the factor of 2 in the denominator.
CORRECTED PATH
ACEpath Teacher's DemonstrationDivide the calculated allele counts by 2N=800: p=800540=0.675 and q=800260=0.325.
Compute expected counts using N=400: E(A1A1)=(0.675)2×400=182.25, E(A1A2)=2(0.675)(0.325)×400=175.50, and E(A2A2)=(0.325)2×400=42.25.
Calculate χ2=182.25(184−182.25)2+175.50(172−175.50)2+42.25(44−42.25)2≈0.0168+0.0698+0.0725=0.159.
Compare with critical value: χ2=0.159<3.841, so fail to reject H0.
(a) p=0.675, q=0.325; (b) E(A1A1)=182.25, E(A1A2)=175.50, E(A2A2)=42.25; (c) χ2≈0.159<3.841; fail to reject H0, consistent with Hardy-Weinberg equilibrium.
NEXT STEPS
Final Takeaways from Your TeacherReview why diploid organisms carry two alleles per locus, meaning the gene pool has 2N total alleles.
Perform a quick range check on every frequency you calculate: verify that 0≤p,q≤1 and p+q=1.
Practice calculating expected genotype counts and chi-square statistics starting from valid allele frequencies.
Foundational Rules & Step-by-Step Breakdown
Part (a): Sample Allele Frequencies
Each diploid individual carries 2 alleles at the coat-color locus. Therefore, a sample of N=400 mice contains a total of:
2N=2⋅400=800 alleles
- Calculate the count of allele A1: Homozygous individuals (A1A1) carry two copies of A1, and heterozygous individuals (A1A2) carry one copy: Count(A1)=2⋅184+172=368+172=540 p=f(A1)=800540=0.675
-
Calculate the count of allele A2: Homozygous individuals (A2A2) carry two copies of A2, and heterozygous individuals (A1A2) carry one copy: Count(A2)=2⋅44+172=88+172=260 q=f(A2)=800260=0.325
(Check: p+q=0.675+0.325=1.000)
Part (b): Expected Genotype Counts under Hardy-Weinberg Equilibrium
Under the null hypothesis of Hardy-Weinberg equilibrium (HWE), expected genotype frequencies are given by p2 for A1A1, 2pq for A1A2, and q2 for A2A2.
Multiplying each frequency by the total sample size N=400:
- Expected A1A1 count: E(A1A1)=p2⋅N=(0.675)2⋅400=0.455625⋅400=182.25
- Expected A1A2 count: E(A1A2)=2pq⋅N=2⋅0.675⋅0.325⋅400=0.43875⋅400=175.50
- Expected A2A2 count: E(A2A2)=q2⋅N=(0.325)2⋅400=0.105625⋅400=42.25
Part (c): Chi-Square Goodness-of-Fit Test and Conclusion
Using the test statistic formula χ2=∑E(O−E)2:
- For A1A1: 182.25(184−182.25)2=182.25(1.75)2=182.253.0625≈0.0168
- For A1A2: 175.50(172−175.50)2=175.50(−3.50)2=175.5012.25≈0.0698
- For A2A2: 42.25(44−42.25)2=42.25(1.75)2=42.253.0625≈0.0725
Summing the three components: χ2≈0.0168+0.0698+0.0725≈0.159
Statistical Decision:
- The critical value with df=1 (calculated as k−1−m=3 genotypes−1−1 estimated parameter=1) at significance level α=0.05 is χcrit2=3.841.
- Because χ2=0.159<3.841 (p>0.05), we fail to reject the null hypothesis (H0).
- The observed genotype frequencies do not differ significantly from those expected under Hardy-Weinberg equilibrium; therefore, the coat-color locus is consistent with Hardy-Weinberg equilibrium.
Check Final Answer
(a) p=0.675, q=0.325
(b) E(A1A1)=182.25, E(A1A2)=175.50, E(A2A2)=42.25
(c) χ2≈0.159
because χ2=0.159<3.841 (p>0.05), fail to reject the null hypothesis (H0)
the locus is consistent with Hardy-Weinberg equilibrium.
Lock It In
When testing whether a population is in Hardy-Weinberg equilibrium with known counts for all three genotypes, how should you calculate allele frequencies?
Use direct allele counting: p=2N2NAA+NAa and q=2N2Naa+NAa. Never take the square root of a genotype frequency.
Similar Questions & Related Knowledge
Similar Questions
A population of 200 wildflowers has 98 red (CRCR), 84 pink (CRCW), and 18 white (CWCW) plants. Calculate the sample allele frequencies p=f(CR) and q=f(CW) using direct allele counting.
Answer
Total alleles = 2×200=400. Count of CR=2(98)+84=196+84=280⟹p=400280=0.70. Count of CW=2(18)+84=36+84=120⟹q=400120=0.30.
In a herd of 500 cattle, coat color is codominant: 245 red (RR), 210 roan (Rr), and 45 white (rr). Calculate the expected counts for all three genotypes under Hardy-Weinberg equilibrium.
Answer
First, count alleles: count(R) = 2(245)+210=700⟹p=1000700=0.70; q=1−0.70=0.30. Expected counts: E(RR)=p2N=(0.70)2×500=245; E(Rr)=2pqN=2(0.70)(0.30)×500=210; E(rr)=q2N=(0.30)2×500=45.
A survey of 1,000 butterflies finds 490 dark (B1B1), 420 medium (B1B2), and 90 light (B2B2). Perform a Chi-Square test for Hardy-Weinberg equilibrium at α=0.05 (critical value = 3.841, df=1). State whether the population is in equilibrium.
Answer
p=20002(490)+420=0.70, q=0.30. Expected counts: E(B1B1)=0.49×1000=490, E(B1B2)=0.42×1000=420, E(B2B2)=0.09×1000=90. Observed counts match expected counts exactly (O=E), so χ2=0. Since 0<3.841, fail to reject H0; the population is in Hardy-Weinberg equilibrium.
Related Knowledge
- 01Explain mutation, gene flow, genetic drift, and natural selection
- 02Explain natural selection
- 03Use the Hardy-Weinberg Principle to Analyze Gene Frequencies
- 04Explain gene frequency changes
- 05Differentiate adaptation, variation and selection pressures
- 06Explain that evolution occurs in populations, not individuals