7: Chi Square Analysis
Students perform chi-square tests on genetic cross data to evaluate whether observed ratios fit expected Mendelian predictions.
LibreTexts reference: Chapter 7: Chi Square Analysis 
Matching Chi-Square Terms to Definitions
Click to show Matching Chi-Square Terms to Definitions example problem
Match each of the following chi-square (χ²) terms with their corresponding definitions.
Note: Each choice will be used exactly once.
| Your Choice | Prompt | |
|---|---|---|
| 1. null hypothesis, H0 | ||
| 2. critical value | ||
| 3. chi-square (χ²) test statistic | ||
| 4. p-value | ||
| 5. degrees of freedom |
Drag one of the choices below:
- A. we attempt to find evidence against this hypothesis in our chi-square (χ²) test
- B. represents how many independent values can vary after constraints are applied
- C. the smaller this number, the bigger the chi-square (χ²) test statistic
- D. the boundary of how extreme a test statistic we need to support the null hypothesis, H0
- E. a measure of the discrepancy between the observed and expected data sets
True/False Statements About Chi-Square Tests
Click to show True/False Statements About Chi-Square Tests example problem
Which one of the following statements is TRUE concerning chi-square (χ²) tests?
Chi-Square Terms from Definitions
Click to show Chi-Square Terms from Definitions example problem
Which one of the following chi-square (χ²) terms correspond to the definition 'the cutoff used to compare against the observed chi-square (χ²) test statistic'.
Chi-Square Values for Phenotypic Ratios
Click to show Chi-Square Values for Phenotypic Ratios example problem
| Data Table | ||||
|---|---|---|---|---|
| Phenotype | Expected | Observed | Calculation | Statistic |
| Yellow Round (Y–R–) | 90 | 95 | __ | __ |
| Yellow Wrinkled (Y–rr) | 30 | 25 | __ | __ |
| Green Round (yyR–) | 30 | 28 | __ | __ |
| Green Wrinkled (yyrr) | 10 | 12 | __ | __ |
| (sum) χ2 = | __ | |||
Complete the table and calculate the chi-squared (χ2) value.
Even though not part of the question, ask yourself whether you would reject or fail to reject the null hypothesis
Note: answers need to be within 2% of the correct number to be correct.
Hypothesis Decisions from Chi-Square Tests
Click to show Hypothesis Decisions from Chi-Square Tests example problem
| Table of Chi-Squared (χ²) Critical Values | ||||||||
|---|---|---|---|---|---|---|---|---|
| Degrees of Freedom | Probability | |||||||
| 0.95 | 0.90 | 0.75 | 0.50 | 0.25 | 0.10 | 0.05 | 0.01 | |
| 1 | 0.00 | 0.02 | 0.10 | 0.45 | 1.32 | 2.71 | 3.84 | 6.63 |
| 2 | 0.10 | 0.21 | 0.58 | 1.39 | 2.77 | 4.61 | 5.99 | 9.21 |
| 3 | 0.35 | 0.58 | 1.21 | 2.37 | 4.11 | 6.25 | 7.81 | 11.34 |
| 4 | 0.71 | 1.06 | 1.92 | 3.36 | 5.39 | 7.78 | 9.49 | 13.28 |
| Table 1 | ||||
|---|---|---|---|---|
| Phenotype | Expected | Observed | Calculation | Statistic |
| Yellow Round (Y–R–) | 90 | 95 | (95-90)²⁄ 90 | 0.278 |
| Yellow Wrinkled (Y–rr) | 30 | 31 | (31-30)²⁄ 30 | 0.033 |
| Green Round (yyR–) | 30 | 27 | (27-30)²⁄ 30 | 0.300 |
| Green Wrinkled (yyrr) | 10 | 7 | (7-10)²⁄ 10 | 0.900 |
| (sum) χ² = | 1.511 | |||
| Table 2 | ||||
|---|---|---|---|---|
| Phenotype | Expected | Observed | Calculation | Statistic |
| Yellow Round (Y–R–) | 90 | 95 | (95-90)²⁄ 95 | 0.263 |
| Yellow Wrinkled (Y–rr) | 30 | 31 | (31-30)²⁄ 31 | 0.032 |
| Green Round (yyR–) | 30 | 27 | (27-30)²⁄ 27 | 0.333 |
| Green Wrinkled (yyrr) | 10 | 7 | (7-10)²⁄ 7 | 1.286 |
| (sum) χ² = | 1.914 | |||
| Table 3 | ||||
|---|---|---|---|---|
| Phenotype | Expected | Observed | Calculation | Statistic |
| Yellow Round (Y–R–) | 90 | 95 | (95-90)²⁄ 95² | 0.003 |
| Yellow Wrinkled (Y–rr) | 30 | 31 | (31-30)²⁄ 31² | 0.001 |
| Green Round (yyR–) | 30 | 27 | (27-30)²⁄ 27² | 0.012 |
| Green Wrinkled (yyrr) | 10 | 7 | (7-10)²⁄ 7² | 0.184 |
| (sum) χ² = | 0.200 | |||
Your lab partner is trying again (eye roll) and did another a chi-squared (χ²) test on the F2 generation in a dihybid cross based on your lab data (above). They wanted to know if the results confirm the expected phenotype ratios.
You helped them set up the null hypothesis, so you know that part is correct, but they got confused and were unsure about how to calculate the chi-squared (χ²) value. So much so that they did it three (3) different ways.
Before you ask your instructor for a new lab partner, tell them which table is correct AND whether they can reject or fail to reject the null hypothesis using the information provided.
Errors in Chi-Square Calculations and Hypothesis Decisions
Click to show Errors in Chi-Square Calculations and Hypothesis Decisions example problem
| Table of Chi-Squared (χ²) Critical Values | ||||||||
|---|---|---|---|---|---|---|---|---|
| Degrees of Freedom | Probability | |||||||
| 0.95 | 0.90 | 0.75 | 0.50 | 0.25 | 0.10 | 0.05 | 0.01 | |
| 1 | 0.00 | 0.02 | 0.10 | 0.45 | 1.32 | 2.71 | 3.84 | 6.63 |
| 2 | 0.10 | 0.21 | 0.58 | 1.39 | 2.77 | 4.61 | 5.99 | 9.21 |
| 3 | 0.35 | 0.58 | 1.21 | 2.37 | 4.11 | 6.25 | 7.81 | 11.34 |
| 4 | 0.71 | 1.06 | 1.92 | 3.36 | 5.39 | 7.78 | 9.49 | 13.28 |
| Phenotype | Expected | Observed | Calculation | Statistic |
|---|---|---|---|---|
| Yellow Round (Y–R–) | 90 | 79 | (79-90)²⁄ 90 | 1.344 |
| Yellow Wrinkled (Y–rr) | 30 | 16 | (16-30)²⁄ 30 | 6.533 |
| Green Round (yyR–) | 30 | 50 | (50-30)²⁄ 30 | 13.333 |
| Green Wrinkled (yyrr) | 10 | 15 | (15-10)²⁄ 10 | 2.500 |
| (sum) χ² = | 23.711 | |||
The final result gives the chi-squared (χ²) test value of 23.71 with 2 degrees of freedom. Consulting the Table of χ² Critical Values and a level of significance α=0.05, we obtain a critical value of 5.99.
Since the chi-squared value of 23.71 is greater than the critical value of 5.99, the null hypothesis has BEEN REJECTED.
Your lab partner completed a chi-squared (χ²) test on your lab data (above) for the F2 generation in a standard dihybrid cross. The goal was to verify if the observed results matched the expected phenotype ratios.
However, it appears they made an error. What did they do wrong?
Chi-Square Tests for Hardy-Weinberg Equilibrium
Click to show Chi-Square Tests for Hardy-Weinberg Equilibrium example problem
| Table of Chi-Squared (χ2) Critical Values | ||||||||
|---|---|---|---|---|---|---|---|---|
| Degrees of Freedom | Probability | |||||||
| 0.95 | 0.90 | 0.75 | 0.50 | 0.25 | 0.10 | 0.05 | 0.01 | |
| 1 | 0.00 | 0.02 | 0.10 | 0.45 | 1.32 | 2.71 | 3.84 | 6.63 |
| 2 | 0.10 | 0.21 | 0.58 | 1.39 | 2.77 | 4.61 | 5.99 | 9.21 |
| 3 | 0.35 | 0.58 | 1.21 | 2.37 | 4.11 | 6.25 | 7.81 | 11.34 |
| 4 | 0.71 | 1.06 | 1.92 | 3.36 | 5.39 | 7.78 | 9.49 | 13.28 |
| Table 1 | ||||
|---|---|---|---|---|
| Phenotype | Observed | Expected | Calculation | Statistic |
| Red Flowers | 54 | 49.4 | (54-49.4)2⁄ 49.4 | 0.428 |
| Pink Flowers | 32 | 41.7 | (32-41.7)2⁄ 41.7 | 2.256 |
| White Flowers | 13 | 8.8 | (13-8.8)2⁄ 8.8 | 2.005 |
| (sum) χ2 = | 4.689 | |||
You finally have a new competent lab partner that you trust.
This lab partner calculated the allele frequencies of p=0.70 and q=0.30. Then they did a chi-squared (χ2) test for your Hardy-Weinberg data.
They need you to decide whether you reject or accept the null hypothesis using the information provided.
Null and Alternative Hypotheses for Genetic Crosses
Click to show Null and Alternative Hypotheses for Genetic Crosses example problem
You perform a standard dihybrid cross and count the F2 offspring phenotypes.
Total offspring scored: 192
| Observed data | |||
|---|---|---|---|
| Category | Ratio | Expected | Observed |
| Yellow Round (Y–R–) | 9 | 108 | 108 |
| Yellow Wrinkled (Y–rr) | 3 | 36 | 31 |
| Green Round (yyR–) | 3 | 36 | 38 |
| Green Wrinkled (yyrr) | 1 | 12 | 15 |
For a chi-squared (χ2) goodness-of-fit test, which option correctly states the null hypothesis (H0) and the alternative hypothesis (HA)?
Misstated Null Hypotheses for Genetic Ratios
Click to show Misstated Null Hypotheses for Genetic Ratios example problem
Your lab partner is trying again (eye roll).
You cross two heterozygous individuals (Aa × Aa) and score the offspring phenotypes.
Total offspring scored: 132
| Observed data | |||
|---|---|---|---|
| Category | Ratio | Expected | Observed |
| Dominant phenotype (A–) | 3 | 99 | 97 |
| Recessive phenotype (aa) | 1 | 33 | 35 |
They are setting up a chi-squared (χ2) goodness-of-fit test, but they wrote the hypotheses below:
H0: The offspring proportions are not consistent with the expected 3:1 ratio (the differences are too large to explain by chance alone).
HA: The offspring proportions are consistent with the expected 3:1 ratio (any differences from the expected ratio are due to chance).
What is the main problem with their hypotheses?