Resources

An AP Biology student investigates whether natural selection is actively altering allele frequencies at the pocket mouse (Chaetodipus intermedius) Mc1r locus on a dark basalt lava flow. The null hypothesis (H0H_0) states the population is in Hardy-Weinberg equilibrium. In a sample of 200200 mice, the observed genotypic counts are 8484 homozygous dominant (DDDD), 7272 heterozygous (DdDd), and 4444 homozygous recessive (dddd). Calculate the sample allele frequencies, the expected counts under Hardy-Weinberg equilibrium, and the resulting chi-square test statistic (χ2\chi^2). Using a critical threshold value of χcrit2=3.841\chi_{\text{crit}}^2 = 3.841 at α=0.05\alpha = 0.05 with 1 degree of freedom1\text{ degree of freedom}, state the explicit statistical decision regarding H0H_0.

Answer and steps

Final answer

Allele frequencies: p=0.60p = 0.60, q=0.40q = 0.40; Expected counts: E(DD)=72.0E(DD) = 72.0, E(Dd)=96.0E(Dd) = 96.0, E(dd)=32.0E(dd) = 32.0; χ2=12.50\chi^2 = 12.50; Because χ2=12.50>3.841\chi^2 = 12.50 > 3.841 (p<0.05p < 0.05), reject H0H_0.

Steps

01

Calculate the Allele Frequencies (pp and qq)

Each diploid individual carries two alleles at the Mc1r locus, giving a total gene pool of: Total alleles=200×2=400\text{Total alleles} = 200 \times 2 = 400

Count the copies of the dominant allele DD:

  • Each DDDD individual has 22 copies: 84×2=16884 \times 2 = 168
  • Each DdDd individual has 11 copy: 72×1=7272 \times 1 = 72
  • Total DD alleles =168+72=240= 168 + 72 = 240

p=freq(D)=240400=0.60p = \text{freq}(D) = \frac{240}{400} = 0.60

Count the copies of the recessive allele dd (or calculate q=1−pq = 1 - p):

  • Each dddd individual has 22 copies: 44×2=8844 \times 2 = 88
  • Each DdDd individual has 11 copy: 72×1=7272 \times 1 = 72
  • Total dd alleles =88+72=160= 88 + 72 = 160

q=freq(d)=160400=0.40q = \text{freq}(d) = \frac{160}{400} = 0.40

Common Pitfall: Never calculate qq as freq(dd)\sqrt{\text{freq}(dd)} unless you already know the population is in Hardy-Weinberg equilibrium. In a test for equilibrium, you must determine allele frequencies directly from observed genotype counts by counting alleles.


02

Calculate Expected Genotype Counts under Hardy-Weinberg Equilibrium

According to the Hardy-Weinberg principle, expected genotype frequencies are given by p2+2pq+q2=1p^2 + 2pq + q^2 = 1:

  • Expected frequency of DDDD: p2=(0.60)2=0.36p^2 = (0.60)^2 = 0.36 E(DD)=0.36×200=72.0E(DD) = 0.36 \times 200 = 72.0
  • Expected frequency of DdDd: 2pq=2⋅(0.60)⋅(0.40)=0.482pq = 2 \cdot (0.60) \cdot (0.40) = 0.48 E(Dd)=0.48×200=96.0E(Dd) = 0.48 \times 200 = 96.0
  • Expected frequency of dddd: q2=(0.40)2=0.16q^2 = (0.40)^2 = 0.16 E(dd)=0.16×200=32.0E(dd) = 0.16 \times 200 = 32.0

03

Compute the Chi-Square Statistic (χ2\chi^2)

Use the formula: χ2=∑(O−E)2E\chi^2 = \sum \frac{(O - E)^2}{E}

GenotypeObserved (OO)Expected (EE)O−EO - E(O−E)2(O - E)^2(O−E)2E\frac{(O - E)^2}{E}
DDDD848472.072.0+12.0+12.0144.0144.0144.072.0=2.00\frac{144.0}{72.0} = 2.00
DdDd727296.096.0−24.0-24.0576.0576.0576.096.0=6.00\frac{576.0}{96.0} = 6.00
dddd444432.032.0+12.0+12.0144.0144.0144.032.0=4.50\frac{144.0}{32.0} = 4.50

Summing the terms across all genotypes: χ2=2.00+6.00+4.50=12.50\chi^2 = 2.00 + 6.00 + 4.50 = 12.50


04

Compare with Critical Value and State Decision

  • Calculated test statistic: χ2=12.50\chi^2 = 12.50
  • Critical value (α=0.05\alpha = 0.05, df=1df = 1): χcrit2=3.841\chi_{\text{crit}}^2 = 3.841

Because χ2=12.50>3.841\chi^2 = 12.50 > 3.841 (p<0.05p < 0.05), the observed genotype distribution differs significantly from Hardy-Weinberg expectations. Therefore, reject H0H_0. The population is not in Hardy-Weinberg equilibrium at this locus, providing evidence that evolutionary forces (such as natural selection) are actively operating.

Typical errors

OverviewACEpath Teacher's Diagnosis

01 The student mistakenly assumes the population is already in Hardy-Weinberg equilibrium and calculates q by taking the square root of the homozygous recessive genotype frequency rather than counting alleles directly from the sample.

Sample Student Work

Reviewed by ACEpath Teacher
Step-by-Step Review
Walk Through It with Your Teacher
Incorrect
  1. Step 1

    q2=44200=0.22  ⟹  q=0.22≈0.469  ⟹  p=1−0.469=0.531q^2 = \frac{44}{200} = 0.22 \implies q = \sqrt{0.22} \approx 0.469 \implies p = 1 - 0.469 = 0.531

    Correct

    p=2(84)+722(200)=240400=0.60p = \frac{2(84) + 72}{2(200)} = \frac{240}{400} = 0.60, q=2(44)+722(200)=160400=0.40q = \frac{2(44) + 72}{2(200)} = \frac{160}{400} = 0.40

    You calculated qq by taking the square root of the homozygous recessive genotype frequency (q=0.22q = \sqrt{0.22}). When testing whether a population is in Hardy-Weinberg equilibrium, you cannot assume equilibrium holds. You must determine pp and qq by directly counting alleles across all observed individuals.

  2. Step 2

    Expected DD=(0.531)2×200=56.39  ⟹  Expected Dd=2(0.531)(0.469)×200=99.61  ⟹  Expected dd=(0.469)2×200=44.00\text{Expected } DD = (0.531)^2 \times 200 = 56.39 \implies \text{Expected } Dd = 2(0.531)(0.469) \times 200 = 99.61 \implies \text{Expected } dd = (0.469)^2 \times 200 = 44.00

    Correct

    E(DD)=(0.60)2×200=72.0E(DD) = (0.60)^2 \times 200 = 72.0, E(Dd)=2(0.60)(0.40)×200=96.0E(Dd) = 2(0.60)(0.40) \times 200 = 96.0, E(dd)=(0.40)2×200=32.0E(dd) = (0.40)^2 \times 200 = 32.0

    Your formulas for expected counts (p2Np^2 N, 2pqN2pq N, q2Nq^2 N) were applied correctly, but the resulting numbers are off because they inherited the incorrect allele frequencies from Step 1.

  3. Step 3

    χ2=(84−56.39)256.39+(72−99.61)299.61+(44−44.00)244.00=13.52+7.65+0=21.17\chi^2 = \frac{(84 - 56.39)^2}{56.39} + \frac{(72 - 99.61)^2}{99.61} + \frac{(44 - 44.00)^2}{44.00} = 13.52 + 7.65 + 0 = 21.17

    Correct

    χ2=(84−72.0)272.0+(72−96.0)296.0+(44−32.0)232.0=2.00+6.00+4.50=12.50\chi^2 = \frac{(84 - 72.0)^2}{72.0} + \frac{(72 - 96.0)^2}{96.0} + \frac{(44 - 32.0)^2}{32.0} = 2.00 + 6.00 + 4.50 = 12.50

    You set up and evaluated the chi-square sum ∑(O−E)2E\sum \frac{(O - E)^2}{E} properly based on your values, but the total was distorted by your expected counts. Notice how setting q=freq(dd)q = \sqrt{\text{freq}(dd)} artificially forced (O−E)(O - E) for dddd to be zero.

  4. Step 4

    21.17>3.84121.17 > 3.841, so reject H0H_0

    Correct

    Because χ2=12.50>3.841\chi^2 = 12.50 > 3.841, reject H0H_0

    You correctly compared your test statistic against the critical value χcrit2=3.841\chi_{\text{crit}}^2 = 3.841 and reached the correct rejection decision, though your test statistic value of 21.1721.17 was incorrect.

WHAT YOU DID WELL
Compliments from Your Teacher

You correctly used the Hardy-Weinberg expected genotype proportion formulas p2p^2, 2pq2pq, and q2q^2.

You set up each term of the chi-square formula (O−E)2E\frac{(O - E)^2}{E} correctly.

You accurately compared your test statistic against the critical value 3.8413.841 to state the rejection decision.

THE ERROR
Where Your ACEpath Teacher Spotted the Mistake
Presuming HWE during HWE testing

none

WHY IT HAPPENED
ACEpath Teacher's Diagnosis

You assumed the population was already in Hardy-Weinberg equilibrium by setting q=freq(dd)q = \sqrt{\text{freq}(dd)}. When investigating whether a population is evolving or in equilibrium, you must calculate allele frequencies using direct allele counting (p=2NDD+NDd2Np = \frac{2 N_{DD} + N_{Dd}}{2N}), not genotype frequency square roots.

REASONING PATH
Your ACEpath teacher’s suggested approach
Allele Counting vs. Square Root Method
  • Only use q=freq(dd)q = \sqrt{\text{freq}(dd)} when the problem explicitly states that the population is already in Hardy-Weinberg equilibrium. When testing for equilibrium using χ2\chi^2, you must count individual alleles: p=2(DD)+Dd2Np = \frac{2(DD) + Dd}{2N} and q=2(dd)+Dd2Nq = \frac{2(dd) + Dd}{2N}.

  • Always count total alleles in the gene pool (2N2N) first before calculating expected genotypic counts.

CORRECTED PATH
ACEpath Teacher's Demonstration
  1. Find total alleles: 200×2=400200 \times 2 = 400.

  2. Count DD alleles: 2(84)+72=240  ⟹  p=240400=0.602(84) + 72 = 240 \implies p = \frac{240}{400} = 0.60.

  3. Count dd alleles: 2(44)+72=160  ⟹  q=160400=0.402(44) + 72 = 160 \implies q = \frac{160}{400} = 0.40.

  4. Compute expected counts: E(DD)=0.602×200=72.0E(DD) = 0.60^2 \times 200 = 72.0, E(Dd)=2(0.60)(0.40)×200=96.0E(Dd) = 2(0.60)(0.40) \times 200 = 96.0, E(dd)=0.402×200=32.0E(dd) = 0.40^2 \times 200 = 32.0.

  5. Compute χ2\chi^2: (84−72.0)272.0+(72−96.0)296.0+(44−32.0)232.0=2.00+6.00+4.50=12.50\frac{(84 - 72.0)^2}{72.0} + \frac{(72 - 96.0)^2}{96.0} + \frac{(44 - 32.0)^2}{32.0} = 2.00 + 6.00 + 4.50 = 12.50.

Final answer

Allele frequencies: p=0.60p = 0.60, q=0.40q = 0.40; Expected counts: E(DD)=72.0E(DD) = 72.0, E(Dd)=96.0E(Dd) = 96.0, E(dd)=32.0E(dd) = 32.0; χ2=12.50\chi^2 = 12.50; Because 12.50>3.84112.50 > 3.841, reject H0H_0.

NEXT STEPS
Final Takeaways from Your Teacher
  • Review the distinction between testing for equilibrium (count alleles directly) and applying equilibrium to estimate carrier frequencies (use q=q2q = \sqrt{q^2}).

  • Practice checking whether your calculated expected count E(dd)E(dd) artificially equals the observed count O(dd)O(dd), which is a telltale sign of using q=freq(dd)q = \sqrt{\text{freq}(dd)}.

OverviewACEpath Teacher's Diagnosis

02 The student forgets the factor of 2 in the heterozygous expected frequency (using pq instead of 2pq), causing the expected genotypic counts to not sum to the sample size and producing an inflated chi-square statistic.

Sample Student Work

Reviewed by ACEpath Teacher
Step-by-Step Review
Walk Through It with Your Teacher
Partially correct
  1. Step 1

    Total alleles=2×200=400  ⟹  p=2×84+72400=0.60  ⟹  q=1−0.60=0.40\text{Total alleles} = 2 \times 200 = 400 \implies p = \frac{2 \times 84 + 72}{400} = 0.60 \implies q = 1 - 0.60 = 0.40

  2. Step 2

    Expected DD=(0.60)2×200=72  ⟹  Expected Dd=(0.60)(0.40)×200=48  ⟹  Expected dd=(0.40)2×200=32\text{Expected } DD = (0.60)^2 \times 200 = 72 \implies \text{Expected } Dd = (0.60)(0.40) \times 200 = 48 \implies \text{Expected } dd = (0.40)^2 \times 200 = 32

    Correct

    Expected DD=p2N=72.0  ⟹  Expected Dd=2pqN=2(0.60)(0.40)(200)=96.0  ⟹  Expected dd=q2N=32.0\text{Expected } DD = p^2 N = 72.0 \implies \text{Expected } Dd = 2pqN = 2(0.60)(0.40)(200) = 96.0 \implies \text{Expected } dd = q^2 N = 32.0

    You calculated the expected heterozygote count as pqNpqN instead of 2pqN2pqN. Because heterozygous offspring can receive the DD allele from either parent, their expected frequency is 2pq2pq.

  3. Step 3

    χ2=(84−72)272+(72−48)248+(44−32)232=2+12+4.5=18.5\chi^2 = \frac{(84 - 72)^2}{72} + \frac{(72 - 48)^2}{48} + \frac{(44 - 32)^2}{32} = 2 + 12 + 4.5 = 18.5

    Correct

    χ2=(84−72.0)272.0+(72−96.0)296.0+(44−32.0)232.0=2.00+6.00+4.50=12.50\chi^2 = \frac{(84 - 72.0)^2}{72.0} + \frac{(72 - 96.0)^2}{96.0} + \frac{(44 - 32.0)^2}{32.0} = 2.00 + 6.00 + 4.50 = 12.50

    Your chi-square calculation followed the correct formula, but using an expected heterozygote count of 4848 instead of 9696 inflated your middle term from 6.006.00 to 12.0012.00.

  4. Step 4

    18.5>3.84118.5 > 3.841, so reject H0H_0.

    Correct

    Because χ2=12.50>3.841\chi^2 = 12.50 > 3.841, reject H0H_0.

    Your statistical conclusion to reject H0H_0 is qualitatively correct because both values exceed χcrit2\chi_{\text{crit}}^2, but your test statistic of 18.518.5 was derived from incorrect expected counts.

WHAT YOU DID WELL
Compliments from Your Teacher

You correctly counted alleles from diploid genotype numbers to determine p=0.60p = 0.60 and q=0.40q = 0.40.

You correctly applied the chi-square goodness-of-fit formula ∑(O−E)2E\sum \frac{(O - E)^2}{E}.

You correctly compared your calculated test statistic to the critical value of 3.8413.841 to state a statistical decision.

THE ERROR
Where Your ACEpath Teacher Spotted the Mistake
Omitted Heterozygote Factor of 2

You calculated expected heterozygotes using pq×Npq \times N rather than 2pq×N2pq \times N.

WHY IT HAPPENED
ACEpath Teacher's Diagnosis

Conflating the probability of a single ordered combination (DD from egg, dd from sperm) with the total diploid heterozygote genotype frequency, which accounts for both parental combinations (2pq2pq).

REASONING PATH
Your ACEpath teacher’s suggested approach
Sum of Expected Counts Check
  • In any Hardy-Weinberg test, the expected counts must sum to the total sample size: E(DD)+E(Dd)+E(dd)=NE(DD) + E(Dd) + E(dd) = N.

  • Notice that 72+48+32=152≠20072 + 48 + 32 = 152 \neq 200. Catching this discrepancy immediately alerts you to the missing 2pq2pq term.

Binomial Expansion Rule
  • Random union of gametes follows (p+q)2=p2+2pq+q2=1(p + q)^2 = p^2 + 2pq + q^2 = 1.

  • Always write out 2pq2pq explicitly before substituting values for the heterozygous class.

CORRECTED PATH
ACEpath Teacher's Demonstration
  1. Recalculate expected heterozygotes: E(Dd)=2pq×N=2(0.60)(0.40)(200)=96.0E(Dd) = 2pq \times N = 2(0.60)(0.40)(200) = 96.0.

  2. Verify total expected individuals: 72.0+96.0+32.0=200.072.0 + 96.0 + 32.0 = 200.0.

  3. Recalculate the middle chi-square term: (72−96.0)296.0=(−24.0)296.0=576.096.0=6.00\frac{(72 - 96.0)^2}{96.0} = \frac{(-24.0)^2}{96.0} = \frac{576.0}{96.0} = 6.00.

  4. Sum all three terms: χ2=2.00+6.00+4.50=12.50\chi^2 = 2.00 + 6.00 + 4.50 = 12.50.

Final answer

Allele frequencies: p=0.60p = 0.60, q=0.40q = 0.40; Expected counts: E(DD)=72.0E(DD) = 72.0, E(Dd)=96.0E(Dd) = 96.0, E(dd)=32.0E(dd) = 32.0; χ2=12.50\chi^2 = 12.50; Reject H0H_0 because 12.50>3.84112.50 > 3.841.

NEXT STEPS
Final Takeaways from Your Teacher
  • Always add your expected genotypic counts together before computing chi-square; if their sum does not equal your sample size NN, re-check the 2pq2pq term.

  • Practice calculating expected genotypic counts for two additional populations using the full binomial expansion.

OverviewACEpath Teacher's Diagnosis

03 The student confuses the rejection rule for a hypothesis test and decides to fail to reject the null hypothesis because the test statistic exceeds the critical value.

Sample Student Work

Reviewed by ACEpath Teacher
Step-by-Step Review
Walk Through It with Your Teacher
Incorrect
  1. Step 1

    Total alleles=400  ⟹  p=(2×84+72)/400=0.60  ⟹  q=(2×44+72)/400=0.40\text{Total alleles} = 400 \implies p = (2 \times 84 + 72) / 400 = 0.60 \implies q = (2 \times 44 + 72) / 400 = 0.40

  2. Step 2

    Expected DD=(0.60)2×200=72  ⟹  Expected Dd=2(0.60)(0.40)×200=96  ⟹  Expected dd=(0.40)2×200=32\text{Expected } DD = (0.60)^2 \times 200 = 72 \implies \text{Expected } Dd = 2(0.60)(0.40) \times 200 = 96 \implies \text{Expected } dd = (0.40)^2 \times 200 = 32

  3. Step 3

    χ2=(84−72)272+(72−96)296+(44−32)232=14472+57696+14432=2+6+4.5=12.5\chi^2 = \frac{(84-72)^2}{72} + \frac{(72-96)^2}{96} + \frac{(44-32)^2}{32} = \frac{144}{72} + \frac{576}{96} + \frac{144}{32} = 2 + 6 + 4.5 = 12.5

  4. Step 4

    Since χ2=12.5 is greater than 3.841, fail to reject H0.\text{Since } \chi^2 = 12.5 \text{ is greater than } 3.841\text{, fail to reject } H_0.

    Correct

    Because χ2=12.50>3.841, reject H0.\text{Because } \chi^2 = 12.50 > 3.841\text{, reject } H_0.

    When the calculated test statistic exceeds the critical value (χ2>χcrit2\chi^2 > \chi_{\text{crit}}^2), the discrepancy between observed and expected counts is too large to attribute to chance alone, so you must reject H0H_0.

WHAT YOU DID WELL
Compliments from Your Teacher

You correctly counted alleles from individual genotypes rather than assuming equilibrium to find pp and qq.

You accurately computed expected genotype frequencies and counts using the Hardy-Weinberg proportions.

You set up and evaluated the chi-square test statistic without any arithmetic errors.

THE ERROR
Where Your ACEpath Teacher Spotted the Mistake
Reversed hypothesis test decision rule

no

WHY IT HAPPENED
ACEpath Teacher's Diagnosis

You inverted the rejection threshold rule for goodness-of-fit hypothesis testing, associating a large test statistic with accepting or failing to reject the null hypothesis rather than rejecting it.

REASONING PATH
Your ACEpath teacher’s suggested approach
Chi-Square Decision Rule
  • If χcalc2>χcrit2\chi^2_{\text{calc}} > \chi^2_{\text{crit}} (or p<αp < \alpha), the difference is statistically significant, so reject H0H_0. If χcalc2≤χcrit2\chi^2_{\text{calc}} \le \chi^2_{\text{crit}} (or p≥αp \ge \alpha), fail to reject H0H_0.

  • Compare χ2=12.5\chi^2 = 12.5 to 3.8413.841. Because 12.5>3.84112.5 > 3.841, conclude that the observed counts deviate significantly from equilibrium and explicitly reject H0H_0.

CORRECTED PATH
ACEpath Teacher's Demonstration
  1. Compare the test statistic to the critical value: χ2=12.50>3.841\chi^2 = 12.50 > 3.841.

  2. Because the test statistic lies in the critical region (p<0.05p < 0.05), the deviation from expected Hardy-Weinberg values is statistically significant.

  3. Conclude the statistical decision: reject H0H_0.

Final answer

Because χ2=12.50>3.841\chi^2 = 12.50 > 3.841 (p<0.05p < 0.05), reject H0H_0.

NEXT STEPS
Final Takeaways from Your Teacher
  • Memorize the core decision rule: large test statistic means large deviation from null expectation, which means you reject H0H_0.

  • Practice interpreting chi-square values on a distribution curve showing the rejection region in the right tail.

Lock it in

Similar question

01

A sample of 100100 plants contains 4949 individuals with genotype AAAA, 4242 with AaAa, and 99 with aaaa. Calculate the sample allele frequencies pp and qq by direct allele counting, and determine the expected counts under Hardy-Weinberg equilibrium.

Answer

p=2(49)+42200=140200=0.70p = \frac{2(49) + 42}{200} = \frac{140}{200} = 0.70 and q=1−0.70=0.30q = 1 - 0.70 = 0.30. Expected counts: E(AA)=0.702×100=49.0E(AA) = 0.70^2 \times 100 = 49.0, E(Aa)=2(0.70)(0.30)×100=42.0E(Aa) = 2(0.70)(0.30) \times 100 = 42.0, and E(aa)=0.302×100=9.0E(aa) = 0.30^2 \times 100 = 9.0.

02

A population of 500500 butterflies has observed genotype counts of 180 BB180\ BB, 140 Bb140\ Bb, and 180 bb180\ bb. Calculate the allele frequencies pp and qq using direct counting, find the expected genotype counts under Hardy-Weinberg equilibrium, and compute the chi-square statistic χ2\chi^2.

Answer

Total alleles =1000= 1000. Dominant allele count =2(180)+140=500= 2(180) + 140 = 500, so p=0.50p = 0.50 and q=0.50q = 0.50. Expected counts: E(BB)=0.25×500=125.0E(BB) = 0.25 \times 500 = 125.0, E(Bb)=0.50×500=250.0E(Bb) = 0.50 \times 500 = 250.0, E(bb)=0.25×500=125.0E(bb) = 0.25 \times 500 = 125.0. χ2=(180−125)2125+(140−250)2250+(180−125)2125=24.2+48.4+24.2=96.8\chi^2 = \frac{(180 - 125)^2}{125} + \frac{(140 - 250)^2}{250} + \frac{(180 - 125)^2}{125} = 24.2 + 48.4 + 24.2 = 96.8.

03

An isolated island population of 250250 lizards has 130130 homozygous banded (TTTT), 4040 heterozygous banded (TtTt), and 8080 homozygous unbanded (tttt). Test whether this locus is in Hardy-Weinberg equilibrium at α=0.05\alpha = 0.05 (critical value χcrit2=3.841\chi_{\text{crit}}^2 = 3.841, df=1df = 1). State the allele frequencies, expected counts, χ2\chi^2 value, and your statistical decision.

Answer

Total alleles =500= 500. p=2(130)+40500=300500=0.60p = \frac{2(130) + 40}{500} = \frac{300}{500} = 0.60; q=2(80)+40500=200500=0.40q = \frac{2(80) + 40}{500} = \frac{200}{500} = 0.40. Expected counts: E(TT)=0.36×250=90.0E(TT) = 0.36 \times 250 = 90.0, E(Tt)=0.48×250=120.0E(Tt) = 0.48 \times 250 = 120.0, E(tt)=0.16×250=40.0E(tt) = 0.16 \times 250 = 40.0. χ2=(130−90)290+(40−120)2120+(80−40)240=17.78+53.33+40.00=111.11\chi^2 = \frac{(130 - 90)^2}{90} + \frac{(40 - 120)^2}{120} + \frac{(80 - 40)^2}{40} = 17.78 + 53.33 + 40.00 = 111.11. Because χ2=111.11>3.841\chi^2 = 111.11 > 3.841, reject H0H_0; the population is not in Hardy-Weinberg equilibrium.

Loading workspace…