In an undergraduate genetics laboratory investigation of microevolution, students maintain a population cage of Drosophila melanogaster polymorphic for alcohol dehydrogenase alleles: AdhF (fast) and AdhS (slow). At generation 0, the cage is seeded with 500 flies showing an initial allele frequency of p0=f(AdhF)=0.200. The medium is supplemented with 8% v/v ethanol to exert strong selection. At generation 1, the class samples 200 adult progeny and records the following genotype counts via gel electrophoresis: 18 homozygous AdhF/AdhF, 84 heterozygous AdhF/AdhS, and 98 homozygous AdhS/AdhS. (a) Calculate the observed allele frequencies p1 and q1 in the sampled generation 1 progeny. (b) Perform a Pearson's chi-square test for goodness-of-fit to determine whether the generation 1 progeny adhere to Hardy-Weinberg proportions: calculate the expected counts for each genotype, the test statistic χ2, and evaluate significance at α=0.05 (critical value χ0.05,df=12=3.841). (c) State the formal statistical conclusion and the biological implication for gene frequency evolution in the ethanol environment.
In an undergraduate genetics laboratory investigation of microevolution, students maintain a population cage of Drosophila melanogaster polymorphic for alcohol dehydrogenase alleles: AdhF (fast) and AdhS (slow). At generation 0, the cage is seeded with 500 flies showing an initial allele frequency of p0=f(AdhF)=0.200. The medium is supplemented with 8% v/v ethanol to exert strong selection. At generation 1, the class samples 200 adult progeny and records the following genotype counts via gel electrophoresis: 18 homozygous AdhF/AdhF, 84 heterozygous AdhF/AdhS, and 98 homozygous AdhS/AdhS. (a) Calculate the observed allele frequencies p1 and q1 in the sampled generation 1 progeny. (b) Perform a Pearson's chi-square test for goodness-of-fit to determine whether the generation 1 progeny adhere to Hardy-Weinberg proportions: calculate the expected counts for each genotype, the test statistic χ2, and evaluate significance at α=0.05 (critical value χ0.05,df=12=3.841). (c) State the formal statistical conclusion and the biological implication for gene frequency evolution in the ethanol environment.
Common Mistakes & Teacher Diagnosis
01 The student calculates the expected genotype counts using the initial generation 0 allele frequency p₀ = 0.200 instead of the generation 1 allele frequencies p₁ = 0.300.
Sample Student Work
Reviewed by ACEpath TeacherStep-by-Step Review
Walk Through It with Your Teacher- Step 11
Total alleles=2×200=400⟹p1=4002×18+84=400120=0.30⟹q1=1−0.30=0.70
- Step 22
Use initial p0=0.20,q0=0.80 for HW expectations:⟹E(FF)=200×(0.20)2=8⟹E(FS)=200×2(0.20)(0.80)=64⟹E(SS)=200×(0.80)2=128
CorrectE(FF)=200×(0.300)2=18.0⟹E(FS)=200×2(0.300)(0.700)=84.0⟹E(SS)=200×(0.700)2=98.0
When testing whether a cohort conforms to Hardy-Weinberg equilibrium, you must calculate expected genotype counts using that specific cohort's own allele frequencies (p1=0.300,q1=0.700). Using the ancestral p0=0.200 tests whether allele frequencies remained constant over time, rather than testing whether the current generation's genotypes are in binomial proportions (p2:2pq:q2).
Made a similar mistake?Check my work on ACEpath → - Step 33
χ2=8(18−8)2+64(84−64)2+128(98−128)2=12.5+6.25+7.03125=25.78⟹Since χ2=25.78>3.841, reject H0
Correctχ2=18.0(18−18.0)2+84.0(84−84.0)2+98.0(98−98.0)2=0.000<3.841
Your arithmetic was internally consistent with your values, but the test statistic was artificially inflated due to using incorrect expected counts.
- Step 44
Reject Hardy-Weinberg equilibrium because the test statistic χ2=25.78 is significant at α=0.05. Genotype frequencies deviate from equilibrium because ethanol selected against AdhS and increased AdhF.
CorrectFail to reject H0 because χ2=0.000<3.841. The progeny adhere to Hardy-Weinberg proportions despite microevolutionary allele frequency change.
Because the true test statistic is χ2=0.000, we fail to reject the null hypothesis. A single generation of random mating establishes Hardy-Weinberg proportions among progeny according to the newly shifted gene pool.
WHAT YOU DID WELL
Compliments from Your TeacherYou correctly counted the total allele pool as 2N=400.
You successfully computed the observed allele frequencies p1=0.30 and q1=0.70.
You accurately applied the Pearson chi-square formula to the expected counts you generated.
THE ERROR
Where Your ACEpath Teacher Spotted the MistakeYou substituted the initial parental generation allele frequency p0=0.20 into the expected genotype formula instead of using the generation 1 frequency p1=0.30.
WHY IT HAPPENED
ACEpath Teacher's DiagnosisYou conflated two distinct biological concepts: (1) whether allele frequencies changed across generations due to natural selection, and (2) whether genotypes in the offspring generation conform to Hardy-Weinberg proportions given the parental gamete frequencies. A Hardy-Weinberg goodness-of-fit test evaluates binomial pairing of alleles within a specific generation, requiring that generation's estimated allele frequencies (p1,q1).
REASONING PATH
Your ACEpath teacher’s suggested approach- Identify the Target Generation for HWE
Hardy-Weinberg equilibrium tests if genotypes equal p2:2pq:q2 within a given cohort.
Always estimate p and q directly from the genotype counts of the specific generation or sample being tested.
- Distinguish Microevolution from HWE Proportions
Selection changes allele frequencies between generations (p0→p1), but one generation of random mating immediately restores genotype proportions (p12:2p1q1:q12) in the progeny.
Do not use ancestral or pre-selection allele frequencies when calculating expected progeny genotype counts.
CORRECTED PATH
ACEpath Teacher's DemonstrationCalculate the expected counts for generation 1 using p1=0.300 and q1=0.700: E(FF)=200×(0.300)2=18.0, E(FS)=200×2(0.300)(0.700)=84.0, E(SS)=200×(0.700)2=98.0.
Evaluate the test statistic: χ2=18(18−18)2+84(84−84)2+98(98−98)2=0.000.
Compare with the critical threshold χ0.05,12=3.841: because χ2=0.000<3.841, fail to reject H0.
Conclude that the progeny conform to Hardy-Weinberg genotype proportions reflecting the shifted allele frequencies.
(a) p1=0.300, q1=0.700; (b) Expected counts are E(FF)=18.0, E(FS)=84.0, E(SS)=98.0, yielding χ2=0.000<3.841; (c) Fail to reject H0; the progeny fit Hardy-Weinberg proportions because random mating in generation 1 distributed genotypes in binomial proportions based on the new allele pool.
NEXT STEPS
Final Takeaways from Your TeacherPractice identifying which allele frequency (p0 vs. p1) belongs in the chi-square expected counts table.
Review why a single round of random mating yields p2,2pq,q2 genotype proportions even after strong selection changes allele frequencies.
02 The student miscalculates allele frequency p₁ by dividing the count of homozygous Adh^F/Adh^F individuals plus heterozygotes directly by the total number of individuals instead of counting individual alleles.
Sample Student Work
Reviewed by ACEpath TeacherStep-by-Step Review
Walk Through It with Your Teacher- Step 11
Total flies = 200 ⟹ p_1 = 20018+84 = 200102 = 0.51 ⟹ q_1 = 1 - 0.51 = 0.49
Correctp_1 = 2(200)2(18)+84 = 400120 = 0.300 ⟹ q_1 = 1 - 0.300 = 0.700
You calculated the proportion of individuals carrying at least one AdhF allele rather than the frequency of the allele itself. Because each diploid fly carries two alleles, the total gene pool contains 2×200=400 alleles, and homozygotes contribute two AdhF copies each.
Made a similar mistake?Check my work on ACEpath → - Step 22
p^2 = (0.51)^2 = 0.2601, 2pq = 2(0.51)(0.49) = 0.4998, q^2 = (0.49)^2 = 0.2401 ⟹ E(FF) = 200 × 0.2601 = 52.02, E(FS) = 200 × 0.4998 = 99.96, E(SS) = 200 × 0.2401 = 48.02
CorrectE(FF) = 200(0.300)^2 = 18.0 ⟹ E(FS) = 200(2)(0.300)(0.700) = 84.0 ⟹ E(SS) = 200(0.700)^2 = 98.0
You applied the Hardy-Weinberg expected frequency formulas p2, 2pq, and q2 correctly, but your expected counts were shifted because they relied on the miscalculated allele frequencies.
- Step 33
χ^2 = 52.02(18−52.02)2 + 99.96(84−99.96)2 + 48.02(98−48.02)2 = 76.82 ⟹ χ^2 = 76.82 > 3.841, significant
Correctχ^2 = 18.0(18−18.0)2 + 84.0(84−84.0)2 + 98.0(98−98.0)2 = 0.000 < 3.841
Your chi-square summation formula and comparison against the critical value were mathematically accurate, but the large test statistic was an artifact of the incorrect expected values.
- Step 44
Reject Hardy-Weinberg proportions because χ^2 = 76.82 exceeds 3.841. Selection by ethanol has caused a significant departure from Hardy-Weinberg equilibrium in generation 1.
CorrectFail to reject H_0 because χ^2 = 0.000 < 3.841. Generation 1 conforms to Hardy-Weinberg genotype proportions despite the allele frequency shift from p_0 = 0.200 to p_1 = 0.300, because random mating among surviving parents restores binomial genotype proportions in a single generation.
Your conclusion logically followed your computed test statistic, but with the correct expected counts, the observed counts match Hardy-Weinberg proportions exactly.
WHAT YOU DID WELL
Compliments from Your TeacherYou correctly used the complement relationship q=1−p to find the alternative allele frequency.
You correctly set up the binomial genotype expansion p2, 2pq, and q2 and multiplied by the sample size N to obtain expected counts.
You accurately structured and calculated the chi-square goodness-of-fit formula ∑E(O−E)2 and compared it against the critical threshold χ0.05,df=12=3.841.
THE ERROR
Where Your ACEpath Teacher Spotted the Mistakeno
WHY IT HAPPENED
ACEpath Teacher's DiagnosisYou treated diploid individuals as single-allele units by dividing genotype counts by N=200 instead of counting copies across the gene pool of 2N=400 alleles.
REASONING PATH
Your ACEpath teacher’s suggested approach- Allele Counting in Diploids
For a diploid population of N individuals, the total number of alleles is 2N. Each homozygote carries 2 copies and each heterozygote carries 1 copy.
Always set the denominator to 2N and double the homozygous count when calculating allele frequencies: p=2N2NAA+NAa.
- Selection vs. Equilibrium
Natural selection during a parental generation changes allele frequencies (p0→p1), but one generation of subsequent random mating immediately generates offspring genotype frequencies in Hardy-Weinberg proportions (p12:2p1q1:q12).
Distinguish between allele frequency change across generations (microevolution) and deviation from Hardy-Weinberg proportions among progeny within a generation.
CORRECTED PATH
ACEpath Teacher's DemonstrationCount alleles in the gene pool: 2N=2×200=400 total alleles.
Calculate p1: p1=4002(18)+84=400120=0.300, and q1=1−0.300=0.700.
Calculate expected numbers: E(FF)=200(0.300)2=18.0, E(FS)=200(2)(0.300)(0.700)=84.0, E(SS)=200(0.700)2=98.0.
Calculate chi-square: χ2=18(18−18)2+84(84−84)2+98(98−98)2=0.000.
Evaluate at α=0.05: χ2=0.000<3.841, so fail to reject H0.
(a) p1=0.300, q1=0.700; (b) E(FF)=18.0, E(FS)=84.0, E(SS)=98.0, χ2=0.000<3.841; (c) Fail to reject H0; the offspring conform to Hardy-Weinberg proportions, showing that random mating establishes equilibrium proportions in one generation even when selection shifts allele frequencies from 0.200 to 0.300.
NEXT STEPS
Final Takeaways from Your TeacherReview the gene-counting method by ensuring you multiply homozygous individual counts by 2 and divide by 2N.
Practice separating the biological concept of allele frequency change across generations from genotype disequilibrium within a generation.
Solve the practice problems below to reinforce calculating allele frequencies directly from diploid genotype counts.
03 The student wrongly concludes that microevolution has not occurred because the observed genotype counts adhere to Hardy-Weinberg proportions.
Sample Student Work
Reviewed by ACEpath TeacherStep-by-Step Review
Walk Through It with Your Teacher- Step 11
Total alleles=2×200=400⟹p1=4002×18+84=400120=0.300⟹q1=4002×98+84=400280=0.700
- Step 22
E(FF)=200×(0.300)2=18.0⟹E(FS)=200×2(0.300)(0.700)=84.0⟹E(SS)=200×(0.700)2=98.0⟹χ2=18.0(18−18.0)2+84.0(84−84.0)2+98.0(98−98.0)2=0.000⟹0.000<3.841,not significant
- Step 33
Fail to reject the null hypothesis; the generation 1 progeny adhere to Hardy-Weinberg proportions.
- Step 44
Since Hardy-Weinberg equilibrium is maintained, no microevolution occurred in the ethanol environment.
CorrectMicroevolution did occur because the allele frequency changed from p0=0.200 to p1=0.300 due to selection; random mating among survivors restores Hardy-Weinberg genotype proportions (p12:2p1q1:q12) in a single generation.
You equated fitting Hardy-Weinberg genotype proportions in offspring with an absence of evolution, missing that microevolution is defined by changes in allele frequencies across generations.
Made a similar mistake?Check my work on ACEpath →
WHAT YOU DID WELL
Compliments from Your TeacherYou correctly counted alleles from genotype counts and determined the generation 1 allele frequencies.
You accurately calculated expected Hardy-Weinberg counts and the chi-square statistic.
You drew the correct statistical conclusion by failing to reject the null hypothesis at α=0.05.
THE ERROR
Where Your ACEpath Teacher Spotted the MistakeNo computational slip occurred; your quantitative work is entirely correct.
WHY IT HAPPENED
ACEpath Teacher's DiagnosisYou assumed that because the offspring cohort's genotypes match the binomial proportions p2:2pq:q2, the population must be in static evolutionary equilibrium. In reality, microevolution is defined as any change in allele frequencies over time (p0=0.200→p1=0.300). When surviving adults mate randomly, one generation of random union of gametes immediately re-establishes Hardy-Weinberg genotype proportions relative to the new, shifted allele frequencies.
REASONING PATH
Your ACEpath teacher’s suggested approach- Definition of Microevolution
Microevolution is defined as a change in allele frequencies in a population's gene pool over successive generations (p1=p0).
Compare allele frequencies between consecutive generations (p0=0.200 vs. p1=0.300) rather than relying solely on genotype ratios within a single generation.
- Single-Generation Return to Hardy-Weinberg Proportions
Under random mating, any diploid gene pool forms zygotes in the proportions p2:2pq:q2 after just one generation, regardless of prior selection on the parental generation.
Recognize that conformity to p2:2pq:q2 in progeny only demonstrates random mating of the parents, not the absence of past natural selection.
CORRECTED PATH
ACEpath Teacher's DemonstrationNote the shift in the AdhF allele frequency from generation 0 (p0=0.200) to generation 1 (p1=0.300).
Recognize that this directional increase demonstrates microevolution via natural selection favoring AdhF in 8% v/v ethanol.
Explain that random mating among the selected parents produces offspring genotypes conforming to (p1+q1)2=p12+2p1q1+q12 within a single generation.
(c) We fail to reject H0 because χ2=0.000<3.841 (p>0.05); the progeny adhere to Hardy-Weinberg proportions. Biologically, microevolution did occur because the AdhF allele frequency rose substantially from p0=0.200 to p1=0.300 due to natural selection in the ethanol medium, while random mating in generation 0 established Hardy-Weinberg genotype proportions in generation 1 reflecting the newly shifted allele pool.
NEXT STEPS
Final Takeaways from Your TeacherReview the fundamental definition of microevolution as a change in allele frequency over generations.
Practice distinguishing between within-generation genotype equilibrium (Hardy-Weinberg proportions) and trans-generational allele frequency stability.
Foundational Rules & Step-by-Step Breakdown
Part (a): Calculating Observed Allele Frequencies
In a diploid population of size N=200, each individual carries two alleles, giving a total gene pool of: 2N=2⋅200=400 alleles
Count the occurrences of the fast allele AdhF:
- Homozygotes (AdhF/AdhF) carry two copies: 2⋅18=36 alleles
- Heterozygotes (AdhF/AdhS) carry one copy: 1⋅84=84 alleles
Total count of AdhF: 36+84=120 alleles
Therefore, the allele frequencies are: p1=f(AdhF)=4002(18)+84=400120=0.300 q1=f(AdhS)=1−p1=1−0.300=0.700
(Alternatively, verifying directly: q1=4002(98)+84=400280=0.700.)
Part (b): Chi-Square (χ2) Goodness-of-Fit Test
Under the Hardy-Weinberg null hypothesis (H0), genotype frequencies are predicted by the binomial expansion (p1+q1)2=p12+2p1q1+q12.
-
Calculate the expected numbers (E) for each genotype:
- E(AdhF/AdhF)=N⋅p12=200⋅(0.300)2=200⋅0.090=18.0
- E(AdhF/AdhS)=N⋅2p1q1=200⋅2(0.300)(0.700)=200⋅0.420=84.0
- E(AdhS/AdhS)=N⋅q12=200⋅(0.700)2=200⋅0.490=98.0
- Compute the chi-square statistic: χ2=∑E(O−E)2 χ2=18.0(18−18.0)2+84.0(84−84.0)2+98.0(98−98.0)2=0.000
-
Statistical evaluation: For a single gene with two alleles tested for Hardy-Weinberg equilibrium, the degrees of freedom are: df=k−1−m=3−1−1=1 where k=3 genotype classes and m=1 estimated independent parameter (p1).
Comparing the test statistic with the critical value at α=0.05: χ2=0.000<3.841(p>0.05)
Part (c): Statistical Conclusion and Biological Implication
- Statistical Conclusion: Because the test statistic χ2=0.000 is strictly less than the critical value 3.841, we fail to reject the null hypothesis (H0). The generation 1 progeny genotype frequencies fit Hardy-Weinberg proportions.
- Biological Implication:
- Microevolution occurred: The frequency of the AdhF allele rose significantly from p0=0.200 to p1=0.300 due to natural selection favoring flies with higher alcohol dehydrogenase activity in an 8% ethanol medium.
- Equilibrium restored in a single generation: Although selection altered the gene pool of the surviving parents, random union of their gametes immediately established Hardy-Weinberg genotype proportions (p12:2p1q1:q12) in the resulting generation 1 offspring. This demonstrates that a population can undergo rapid adaptive evolution while maintaining Hardy-Weinberg proportions among progeny.
Check Final Answer
(a) p1=f(AdhF)=4002(18)+84=0.300, q1=f(AdhS)=0.700
(b) Expected counts: E(FF)=200(0.30)2=18.0, E(FS)=200(2)(0.30)(0.70)=84.0, E(SS)=200(0.70)2=98.0
χ2=18(18−18)2+84(84−84)2+98(98−98)2=0.000
(c) Because χ2=0.000<3.841 (p>0.05), we fail to reject the null hypothesis (H0)
the progeny conform to Hardy-Weinberg genotype proportions despite the substantial allele frequency change from p0=0.200 to p1=0.300, demonstrating that random mating within a single generation establishes genotype frequencies at p12:2p1q1:q12 reflecting the shifted allele pool.
Lock It In
When performing a chi-square goodness-of-fit test for Hardy-Weinberg equilibrium on a specific sample, which allele frequencies must you use to compute expected genotype counts?
Use the allele frequencies calculated directly from that sample (pobs,qobs), never frequencies from an ancestral generation.
Similar Questions & Related Knowledge
Similar Questions
A population of beetles has initial allele frequencies p0=0.50,q0=0.50. After a pesticide application, surviving parents produce 100 offspring with genotype counts: 36AA, 48Aa, and 16aa. Calculate the observed allele frequency p1=f(A) in the offspring and state the expected count for heterozygotes (Aa) under Hardy-Weinberg equilibrium.
Answer
p1=0.60 and E(Aa)=48.0.
Key steps:
- Total alleles =2×100=200.
- p1=2002(36)+48=200120=0.60, q1=0.40.
- Expected heterozygotes E(Aa)=N×2p1q1=100×2(0.60)(0.40)=48.0.
In a population of plants, an herbivore outbreak shifts allele frequencies. A sample of 500 seedlings is genotyped: 45CC, 210Cc, and 245cc. Test whether this seedling cohort is in Hardy-Weinberg equilibrium at α=0.05 (critical value χ0.05,12=3.841) by calculating p1=f(C), expected genotype counts, and the test statistic χ2.
Answer
χ2=0.000, conforming to Hardy-Weinberg equilibrium.
Key steps:
- p1=10002(45)+210=0.30, q1=0.70.
- Expected counts: E(CC)=500(0.30)2=45.0, E(Cc)=500(2)(0.30)(0.70)=210.0, E(cc)=500(0.70)2=245.0.
- χ2=45(45−45)2+210(210−210)2+245(245−245)2=0.000<3.841. Fail to reject H0.
An initial population of moths has p0=f(B)=0.40. Following industrial soot deposition, selection shifts the allele frequency in breeding adults to p1=0.70. They mate randomly to produce 400 progeny. (i) Calculate the expected progeny genotype counts under Hardy-Weinberg equilibrium. (ii) Explain why comparing observed progeny to expectations based on p0=0.40 tests directional evolution rather than Hardy-Weinberg genotype assembly.
Answer
(i) E(BB)=196.0, E(Bb)=168.0, E(bb)=36.0. (ii) Using p0 tests the null hypothesis that allele frequencies did not change between generations (testing for evolutionary change). In contrast, an HWE goodness-of-fit test evaluates whether random mating combined alleles in binomial proportions (p2:2pq:q2) within the current gene pool, which strictly requires using p1.
Key steps:
- E(BB)=400(0.70)2=196.0.
- E(Bb)=400(2)(0.70)(0.30)=168.0.
- E(bb)=400(0.30)2=36.0.