Fatskills
Practice. Master. Repeat.
Study Guide: AP Biology: Statistical Analysis – Chi?Square Test for Hardy?Weinberg and Genetics Data
Source: https://www.fatskills.com/ap-biology/chapter/ap-biology-statistical-analysis-chisquare-test-for-hardyweinberg-and-genetics-data

AP Biology: Statistical Analysis – Chi?Square Test for Hardy?Weinberg and Genetics Data

By Fatskills Exam Guides Team — the exam nerds behind 28,500+ quizzes and 2.1M practice questions across 500+ global exams.

⏱️ ~4 min read

Statistical Analysis – Chi?Square Test for Hardy?Weinberg and Genetics Data

Concept Summary

  • Chi-square (?²) test: Statistical method comparing observed vs. expected data to determine if deviations are due to chance or other factors; critical for Hardy-Weinberg equilibrium (HWE) analysis.
  • Null hypothesis (H?): Assumes no significant difference between observed and expected data (e.g., population is in HWE); rejection suggests evolutionary forces.
  • Degrees of freedom (df): Number of independent categories minus one (df = n – 1); determines critical ?² value for significance testing.
  • Hardy-Weinberg equilibrium (HWE): Model predicting allele/genotype frequencies remain constant without evolution; ?² tests deviations from expected ratios (e.g., 1:2:1 or 3:1).
  • P-value: Probability of observing data as extreme as the sample if H? is true; typically use P = 0.05 as threshold for significance (reject H? if P < 0.05).

Core Questions

WHAT (definitional)

Q: What is the chi-square test? A: A statistical test comparing observed vs. expected frequencies to assess if differences are due to random chance. Trap/Clarification: It does not prove causation (e.g., selection) but only tests fit to a model (e.g., HWE).

Q: What is the null hypothesis in a Hardy-Weinberg ?² test? A: The population is in HWE (no evolution), so observed genotype frequencies match expected (p² + 2pq + q²). Trap/Clarification: Rejecting H? suggests evolution may be occurring, but doesn’t identify the specific force (e.g., drift, selection).


WHY (causal/explanatory)

Q: Why is the chi-square test used in genetics? A: To determine if observed genotype/phenotype ratios deviate significantly from expected Mendelian or HWE ratios. Trap/Clarification: A "good fit" (P > 0.05) doesn’t prove HWE—only that deviations aren’t statistically significant.

Q: Why are degrees of freedom (df) important in ?² tests? A: df adjusts the critical ?² value for the number of categories, ensuring accurate significance thresholds. Trap/Clarification: For HWE, df = 1 (not 2) because allele frequencies constrain genotype frequencies (p + q = 1).


HOW (process/application)

Q: How do you calculate the chi-square statistic? A: ?² = ?[(O – E)² / E], where O = observed, E = expected; sum across all categories. Trap/Clarification: Rounding errors in E values (e.g., p²) can skew results—use exact calculations.

Q: How do you perform a ?² test for HWE? A: 1) Calculate allele frequencies (p, q), 2) Compute expected genotype counts (Np², 2Npq, Nq²), 3) Apply ?² formula, 4) Compare to critical value (df = 1, P = 0.05). Trap/Clarification: Expected counts must be ?5 per category; pool rare genotypes if needed.


CAN (conditions/possibilities)

Q: Can the ?² test prove a population is in HWE? A: No—it can only fail to reject H? (no significant deviation), but other tests or data are needed for confirmation. Trap/Clarification: Small sample sizes may hide deviations (Type II error), while large samples may detect trivial ones.

Q: Under what conditions is the ?² test invalid? A: If expected counts are <5 in any category or if data are not independent (e.g., overlapping generations). Trap/Clarification: For HWE, only diploid, sexually reproducing populations with random mating apply.


Quick Facts & Traps

  • Fact: ?² critical value for df=1 at P=0.05 is 3.841—memorize this for HWE questions.
  • Trap: Using phenotype ratios (e.g., 3:1) instead of genotype counts-Reality: ?² requires raw counts, not proportions.
  • Fact: HWE assumptions: No mutation, migration, selection, drift, or non-random mating.
  • Trap: Ignoring sample size-Reality: Small samples inflate ?² values, leading to false rejections of H?.
  • Fact: df for HWE is always 1 (not 2) because p + q = 1 constrains the system.
  • Trap: Confusing P-value with effect size-Reality: P < 0.05 means "unlikely due to chance," not "large deviation."

Rapid-Fire True/False

  • Statement: A ?² value of 4.0 with df=1 means the population is not in HWE. Answer: TRUE Why the common mistake happens: Students forget the critical value (3.841) and assume any ?² > 0 rejects H?.

  • Statement: If observed and expected counts match exactly, ?² = 0 and P = 1. Answer: TRUE Why the common mistake happens: Students confuse P = 1 (perfect fit) with P = 0 (impossible fit).

  • Statement: The ?² test can determine which evolutionary force (e.g., selection, drift) caused deviations from HWE. Answer: FALSE Why the common mistake happens: ?² only tests fit to HWE; additional data (e.g., allele frequency changes) are needed to infer mechanisms.