In a post-HGP clinical pharmacogenomics trial, 400 patients receiving azathioprine are genotyped for thiopurine S-methyltransferase (TPMT) deficiency alleles to prevent hematopoietic toxicity. The observed genotype distribution across the sample cohort is: 324 individuals homozygous wild-type (∗1/∗1), 70 heterozygous (∗1/∗3A), and 6 homozygous mutant (∗3A/∗3A). Using the observed allele frequencies from this sample, perform a Chi-Square (χ2) goodness-of-fit test at α=0.05 (critical value χcrit2=3.841 for df=1) to evaluate whether the observed distribution complies with Hardy-Weinberg equilibrium. State your calculated χ2 test statistic rounded to three significant figures, and report the formal conclusion.
In a post-HGP clinical pharmacogenomics trial, 400 patients receiving azathioprine are genotyped for thiopurine S-methyltransferase (TPMT) deficiency alleles to prevent hematopoietic toxicity. The observed genotype distribution across the sample cohort is: 324 individuals homozygous wild-type (∗1/∗1), 70 heterozygous (∗1/∗3A), and 6 homozygous mutant (∗3A/∗3A). Using the observed allele frequencies from this sample, perform a Chi-Square (χ2) goodness-of-fit test at α=0.05 (critical value χcrit2=3.841 for df=1) to evaluate whether the observed distribution complies with Hardy-Weinberg equilibrium. State your calculated χ2 test statistic rounded to three significant figures, and report the formal conclusion.
Common Mistakes & Teacher Diagnosis
01 The student forgets the factor of 2 for the heterozygous genotype when calculating expected frequencies, using pq instead of 2pq.
Sample Student Work
Reviewed by ACEpath TeacherStep-by-Step Review
Walk Through It with Your Teacher- Step 11
Total alleles=2×400=800⟹p=8002×324+70=800718=0.8975⟹q=8002×6+70=80082=0.1025
- Step 22
E(∗1/∗1)=p2×400=(0.8975)2×400≈322.20⟹E(∗1/∗3A)=pq×400=0.8975×0.1025×400≈36.80⟹E(∗3A/∗3A)=q2×400=(0.1025)2×400≈4.20
CorrectE(∗1/∗1)=p2⋅N≈322.20⟹E(∗1/∗3A)=2pq⋅N=2(0.8975)(0.1025)(400)≈73.60⟹E(∗3A/∗3A)=q2⋅N≈4.20
You used pq⋅N instead of 2pq⋅N for the expected number of heterozygotes. Because heterozygous individuals can inherit either allele from either parent, the binomial expansion requires the coefficient of 2.
Made a similar mistake?Check my work on ACEpath → - Step 33
χ2=322.20(324−322.20)2+36.80(70−36.80)2+4.20(6−4.20)2=0.010+29.957+0.771=30.7
Correctχ2=322.20(324−322.20)2+73.60(70−73.60)2+4.20(6−4.20)2≈0.010+0.176+0.771=1.09
Your goodness-of-fit formula was applied correctly, but the result was distorted by the incorrect expected heterozygote count of 36.80 instead of 73.60.
- Step 44
Since χ2=30.7>3.841, reject the null hypothesis; does not comply with Hardy-Weinberg equilibrium.
CorrectSince χ2=1.09<3.841, fail to reject H0 (p>0.05); the distribution complies with Hardy-Weinberg equilibrium.
Because your calculated test statistic was artificially inflated, you rejected H0 instead of failing to reject it.
WHAT YOU DID WELL
Compliments from Your TeacherYou correctly doubled the sample size to find the total allele count of 800.
You correctly applied allele-counting formulas to find p=0.8975 and q=0.1025.
You correctly set up the Pearson Chi-Square goodness-of-fit sum and compared your calculated value to the critical threshold of 3.841.
THE ERROR
Where Your ACEpath Teacher Spotted the MistakeYou omitted the coefficient 2 from the heterozygous expected genotype frequency, calculating pq instead of 2pq.
WHY IT HAPPENED
ACEpath Teacher's DiagnosisConflating individual allele combinations with diploid genotype frequencies. A heterozygote can form in two mutually exclusive ways (allele A from the egg and allele a from the sperm, or vice versa), which yields 2pq in the expansion (p+q)2=p2+2pq+q2.
REASONING PATH
Your ACEpath teacher’s suggested approach- Sum of Expected Counts Check
The sum of expected genotype counts must always equal the sample size: E11+E12+E22=N.
Notice that 322.20+36.80+4.20=363.20=400. When your expected counts do not sum to N, verify that heterozygotes were multiplied by 2.
CORRECTED PATH
ACEpath Teacher's DemonstrationRecalculate expected heterozygotes: E(∗1/∗3A)=2pq⋅N=2(0.8975)(0.1025)(400)≈73.60.
Recompute the χ2 component for heterozygotes: 73.60(70−73.60)2=73.60(−3.60)2≈0.176.
Sum the three components: χ2=0.010+0.176+0.771=1.09.
χ2=1.09; Fail to reject H0 (p>0.05)
NEXT STEPS
Final Takeaways from Your TeacherAlways check that your expected counts sum to the total sample size N before computing (O−E)2/E.
Remember that the Hardy-Weinberg formula stems from (p+q)2=p2+2pq+q2, where the middle term always has a coefficient of 2.
02 The student divides the number of alleles by the number of individuals (400) rather than total alleles (800) to find allele frequencies.
Sample Student Work
Reviewed by ACEpath TeacherStep-by-Step Review
Walk Through It with Your Teacher- Step 11
Allele counts: ∗1=2×324+70=718;∗3A=2×6+70=82
- Step 22
p=400718=1.795⟹q=40082=0.205
Correctp=2×400718=800718=0.8975⟹q=80082=0.1025
In a diploid organism, each individual carries two alleles at an autosomal locus. With N=400 individuals, the gene pool contains 2N=800 total alleles. Dividing by 400 yields values that sum to 2.0 rather than relative proportions that sum to 1.0.
Made a similar mistake?Check my work on ACEpath → - Step 33
p+q=1, so frequencies cannot be evaluated for Chi-Square test⟹Distribution does not comply with Hardy-Weinberg equilibrium.
CorrectE11=p2N=322.20,E12=2pqN=73.60,E22=q2N=4.20⟹χ2=1.09<3.841⟹Fail to reject H0 (complies with HWE).
Because the computed frequencies were incorrect, you were unable to calculate expected genotype counts or the test statistic.
WHAT YOU DID WELL
Compliments from Your TeacherYou correctly counted the copies of each allele by weighting homozygous genotypes by two and heterozygous genotypes by one.
THE ERROR
Where Your ACEpath Teacher Spotted the Mistakeno
WHY IT HAPPENED
ACEpath Teacher's DiagnosisConflating the sample size of diploid individuals (N) with the total number of alleles in the gene pool (2N) when calculating relative allele frequencies.
REASONING PATH
Your ACEpath teacher’s suggested approach- Diploid Allele Pool Size
For an autosomal locus in N diploid organisms, the total number of alleles is 2N.
Always multiply the number of individuals by 2 to establish the denominator before computing allele frequencies.
- Probability Sum Rule
The sum of all relative allele frequencies at a biallelic locus must satisfy p+q=1.0.
Check your values immediately: if p>1 or p+q=1, verify whether you forgot to multiply N by 2 in the denominator.
CORRECTED PATH
ACEpath Teacher's DemonstrationCalculate the expected counts under Hardy-Weinberg equilibrium: E11=p2⋅N=(0.8975)2×400≈322.20, E12=2pq⋅N=2(0.8975)(0.1025)×400≈73.60, and E22=q2⋅N=(0.1025)2×400≈4.20.
Apply Pearson's Chi-Square formula: χ2=∑E(O−E)2=322.20(324−322.20)2+73.60(70−73.60)2+4.20(6−4.20)2≈0.010+0.176+0.771=1.09.
Compare the test statistic to the critical value with df=3−1−1=1: χ2=1.09<χcrit2=3.841.
χ2=1.09; Fail to reject H0 (p>0.05)
NEXT STEPS
Final Takeaways from Your TeacherPractice setting up the total allele denominator (2N) for diploid cohorts before performing Hardy-Weinberg calculations.
Complete follow-up exercises calculating expected genotype values and Chi-Square statistics for pharmacogenomic cohorts.
03 The student uses observed genotype counts in the denominator of the Chi-Square formula instead of expected counts.
Sample Student Work
Reviewed by ACEpath TeacherStep-by-Step Review
Walk Through It with Your Teacher- Step 11
Total alleles=800⟹p=8002×324+70=0.8975⟹q=8002×6+70=0.1025
- Step 22
E(∗1/∗1)=(0.8975)2×400≈322.20⟹E(∗1/∗3A)=2×0.8975×0.1025×400≈73.60⟹E(∗3A/∗3A)=(0.1025)2×400≈4.20
- Step 33
χ2=324(324−322.20)2+70(70−73.60)2+6(6−4.20)2⟹χ2=3243.24+7012.96+63.24=0.0100+0.1851+0.5400=0.735
Correctχ2=322.20(324−322.20)2+73.60(70−73.60)2+4.20(6−4.20)2≈0.0100+0.1761+0.7714≈1.09
You placed the observed values (324, 70, 6) in the denominators of the Chi-Square formula instead of the expected values (322.20, 73.60, 4.20).
Made a similar mistake?Check my work on ACEpath → - Step 44
Since χ2=0.735<3.841, fail to reject null hypothesis; complies with Hardy-Weinberg equilibrium.
CorrectSince χ2=1.09<3.841, fail to reject H0 (p>0.05); the distribution complies with Hardy-Weinberg equilibrium.
Your qualitative decision matches the standard result, but your numerical test statistic carries forward the denominator error from Step 3.
WHAT YOU DID WELL
Compliments from Your TeacherYou correctly counted the total allele pool across the diploid cohort.
You accurately determined the allele frequencies p and q.
You correctly calculated the expected genotype frequencies and cohort counts using Hardy-Weinberg proportions.
THE ERROR
Where Your ACEpath Teacher Spotted the MistakeYou divided by the observed counts (O) rather than the expected counts (E) in each term of the Chi-Square goodness-of-fit formula.
WHY IT HAPPENED
ACEpath Teacher's DiagnosisConfusing the baseline standard of comparison (E) with the experimental sample observations (O) when writing ∑E(O−E)2. In goodness-of-fit tests, squared deviations must always be scaled relative to the theoretical expectation.
REASONING PATH
Your ACEpath teacher’s suggested approach- Chi-Square Formula Denominator
Pearson's Chi-Square statistic measures relative departure from the expected model: χ2=∑E(O−E)2.
Always check each term before summing to verify that the value under the fraction line is E, never O.
CORRECTED PATH
ACEpath Teacher's DemonstrationWrite the standard goodness-of-fit formula: χ2=∑E(O−E)2.
Substitute expected counts into each denominator: χ2=322.20(324−322.20)2+73.60(70−73.60)2+4.20(6−4.20)2.
Evaluate individual terms: 322.203.24≈0.0100, 73.6012.96≈0.1761, and 4.203.24≈0.7714.
Sum the terms to find the test statistic: χ2=0.0100+0.1761+0.7714≈1.09.
χ2=1.09; Fail to reject H0 (p>0.05)
NEXT STEPS
Final Takeaways from Your TeacherMemorize the mnemonic 'O minus E squared over E' to reinforce that expected is in the denominator.
Practice recalculating Chi-Square terms on datasets with rare genotype classes, where using O instead of E causes the largest numerical discrepancies.
Foundational Rules & Step-by-Step Breakdown
Formulate the Hypotheses and Pharmacogenomic Context
In pharmacogenomics, thiopurine S-methyltransferase (TPMT) metabolizes thiopurine drugs like azathioprine. Deficiency alleles (such as ∗3A) lead to impaired drug clearance and life-threatening hematopoietic toxicity. Evaluating Hardy-Weinberg equilibrium (HWE) confirms whether allele and genotype distributions in the patient cohort reflect standard population-genetic expectations.
- Null Hypothesis (H0): The cohort distribution complies with Hardy-Weinberg equilibrium.
- Alternative Hypothesis (H1): The cohort distribution deviates significantly from Hardy-Weinberg equilibrium.
Determine Observed Allele Frequencies
The cohort consists of N=400 diploid patients, representing 2N=800 total alleles:
- Homozygous wild-type (∗1/∗1): 324 individuals
- Heterozygous (∗1/∗3A): 70 individuals
- Homozygous mutant (∗3A/∗3A): 6 individuals
Calculate the count and relative frequency of each allele:
- For allele ∗1 (frequency p): Count(∗1)=2(324)+70=648+70=718 p=800718=0.8975
- For allele ∗3A (frequency q): Count(∗3A)=2(6)+70=12+70=82 q=80082=0.1025
(Check: p+q=0.8975+0.1025=1.000)
Calculate Expected Genotype Counts Under HWE
Using the expansion (p+q)2=p2+2pq+q2=1:
- Expected ∗1/∗1 (E11): E11=p2⋅N=(0.8975)2⋅400≈0.8055⋅400≈322.20
- Expected ∗1/∗3A (E12): E12=2pq⋅N=2(0.8975)(0.1025)⋅400≈0.1840⋅400≈73.60
- Expected ∗3A/∗3A (E22): E22=q2⋅N=(0.1025)2⋅400≈0.0105⋅400≈4.20
Compute the Chi-Square (χ2) Test Statistic
Apply Pearson's Chi-Square goodness-of-fit formula: χ2=∑E(O−E)2
Evaluating each genotype category:
- ∗1/∗1: 322.20(324−322.20)2=322.20(1.80)2≈0.010
- ∗1/∗3A: 73.60(70−73.60)2=73.60(−3.60)2≈0.176
- ∗3A/∗3A: 4.20(6−4.20)2=4.20(1.80)2≈0.771
Summing the components with standard intermediate trial rounding yields: χ2=1.09
Degrees of Freedom and Statistical Decision
Common Pitfall: For a standard goodness-of-fit test with k phenotypic classes, degrees of freedom are often calculated as df=k−1. However, in a Hardy-Weinberg equilibrium test where allele frequencies are estimated directly from sample genotype data, one additional degree of freedom is lost: df=k−1−m=3−1−1=1 where m=1 is the number of independent parameters estimated (p).
At significance level α=0.05 with df=1:
- Critical value: χcrit2=3.841
- Test statistic: χ2=1.09
Because χ2=1.09<3.841, the test statistic falls well within the non-rejection region (p>0.05).
Formal Conclusion: Fail to reject H0 (p>0.05). The observed TPMT genotype distribution complies with Hardy-Weinberg equilibrium.
Check Final Answer
χ2=1.09
Fail to reject H0 (p>0.05)
Lock It In
Why does the expected frequency of heterozygotes in Hardy-Weinberg equilibrium equal 2pq rather than pq?
A heterozygote can arise in two distinct ways: maternal A with paternal a, or maternal a with paternal A (pq+qp=2pq).
Similar Questions & Related Knowledge
Similar Questions
A population of 200 individuals has allele frequencies p=0.7 for allele A and q=0.3 for allele a. Under Hardy-Weinberg equilibrium, calculate the expected number of homozygous dominant (AA), heterozygous (Aa), and homozygous recessive (aa) individuals.
Answer
E(AA)=p2⋅N=(0.49)(200)=98; E(Aa)=2pq⋅N=2(0.7)(0.3)(200)=84; E(aa)=q2⋅N=(0.09)(200)=18. (Check: 98+84+18=200).
In a genetic screening of 500 patients, 180 are homozygous wild-type (A/A), 240 are heterozygous (A/B), and 80 are homozygous mutant (B/B). Determine the observed allele frequencies p and q, and calculate the expected count for heterozygotes under Hardy-Weinberg equilibrium.
Answer
Total alleles =1000. Count of A=2(180)+240=600⟹p=0.60. Count of B=2(80)+240=400⟹q=0.40. Expected heterozygotes E(A/B)=2pq⋅N=2(0.60)(0.40)(500)=240.
In a sample of 100 individuals, observed counts are 49 of genotype A1A1, 42 of genotype A1A2, and 9 of genotype A2A2. Test whether this population is in Hardy-Weinberg equilibrium at α=0.05 (critical value χ2=3.841 for df=1). Show the test statistic and formal decision.
Answer
p=2002(49)+42=0.70, q=0.30. Expected counts: E11=(0.7)2(100)=49, E12=2(0.7)(0.3)(100)=42, E22=(0.3)2(100)=9. Because O=E for all classes, χ2=0. Since 0<3.841, fail to reject H0; the population complies with Hardy-Weinberg equilibrium.
Related Knowledge
- 01Explain the Human Genome Project and Its Applications
- 02Track genetic information based on DNA, RNA and amino acid information
- 03Differentiate the structure and function of DNA and RNA
- 04Use the Hardy-Weinberg Principle to Analyze Gene Frequencies
- 05Analyze evidence and limitations of genetic technologies
- 06Explain genetic engineering and recombinant DNA