Resources
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 () is dominant to sepia eye (). A sample of flies collected from the cage yielded red-eyed flies and sepia-eyed flies. (a) Assuming the baseline cage population conforms to Hardy-Weinberg equilibrium, calculate the expected frequencies of alleles and . (b) In a subsequent replicate assay, direct PCR genotyping of randomly selected red-eyed flies from the cohort reveals that are heterozygous () and are homozygous dominant (). Conduct a chi-square test () 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 (critical value ).
Answer and steps
Final answer
(a) , ; (b) Expected counts among red-eyed flies: homozygous dominant and heterozygous; ; fail to reject the null hypothesis ()
Steps
Part (a): Calculating Allele Frequencies Under Hardy-Weinberg Equilibrium
-
Identify the recessive phenotype frequency (): In this system, wild-type red eye () is dominant and sepia eye () is recessive. Therefore, all sepia-eyed flies are homozygous recessive ().
The frequency of the homozygous recessive genotype in the population of flies is:
- Calculate the frequency of the recessive allele (): Under Hardy-Weinberg equilibrium, the frequency of allele is the square root of the recessive genotype frequency:
- Calculate the frequency of the dominant allele (): Since there are only two alleles at this locus, their frequencies must sum to ():
Part (b): Chi-Square () Goodness-of-Fit Test
-
Determine expected genotype counts among red-eyed flies: Pitfall to avoid: The 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 () and heterozygous (). Their frequencies within the dominant phenotype must be normalized by the total dominant proportion ():
- Expected proportion of among red-eyed flies:
- Expected proportion of among red-eyed flies:
Applying the baseline population expectations to the sample of red-eyed flies yields:
- Expected homozygous dominant () flies
- Expected heterozygous () flies
-
Set up the observed vs. expected comparison:
- Homozygous dominant (): Observed () = , Expected () =
- Heterozygous (): Observed () = , Expected () =
- Calculate the chi-square statistic ():
-
Statistical decision:
- Degrees of freedom: (where genotype classes among the red-eyed flies).
- Given critical value: .
- Since the calculated test statistic is less than the critical value (), we fail to reject the null hypothesis (). The genotype distribution among the red-eyed flies is consistent with Hardy-Weinberg equilibrium expectations.
Typical errors
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 1
, Frequency of , frequency of
CorrectYou set the recessive allele frequency equal to the phenotypic proportion of sepia flies. Because sepia eye is a diploid recessive trait (), the fraction represents the homozygous recessive genotype frequency , so must be found by taking the square root: .
- Step 2
Expected proportion of Expected proportion of Expected Expected
CorrectExpected proportion of ; Expected proportion of
Your conditional probability reduction is mathematically valid and very creative, but substituting the incorrect values of and from Step 1 caused the expected counts to deviate substantially from the true Hardy-Weinberg expectations.
- Step 3
Since , reject the null hypothesis.
CorrectSince , fail to reject the null hypothesis ().
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, and , 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 to state a statistical decision.
THE ERROR
Where Your ACEpath Teacher Spotted the MistakeYou assigned the sample proportion of sepia-eyed flies directly to instead of taking the square root of .
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 (), meaning the proportion of recessive individuals represents , not .
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 .
Always find the recessive allele frequency by calculating , never by setting .
- Conditioning on a Phenotypic Subgroup
When sampling only dominant individuals, the sum of their relative frequencies must equal : .
Check that your expected subpopulation counts sum exactly to the total subpopulation sample size ().
CORRECTED PATH
ACEpath Teacher's DemonstrationRecalculate the allele frequencies starting from , giving and .
Find the expected counts among red-eyed flies using your reduced proportions: (or using raw frequencies: , or rounding standard frequencies ). Using and on the original population proportions: and .
Re-evaluate the chi-square statistic: .
Compare with the critical value: since , fail to reject .
(a) , ; (b) Expected counts: homozygous dominant and heterozygous; ; fail to reject at .
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 1Correct
You set the red-eyed phenotype frequency equal to . Red-eyed flies exhibit the dominant phenotype, which includes both homozygous dominant () and heterozygous () individuals with total frequency . You must start with the sepia flies () because they unambiguously represent .
- Step 2
w^+w^+ = = 0.773 w^+w = = 0.227 w^+w^+ = 500 0.773 = 386.5 w^+w = 500 0.227 = 113.5
CorrectE_{w^+w^+} = 500 = 500 177 E_{w^+w} = 500 = 500 323
This step is affected by your incorrect allele frequencies from Step 1, and your normalization used and instead of the genotype frequencies and divided by .
- Step 3
^2 = + = 99.91 + 340.18 = 440.09 ^2 = 440.09 > 3.841,,
Correct^2 = + 1.48 1.48 < 3.841 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 ().
You correctly used the chi-square goodness-of-fit formula .
You correctly compared your calculated test statistic against the critical value of at .
THE ERROR
Where Your ACEpath Teacher Spotted the Mistakenone
WHY IT HAPPENED
ACEpath Teacher's DiagnosisYou equated the dominant phenotype frequency directly to , overlooking that dominant phenotypes are composed of two distinct genotypes (). 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 using the homozygous recessive phenotype frequency ().
REASONING PATH
Your ACEpath teacher’s suggested approach- Always start with the recessive class
For complete dominance under Hardy-Weinberg equilibrium, , whereas .
Find , then compute .
- Conditional proportions among dominant phenotypes
When sampling only dominant individuals, the proportions are relative to the dominant pool: .
Divide each dominant genotype frequency ( or ) by the sum of dominant genotypes before multiplying by the sample size.
CORRECTED PATH
ACEpath Teacher's DemonstrationCompute the recessive genotype frequency: .
Take the square root to find : , then find .
Normalize expected genotype counts in the 500 red-eyed flies: and .
Calculate the chi-square statistic: .
(a) , ; (b) Expected counts: homozygous dominant and heterozygous; ; fail to reject .
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 1
- Step 2Correct
You applied a classic 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 (or ), which gives expected counts of approximately and .
- Step 3Correct
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 4Correct
Your statistical decision was logically consistent with your calculated value, but the correct test statistic falls well below the critical value of , meaning we fail to reject the null hypothesis.
WHAT YOU DID WELL
Compliments from Your TeacherYou correctly related the recessive phenotype count to and extracted allele frequencies and .
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 Mendelian genotypic ratio ( homozygous dominant to heterozygous among dominant phenotypes) instead of conditioning the Hardy-Weinberg genotype frequencies ( and ) on the dominant subpopulation ( and ).
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 , not a fixed .
Always compute expected proportions using the population allele frequencies and rather than cross-derived ratios.
CORRECTED PATH
ACEpath Teacher's DemonstrationCalculate the proportion of red-eyed flies that are homozygous dominant: (or normalized expected count ).
Calculate the expected counts for : and .
Evaluate .
Compare with critical value: at ().
(a) , ; (b) Expected counts: and ; ; fail to reject
Lock it in
In a diploid population in Hardy-Weinberg equilibrium, does the frequency of homozygous recessive individuals equal or ?
It equals . Each diploid individual carries two alleles, so the probability of inheriting two recessive alleles is .
Similar question
In a sample of diploid moths, display a recessive melanic phenotype. Assuming Hardy-Weinberg equilibrium, calculate the recessive allele frequency () and the dominant allele frequency ().
Answer
, . Key steps: .
A population of pea plants has short plants (homozygous recessive ) and tall plants (). Among the tall plants, what fraction is expected to be heterozygous () under Hardy-Weinberg equilibrium?
Answer
Fraction (or ). Key steps: . Proportion of heterozygotes among tall plants is .
From the same population of pea plants (), you sample tall plants and find that are homozygous tall () and are heterozygous (). Calculate the statistic to test whether this sample fits Hardy-Weinberg expectations.
Answer
. Key steps: Expected homozygous tall ; Expected heterozygous . Calculate .