Resources
An evolutionary geneticist samples 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: dark brown (), intermediate brown (), and light tan (). (a) Calculate the sample allele frequencies and . (b) Calculate the expected genotype counts under Hardy-Weinberg equilibrium. (c) Compute the Pearson Chi-Square test statistic and, comparing against the critical value at with , state the formal statistical conclusion.
Answer and steps
Final answer
(a) , ; (b) , , ; (c) ; because (), fail to reject the null hypothesis (); the locus is consistent with Hardy-Weinberg equilibrium.
Steps
Part (a): Sample Allele Frequencies
Each diploid individual carries alleles at the coat-color locus. Therefore, a sample of mice contains a total of:
- Calculate the count of allele : Homozygous individuals () carry two copies of , and heterozygous individuals () carry one copy:
-
Calculate the count of allele : Homozygous individuals () carry two copies of , and heterozygous individuals () carry one copy:
(Check: )
Part (b): Expected Genotype Counts under Hardy-Weinberg Equilibrium
Under the null hypothesis of Hardy-Weinberg equilibrium (HWE), expected genotype frequencies are given by for , for , and for .
Multiplying each frequency by the total sample size :
- Expected count:
- Expected count:
- Expected count:
Part (c): Chi-Square Goodness-of-Fit Test and Conclusion
Using the test statistic formula :
- For :
- For :
- For :
Summing the three components:
Statistical Decision:
- The critical value with (calculated as ) at significance level is .
- Because (), we fail to reject the null hypothesis ().
- 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.
Typical errors
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 1Correct
,
You calculated by taking the square root of the homozygous frequency . That formula already assumes the population is in Hardy-Weinberg equilibrium (), which is the very hypothesis being tested. When all three genotype counts are known, you must find allele frequencies by direct allele counting.
- Step 2Correct
Your method of multiplying the expected genotype frequencies , , and by the total sample size was completely correct, but the values were affected by the inaccurate allele frequencies from Step 1.
- Step 3
, fail to reject null hypothesis
Correct, fail to reject
You correctly applied the Pearson Chi-Square formula and drew the proper statistical decision relative to , 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 , , and multiplied by total sample size .
You correctly applied the Chi-Square formula .
You correctly compared your calculated test statistic against the critical value 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 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 whenever all genotypes are identifiable. Only use 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: .
Count alleles: .
Count alleles: .
Compute expected counts: , , .
Compute .
(a) , ; (b) , , ; (c) ; fail to reject ; the population is consistent with Hardy-Weinberg equilibrium.
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 1
- Step 2Correct
, ,
You calculated as instead of . Heterozygotes can form in two distinct reciprocal ways ( from the egg and from the sperm, or vice versa), requiring the factor of .
- Step 3
, reject null hypothesis; population is not in Hardy-Weinberg equilibrium
Correct, fail to reject ; locus is in Hardy-Weinberg equilibrium
Your Chi-Square calculation and decision rule followed logically from your expected counts, but using falsely inflated from to .
WHAT YOU DID WELL
Compliments from Your TeacherYou correctly calculated the total gene pool size as alleles.
You applied the allele-counting method accurately to find and .
You computed the expected homozygote counts and 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 when computing the expected frequency of the heterozygous genotype .
WHY IT HAPPENED
ACEpath Teacher's DiagnosisYou treated the heterozygous genotype probability as a simple conjunction of two alleles () rather than accounting for the two mutually exclusive gametic unions (). Notice also that your expected counts summed to , which is well below the total sample size of .
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: .
Always sum your expected values before calculating . If , check whether you omitted the coefficient on .
- Binomial Expansion for Diploid Genotypes
Under random mating, diploid genotypes follow the binomial expansion .
Pair each genotype frequency with its algebraic term: homozygotes are squared ( or ), while heterozygotes always carry the coefficient ().
CORRECTED PATH
ACEpath Teacher's DemonstrationCalculate the correct expected heterozygote count: .
Verify the sum of expected counts: .
Recompute each term of the Chi-Square test statistic: , , and .
Sum the components: .
Compare to at with : because , fail to reject the null hypothesis ().
Expected counts are , , . The test statistic is ; fail to reject , meaning the locus is consistent with Hardy-Weinberg equilibrium.
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 1Correct
You correctly counted the total copies of each allele ( of and of ). However, because mice are diploid, each of the individuals carries alleles, making the total gene pool . Dividing by yielded , which is impossible because an allele frequency must satisfy .
- Step 2Correct
Your application of the Hardy-Weinberg expected proportions , , and was structurally correct, but the values were distorted by the incorrect allele frequencies from Step 1. Notice that the sum of your expected counts () exceeded the total sample size of .
- Step 3Correct
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 and alleles from the observed genotype counts.
You correctly recalled and applied the formulas for Hardy-Weinberg expected genotype counts (, , and ).
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 () rather than the total number of alleles in the gene pool (), overlooking that probabilities and relative frequencies must never exceed .
REASONING PATH
Your ACEpath teacher’s suggested approach- Gene Pool Size for Diploids
In a diploid organism with individuals, the total number of allele copies at an autosomal locus is .
Always multiply the total number of individuals by when determining the denominator for allele frequencies: .
- Probability Sanity Check
Allele frequencies represent relative proportions and must satisfy with .
If your calculated or exceeds , pause immediately and check whether you forgot the factor of in the denominator.
CORRECTED PATH
ACEpath Teacher's DemonstrationDivide the calculated allele counts by : and .
Compute expected counts using : , , and .
Calculate .
Compare with critical value: , so fail to reject .
(a) , ; (b) , , ; (c) ; fail to reject , 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: and . Never take the square root of a genotype frequency.
Similar question
A population of 200 wildflowers has 98 red (), 84 pink (), and 18 white () plants. Calculate the sample allele frequencies and using direct allele counting.
Answer
Total alleles = . Count of . Count of .
In a herd of 500 cattle, coat color is codominant: 245 red (), 210 roan (), and 45 white (). Calculate the expected counts for all three genotypes under Hardy-Weinberg equilibrium.
Answer
First, count alleles: count() = ; . Expected counts: ; ; .
A survey of 1,000 butterflies finds 490 dark (), 420 medium (), and 90 light (). Perform a Chi-Square test for Hardy-Weinberg equilibrium at (critical value = , ). State whether the population is in equilibrium.
Answer
, . Expected counts: , , . Observed counts match expected counts exactly (), so . Since , fail to reject ; the population is in Hardy-Weinberg equilibrium.