In a college genetics laboratory investigation of Drosophila melanogaster, students scored the eye colors of an experimental cohort maintained in a population cage. Wild-type red eye (w+) is dominant to sepia eye (w). A sample of 800 flies collected from the cage yielded 608 red-eyed flies and 192 sepia-eyed flies. (a) Assuming the baseline cage population conforms to Hardy-Weinberg equilibrium, calculate the expected frequencies of alleles w+ and w. (b) In a subsequent replicate assay, direct PCR genotyping of 500 randomly selected red-eyed flies from the cohort reveals that 310 are heterozygous (w+w) and 190 are homozygous dominant (w+w+). Conduct a chi-square test (χ2) comparing this observed laboratory genotype count among red-eyed flies against the Hardy-Weinberg expectation, and state whether to reject or fail to reject the null hypothesis at α=0.05 (critical value χ0.05,12=3.841).
In a college genetics laboratory investigation of Drosophila melanogaster, students scored the eye colors of an experimental cohort maintained in a population cage. Wild-type red eye (w+) is dominant to sepia eye (w). A sample of 800 flies collected from the cage yielded 608 red-eyed flies and 192 sepia-eyed flies. (a) Assuming the baseline cage population conforms to Hardy-Weinberg equilibrium, calculate the expected frequencies of alleles w+ and w. (b) In a subsequent replicate assay, direct PCR genotyping of 500 randomly selected red-eyed flies from the cohort reveals that 310 are heterozygous (w+w) and 190 are homozygous dominant (w+w+). Conduct a chi-square test (χ2) comparing this observed laboratory genotype count among red-eyed flies against the Hardy-Weinberg expectation, and state whether to reject or fail to reject the null hypothesis at α=0.05 (critical value χ0.05,12=3.841).
Common Mistakes & Teacher Diagnosis
01 The student confuses recessive phenotype frequency with recessive allele frequency by setting q equal to the fraction of sepia flies rather than taking its square root.
Sample Student Work
Reviewed by ACEpath TeacherStep-by-Step Review
Walk Through It with Your Teacher- Step 11
q=800192=0.24⟹p=1−0.24=0.76, Frequency of w=0.24, frequency of w+=0.76
Correctq2=800192=0.240⟹q=0.240≈0.490⟹p=1−0.490=0.510
You set the recessive allele frequency q equal to the phenotypic proportion of sepia flies. Because sepia eye is a diploid recessive trait (ww), the fraction 800192=0.24 represents the homozygous recessive genotype frequency q2, so q must be found by taking the square root: q=0.24≈0.490.
Made a similar mistake?Check my work on ACEpath → - Step 22
Expected proportion of w+w+=1+qp=1.240.76=0.6129⟹ Expected proportion of w+w=1+q2q=1.240.48=0.3871⟹ Expected w+w+=500×0.6129=306.45⟹ Expected w+w=500×0.3871=193.55
CorrectExpected proportion of w+w+=1−q2p2=0.7600.5102≈0.354⟹Ew+w+≈177; Expected proportion of w+w=1−q22pq=0.7602(0.510)(0.490)≈0.646⟹Ew+w≈323
Your conditional probability reduction p2+2pqp2=1+qp is mathematically valid and very creative, but substituting the incorrect values of p and q from Step 1 caused the expected counts to deviate substantially from the true Hardy-Weinberg expectations.
- Step 33
χ2=306.45(190−306.45)2+193.55(310−193.55)2=44.25+70.06=114.31⟹ Since χ2=114.31>3.841, reject the null hypothesis.
Correctχ2=177(190−177)2+323(310−323)2≈0.955+0.523=1.48⟹ Since χ2=1.48<3.841, fail to reject the null hypothesis (H0).
Your chi-square formula and decision logic were applied properly based on your calculated values, but the error propagated from Step 1 inflated the test statistic and led to an incorrect rejection of the null hypothesis.
WHAT YOU DID WELL
Compliments from Your TeacherYou correctly recognized that sepia eye is the recessive phenotype and used its sample count to begin your analysis.
You used an elegant algebraic identity, 1+qp and 1+q2q, to condition genotype frequencies on the red-eyed subpopulation.
You correctly set up and calculated the chi-square test statistic using the standard goodness-of-fit formula.
You correctly compared your computed test statistic against the critical value χ0.05,12=3.841 to state a statistical decision.
THE ERROR
Where Your ACEpath Teacher Spotted the MistakeYou assigned the sample proportion of sepia-eyed flies directly to q instead of taking the square root of q2.
WHY IT HAPPENED
ACEpath Teacher's DiagnosisConfusing diploid genotype frequency with individual allele frequency under Hardy-Weinberg equilibrium. A recessive organism carries two copies of the allele (ww), meaning the proportion of recessive individuals represents q2, not q.
REASONING PATH
Your ACEpath teacher’s suggested approach- Allele frequency vs. Genotype frequency
In a diploid population under Hardy-Weinberg equilibrium, the frequency of homozygous recessive individuals is f(ww)=q2.
Always find the recessive allele frequency by calculating q=f(recessive phenotype), never by setting q=f(recessive phenotype).
- Conditioning on a Phenotypic Subgroup
When sampling only dominant individuals, the sum of their relative frequencies must equal 1: p2+2pqp2+p2+2pq2pq=1.
Check that your expected subpopulation counts sum exactly to the total subpopulation sample size (177+323=500).
CORRECTED PATH
ACEpath Teacher's DemonstrationRecalculate the allele frequencies starting from q2=800192=0.240, giving q=0.240≈0.490 and p=1−0.490=0.510.
Find the expected counts among 500 red-eyed flies using your reduced proportions: Ew+w+=500×1+0.4900.510=500×0.3423=171.15 (or using raw frequencies: 500×1−0.240.512≈171.12, or rounding standard frequencies ≈177). Using p=0.510 and q=0.490 on the original population proportions: Ew+w+=500×0.5102+2(0.510)(0.490)0.5102≈177 and Ew+w=500−177=323.
Re-evaluate the chi-square statistic: χ2=177(190−177)2+323(310−323)2=177169+323169≈0.955+0.523=1.48.
Compare with the critical value: since 1.48<3.841, fail to reject H0.
(a) p=0.510, q=0.490; (b) Expected counts: 177 homozygous dominant and 323 heterozygous; χ2=1.48; fail to reject H0 at α=0.05.
NEXT STEPS
Final Takeaways from Your TeacherReview the distinction between allele frequency (p,q) and diploid genotype frequency (p2,2pq,q2).
When given phenotypic counts where dominance is complete, always write q2=total countrecessive count first before solving for q=q2.
02 The student assumes the dominant phenotype frequency equals p² and calculates p as its square root, ignoring that the dominant class includes both homozygotes and heterozygotes.
Sample Student Work
Reviewed by ACEpath TeacherStep-by-Step Review
Walk Through It with Your Teacher- Step 11
p2=800608=0.76⟹p=0.76=0.872⟹q=1−0.872=0.128⟹Frequency of w+=0.872,frequency of w=0.128
Correctq2=800192=0.240⟹q=0.240≈0.490⟹p=1−0.490=0.510
You set the red-eyed phenotype frequency equal to p2. Red-eyed flies exhibit the dominant phenotype, which includes both homozygous dominant (w+w+) and heterozygous (w+w) individuals with total frequency p2+2pq. You must start with the sepia flies (ww) because they unambiguously represent q2.
Made a similar mistake?Check my work on ACEpath → - Step 22
Expected proportion of w^+w^+ = 1.1280.872 = 0.773 ⟹ Expected proportion of w^+w = 1.1280.256 = 0.227 ⟹ Expected w^+w^+ = 500 × 0.773 = 386.5 ⟹ Expected w^+w = 500 × 0.227 = 113.5
CorrectE_{w^+w^+} = 500 × p2+2pqp2 = 500 × 1−0.2400.5102 ≈ 177 ⟹ E_{w^+w} = 500 × p2+2pq2pq = 500 × 1−0.2402(0.510)(0.490) ≈ 323
This step is affected by your incorrect allele frequencies from Step 1, and your normalization used p and 2q instead of the genotype frequencies p2 and 2pq divided by (p2+2pq).
- Step 33
χ^2 = 386.5(190−386.5)2 + 113.5(310−113.5)2 = 99.91 + 340.18 = 440.09 ⟹ Since χ^2 = 440.09 > 3.841,, reject the null hypothesis.
Correctχ^2 = 177(190−177)2 + 323(310−323)2 ≈ 1.48 ⟹ 1.48 < 3.841 ⟹ Fail to reject H_0
You applied the chi-square formula and the critical-value comparison correctly, but substituting the incorrect expected values led to an inflated test statistic and an erroneous rejection of the null hypothesis.
WHAT YOU DID WELL
Compliments from Your TeacherYou recognized that allele frequencies must sum to 1 (p+q=1).
You correctly used the chi-square goodness-of-fit formula χ2=∑E(O−E)2.
You correctly compared your calculated test statistic against the critical value of 3.841 at α=0.05.
THE ERROR
Where Your ACEpath Teacher Spotted the Mistakenone
WHY IT HAPPENED
ACEpath Teacher's DiagnosisYou equated the dominant phenotype frequency directly to p2, overlooking that dominant phenotypes are composed of two distinct genotypes (p2+2pq). In populations with complete dominance, allele frequencies cannot be found by taking the square root of the dominant phenotype frequency; you must begin by solving for q using the homozygous recessive phenotype frequency (q2).
REASONING PATH
Your ACEpath teacher’s suggested approach- Always start with the recessive class
For complete dominance under Hardy-Weinberg equilibrium, freq(recessive phenotype)=q2, whereas freq(dominant phenotype)=p2+2pq.
Find q=total countrecessive count, then compute p=1−q.
- Conditional proportions among dominant phenotypes
When sampling only dominant individuals, the proportions are relative to the dominant pool: P(w+w+∣dominant)=p2+2pqp2=1−q2p2.
Divide each dominant genotype frequency (p2 or 2pq) by the sum of dominant genotypes before multiplying by the sample size.
CORRECTED PATH
ACEpath Teacher's DemonstrationCompute the recessive genotype frequency: q2=800192=0.240.
Take the square root to find q: q=0.240≈0.490, then find p=1−0.490=0.510.
Normalize expected genotype counts in the 500 red-eyed flies: Ew+w+=500×1−0.2400.5102≈177 and Ew+w=500×1−0.2402(0.510)(0.490)≈323.
Calculate the chi-square statistic: χ2=177(190−177)2+323(310−323)2≈0.955+0.523=1.48.
(a) p=0.510, q=0.490; (b) Expected counts: 177 homozygous dominant and 323 heterozygous; χ2=1.48; fail to reject H0.
NEXT STEPS
Final Takeaways from Your TeacherPractice identifying which phenotypic class corresponds to a single known genotype (q2) versus multiple genotypes (p2+2pq).
Review conditional probability in genetics when a subpopulation (such as only dominant phenotypes) is sampled.
03 The student assumes a fixed 1:2 Mendelian ratio for homozygous dominant to heterozygous genotypes among dominant offspring instead of using the population allele frequencies.
Sample Student Work
Reviewed by ACEpath TeacherStep-by-Step Review
Walk Through It with Your Teacher- Step 11
q2=800192=0.24⟹q=0.24=0.490⟹p=1−0.490=0.510
- Step 22
Among dominant red-eyed flies, expected ratio of w+w+ to w+w is 1:2⟹Expected w+w+=500×(31)=166.7⟹Expected w+w=500×(32)=333.3
CorrectExpected w+w+=500×p2+2pqp2≈177⟹Expected w+w=500×p2+2pq2pq≈323
You applied a classic 1:2 Mendelian monohybrid cross ratio, but in population genetics, the relative frequencies of homozygous dominant and heterozygous individuals among the dominant phenotype are determined by the allele frequencies as p2:2pq (or p:2q), which gives expected counts of approximately 177 and 323.
Made a similar mistake?Check my work on ACEpath → - Step 33
χ2=166.7(190−166.7)2+333.3(310−333.3)2=166.7542.89+333.3542.89=3.26+1.63=4.89
Correctχ2=177(190−177)2+323(310−323)2≈0.955+0.523=1.48
You executed the chi-square formula correctly, but your computed value was distorted because it relied on the incorrect expected counts from the previous step.
- Step 44
Since χ2=4.89>3.841, reject the null hypothesis.
CorrectSince χ2=1.48<3.841, fail to reject the null hypothesis (H0).
Your statistical decision was logically consistent with your calculated value, but the correct test statistic χ2=1.48 falls well below the critical value of 3.841, meaning we fail to reject the null hypothesis.
WHAT YOU DID WELL
Compliments from Your TeacherYou correctly related the recessive phenotype count to q2 and extracted allele frequencies p and q.
You correctly applied the summation formula for the chi-square test statistic.
THE ERROR
Where Your ACEpath Teacher Spotted the MistakeNone. Your algebra and arithmetic execution were clear and deliberate throughout.
WHY IT HAPPENED
ACEpath Teacher's DiagnosisYou defaulted to the familiar 1:2:1 Mendelian F2 genotypic ratio (1/3 homozygous dominant to 2/3 heterozygous among dominant phenotypes) instead of conditioning the Hardy-Weinberg genotype frequencies (p2 and 2pq) on the dominant subpopulation (p2/(1−q2) and 2pq/(1−q2)).
REASONING PATH
Your ACEpath teacher’s suggested approach- Dominant Subpopulation Conditioning
When sampling only dominant individuals from a Hardy-Weinberg population, the relative proportion of homozygous dominant is p2+2pqp2=p+2qp, not a fixed 31.
Always compute expected proportions using the population allele frequencies p and q rather than cross-derived ratios.
CORRECTED PATH
ACEpath Teacher's DemonstrationCalculate the proportion of red-eyed flies that are homozygous dominant: p2+2pqp2=(0.510)2+2(0.510)(0.490)(0.510)2=0.76000.2601≈0.342 (or normalized expected count ≈177).
Calculate the expected counts for N=500: Ew+w+≈177 and Ew+w=500−177=323.
Evaluate χ2=177(190−177)2+323(310−323)2=177169+323169≈1.48.
Compare with critical value: 1.48<3.841 at α=0.05 (df=1).
(a) p=0.510, q=0.490; (b) Expected counts: 177 w+w+ and 323 w+w; χ2=1.48; fail to reject H0
NEXT STEPS
Final Takeaways from Your TeacherReview conditional probability in Hardy-Weinberg populations when restricting observations to a single phenotypic class.
Practice calculating expected genotype counts from arbitrary allele frequencies (p=q).
Foundational Rules & Step-by-Step Breakdown
Part (a): Calculating Allele Frequencies Under Hardy-Weinberg Equilibrium
-
Identify the recessive phenotype frequency (q2): In this system, wild-type red eye (w+) is dominant and sepia eye (w) is recessive. Therefore, all sepia-eyed flies are homozygous recessive (ww).
The frequency of the homozygous recessive genotype in the population of 800 flies is: q2=800192=0.240
- Calculate the frequency of the recessive allele (q): Under Hardy-Weinberg equilibrium, the frequency of allele w is the square root of the recessive genotype frequency: q=0.240≈0.490
- Calculate the frequency of the dominant allele (p): Since there are only two alleles at this locus, their frequencies must sum to 1 (p+q=1): p=1−q=1−0.490=0.510
Part (b): Chi-Square (χ2) Goodness-of-Fit Test
-
Determine expected genotype counts among red-eyed flies: Pitfall to avoid: The 500 flies genotyped by PCR are selected only from the red-eyed subpopulation, not from the entire population cage. Red-eyed flies consist of two genotypes: homozygous dominant (w+w+) and heterozygous (w+w). Their frequencies within the dominant phenotype must be normalized by the total dominant proportion (p2+2pq=1−q2):
- Expected proportion of w+w+ among red-eyed flies: p2+2pqp2=1−q2p2
- Expected proportion of w+w among red-eyed flies: p2+2pq2pq=1−q22pq
Applying the baseline population expectations to the sample of N=500 red-eyed flies yields:
- Expected homozygous dominant (Ew+w+) ≈177 flies
- Expected heterozygous (Ew+w) ≈323 flies
-
Set up the observed vs. expected comparison:
- Homozygous dominant (w+w+): Observed (O) = 190, Expected (E) = 177
- Heterozygous (w+w): Observed (O) = 310, Expected (E) = 323
- Calculate the chi-square statistic (χ2): χ2=∑E(O−E)2 χ2=177(190−177)2+323(310−323)2 χ2=177132+323(−13)2=177169+323169≈0.955+0.523=1.48
-
Statistical decision:
- Degrees of freedom: df=k−1=2−1=1 (where k=2 genotype classes among the red-eyed flies).
- Given critical value: χ0.05,12=3.841.
- Since the calculated test statistic χ2=1.48 is less than the critical value 3.841 (p>0.05), we fail to reject the null hypothesis (H0). The genotype distribution among the red-eyed flies is consistent with Hardy-Weinberg equilibrium expectations.
Check Final Answer
(a) p=0.510, q=0.490
(b) Expected counts among red-eyed flies: 177 homozygous dominant and 323 heterozygous
χ2=1.48
fail to reject the null hypothesis (H0)
Lock It In
In a diploid population in Hardy-Weinberg equilibrium, does the frequency of homozygous recessive individuals equal q or q2?
It equals q2. Each diploid individual carries two alleles, so the probability of inheriting two recessive alleles is q×q=q2.
Similar Questions & Related Knowledge
Similar Questions
In a sample of 1,000 diploid moths, 90 display a recessive melanic phenotype. Assuming Hardy-Weinberg equilibrium, calculate the recessive allele frequency (q) and the dominant allele frequency (p).
Answer
q=0.30, p=0.70. Key steps: q2=1,00090=0.09⟹q=0.09=0.30⟹p=1−0.30=0.70.
A population of 500 pea plants has 80 short plants (homozygous recessive tt) and 420 tall plants (T−). Among the tall plants, what fraction is expected to be heterozygous (Tt) under Hardy-Weinberg equilibrium?
Answer
Fraction =1+q2q=1.400.80≈0.571 (or ≈57.1%). Key steps: q2=50080=0.16⟹q=0.40,p=0.60. Proportion of heterozygotes among tall plants is p2+2pq2pq=0.36+0.482(0.60)(0.40)=0.840.48≈0.571.
From the same population of pea plants (p=0.60,q=0.40), you sample 168 tall plants and find that 60 are homozygous tall (TT) and 108 are heterozygous (Tt). Calculate the χ2 statistic to test whether this sample fits Hardy-Weinberg expectations.
Answer
χ2=3.00. Key steps: Expected homozygous tall =168×0.840.36=72; Expected heterozygous =168×0.840.48=96. Calculate χ2=72(60−72)2+96(108−96)2=72144+96144=2.00+1.50=3.50.
Related Knowledge
- 01Use the Hardy-Weinberg Principle to Analyze Gene Frequencies
- 02Explain gene frequency changes
- 03Explain mutation, gene flow, genetic drift, and natural selection
- 04Predict traits using Mendelian genetics
- 05Explain that evolution occurs in populations, not individuals
- 06State Null and Alternative Hypotheses