Resources
In a post-HGP clinical pharmacogenomics trial, 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: individuals homozygous wild-type (), heterozygous (), and homozygous mutant (). Using the observed allele frequencies from this sample, perform a Chi-Square () goodness-of-fit test at (critical value for ) to evaluate whether the observed distribution complies with Hardy-Weinberg equilibrium. State your calculated test statistic rounded to three significant figures, and report the formal conclusion.
Answer and steps
Final answer
; Fail to reject ()
Steps
Formulate the Hypotheses and Pharmacogenomic Context
In pharmacogenomics, thiopurine -methyltransferase () metabolizes thiopurine drugs like azathioprine. Deficiency alleles (such as ) lead to impaired drug clearance and life-threatening hematopoietic toxicity. Evaluating Hardy-Weinberg equilibrium () confirms whether allele and genotype distributions in the patient cohort reflect standard population-genetic expectations.
- Null Hypothesis (): The cohort distribution complies with Hardy-Weinberg equilibrium.
- Alternative Hypothesis (): The cohort distribution deviates significantly from Hardy-Weinberg equilibrium.
Determine Observed Allele Frequencies
The cohort consists of diploid patients, representing total alleles:
- Homozygous wild-type (): individuals
- Heterozygous (): individuals
- Homozygous mutant (): individuals
Calculate the count and relative frequency of each allele:
- For allele (frequency ):
- For allele (frequency ):
(Check: )
Calculate Expected Genotype Counts Under HWE
Using the expansion :
- Expected ():
- Expected ():
- Expected ():
Compute the Chi-Square () Test Statistic
Apply Pearson's Chi-Square goodness-of-fit formula:
Evaluating each genotype category:
- :
- :
- :
Summing the components with standard intermediate trial rounding yields:
Degrees of Freedom and Statistical Decision
Common Pitfall: For a standard goodness-of-fit test with phenotypic classes, degrees of freedom are often calculated as . However, in a Hardy-Weinberg equilibrium test where allele frequencies are estimated directly from sample genotype data, one additional degree of freedom is lost: where is the number of independent parameters estimated ().
At significance level with :
- Critical value:
- Test statistic:
Because , the test statistic falls well within the non-rejection region ().
Formal Conclusion: Fail to reject (). The observed TPMT genotype distribution complies with Hardy-Weinberg equilibrium.
Typical errors
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 1
- Step 2Correct
You used instead of for the expected number of heterozygotes. Because heterozygous individuals can inherit either allele from either parent, the binomial expansion requires the coefficient of .
- Step 3Correct
Your goodness-of-fit formula was applied correctly, but the result was distorted by the incorrect expected heterozygote count of instead of .
- Step 4Correct
Because your calculated test statistic was artificially inflated, you rejected 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 .
You correctly applied allele-counting formulas to find and .
You correctly set up the Pearson Chi-Square goodness-of-fit sum and compared your calculated value to the critical threshold of .
THE ERROR
Where Your ACEpath Teacher Spotted the MistakeYou omitted the coefficient from the heterozygous expected genotype frequency, calculating instead of .
WHY IT HAPPENED
ACEpath Teacher's DiagnosisConflating individual allele combinations with diploid genotype frequencies. A heterozygote can form in two mutually exclusive ways (allele from the egg and allele from the sperm, or vice versa), which yields in the expansion .
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: .
Notice that . When your expected counts do not sum to , verify that heterozygotes were multiplied by .
CORRECTED PATH
ACEpath Teacher's DemonstrationRecalculate expected heterozygotes: .
Recompute the component for heterozygotes: .
Sum the three components: .
; Fail to reject ()
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 1
- Step 2Correct
In a diploid organism, each individual carries two alleles at an autosomal locus. With individuals, the gene pool contains total alleles. Dividing by yields values that sum to rather than relative proportions that sum to .
- Step 3Correct
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 () with the total number of alleles in the gene pool () when calculating relative allele frequencies.
REASONING PATH
Your ACEpath teacher’s suggested approach- Diploid Allele Pool Size
For an autosomal locus in diploid organisms, the total number of alleles is .
Always multiply the number of individuals by to establish the denominator before computing allele frequencies.
- Probability Sum Rule
The sum of all relative allele frequencies at a biallelic locus must satisfy .
Check your values immediately: if or , verify whether you forgot to multiply by in the denominator.
CORRECTED PATH
ACEpath Teacher's DemonstrationCalculate the expected counts under Hardy-Weinberg equilibrium: , , and .
Apply Pearson's Chi-Square formula: .
Compare the test statistic to the critical value with : .
; Fail to reject ()
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 1
- Step 2
- Step 3Correct
You placed the observed values (, , ) in the denominators of the Chi-Square formula instead of the expected values (, , ).
- Step 4Correct
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 and .
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 () rather than the expected counts () in each term of the Chi-Square goodness-of-fit formula.
WHY IT HAPPENED
ACEpath Teacher's DiagnosisConfusing the baseline standard of comparison () with the experimental sample observations () when writing . 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: .
Always check each term before summing to verify that the value under the fraction line is , never .
CORRECTED PATH
ACEpath Teacher's DemonstrationWrite the standard goodness-of-fit formula: .
Substitute expected counts into each denominator: .
Evaluate individual terms: , , and .
Sum the terms to find the test statistic: .
; Fail to reject ()
Lock it in
Why does the expected frequency of heterozygotes in Hardy-Weinberg equilibrium equal rather than ?
A heterozygote can arise in two distinct ways: maternal with paternal , or maternal with paternal ().
Similar question
A population of individuals has allele frequencies for allele and for allele . Under Hardy-Weinberg equilibrium, calculate the expected number of homozygous dominant (), heterozygous (), and homozygous recessive () individuals.
Answer
; ; . (Check: ).
In a genetic screening of patients, are homozygous wild-type (), are heterozygous (), and are homozygous mutant (). Determine the observed allele frequencies and , and calculate the expected count for heterozygotes under Hardy-Weinberg equilibrium.
Answer
Total alleles . Count of . Count of . Expected heterozygotes .
In a sample of individuals, observed counts are of genotype , of genotype , and of genotype . Test whether this population is in Hardy-Weinberg equilibrium at (critical value for ). Show the test statistic and formal decision.
Answer
, . Expected counts: , , . Because for all classes, . Since , fail to reject ; the population complies with Hardy-Weinberg equilibrium.