Name Date
Chi-Square Test worksheet
Grade 12 to college
Calcapedia Solve each problem and show your work. Round answers to 2 decimal places where needed.
- 1.
Problem 1. - Test: Independence (a contingency table of two variables)
- Observed table (rows separated by semicolons): 1, 32; 59, 39
- Apply Yates' continuity correction (2 × 2 tables only): No
- Significance level (α): 0.05
Find: p-value
Answer
- 2.
Problem 2. - Test: Independence (a contingency table of two variables)
- Observed table (rows separated by semicolons): 19, 30; 9, 17
- Apply Yates' continuity correction (2 × 2 tables only): No
- Significance level (α): 0.04
Find: p-value
Answer
- 3.
Problem 3. - Test: Goodness of fit (one row of counts against expected proportions)
- Observed counts, one per category: 225, 100, 100, 42
- Expected distribution: Given ratios, percentages or counts
- Expected ratio for each category: 9, 3, 3, 1
- Significance level (α): 0.04
Find: p-value
Answer
- 4.
Problem 4. - Test: Goodness of fit (one row of counts against expected proportions)
- Observed counts, one per category: 200, 130, 100, 45
- Expected distribution: Given ratios, percentages or counts
- Expected ratio for each category: 9, 3, 3, 1
- Significance level (α): 0.04
Find: p-value
Answer
- 5.
Problem 5. - Test: Independence (a contingency table of two variables)
- Observed table (rows separated by semicolons): 21, 57; 43, 7
- Apply Yates' continuity correction (2 × 2 tables only): No
- Significance level (α): 0.06
Find: p-value
Answer
- 6.
Problem 6. - Test: Goodness of fit (one row of counts against expected proportions)
- Observed counts, one per category: 300, 100, 75, 28
- Expected distribution: All categories equally likely
- Significance level (α): 0.03
Find: p-value
Answer
- 7.
Problem 7. - Test: Goodness of fit (one row of counts against expected proportions)
- Observed counts, one per category: 280, 130, 86, 38
- Expected distribution: Given ratios, percentages or counts
- Expected ratio for each category: 10, 2, 3, 2
- Significance level (α): 0.04
Find: p-value
Answer
- 8.
Problem 8. - Test: Goodness of fit (one row of counts against expected proportions)
- Observed counts, one per category: 315, 108, 101, 32
- Expected distribution: Given ratios, percentages or counts
- Expected ratio for each category: 6, 2, 3, 1
- Significance level (α): 0.05
Find: p-value
Answer
- 9.
Problem 9. - Test: Independence (a contingency table of two variables)
- Observed table (rows separated by semicolons): 26, 2; 20, 18
- Apply Yates' continuity correction (2 × 2 tables only): No
- Significance level (α): 0.06
Find: p-value
Answer
- 10.
Problem 10. - Test: Independence (a contingency table of two variables)
- Observed table (rows separated by semicolons): 1, 56; 33, 23
- Apply Yates' continuity correction (2 × 2 tables only): No
- Significance level (α): 0.04
Find: p-value
Answer
Answer key: Chi-Square Test worksheet
Calcapedia 1. p-value: 1.186789e-8
Add up each row and each column, since the expected counts are built from these totals. Row totals 33, 98; column totals 60, 71; grand total N
If the two things weren't related, each cell would expect its row total times its column total, divided by the grand total N
For example, the expected count (E) for the top-left cell
For every cell, square the gap between observed (O) and expected (E), divide by E, and add them up
Count the degrees of freedom (df), how many cells are free to vary once the totals are fixed: (rows − 1) × (columns − 1)
Find the p-value: the chance of a χ² at least this big if the hypothesis were true (chi-square curve with 1 df)
p is at or below α, so the two variables appear to be linked (not independent)
Measure how strong the link is, from 0 to 1, with Cramér's V = √(χ² ÷ (N × (min(rows, columns) − 1)))
2. p-value: 0.722978
Add up each row and each column, since the expected counts are built from these totals. Row totals 49, 26; column totals 28, 47; grand total N
If the two things weren't related, each cell would expect its row total times its column total, divided by the grand total N
For example, the expected count (E) for the top-left cell
For every cell, square the gap between observed (O) and expected (E), divide by E, and add them up
Count the degrees of freedom (df), how many cells are free to vary once the totals are fixed: (rows − 1) × (columns − 1)
Find the p-value: the chance of a χ² at least this big if the hypothesis were true (chi-square curve with 1 df)
p is above α, so there's no significant evidence of a link
Measure how strong the link is, from 0 to 1, with Cramér's V = √(χ² ÷ (N × (min(rows, columns) − 1)))
3. p-value: 0.002229
Scale the expected ratios to the total count N, so expected and observed add up the same: E = N × (ratio ÷ sum of ratios)
The expected count (E) for each category
For every category, square the gap between observed (O) and expected (E), divide by E, and add them up
Count the degrees of freedom (df): the number of categories − 1, since the last one is fixed by the total
Find the p-value: the chance of a χ² at least this big if the hypothesis were true (chi-square curve with 3 df)
p is at or below α, so the counts differ significantly from the expected pattern
4. p-value: 9.466972e-10
Scale the expected ratios to the total count N, so expected and observed add up the same: E = N × (ratio ÷ sum of ratios)
The expected count (E) for each category
For every category, square the gap between observed (O) and expected (E), divide by E, and add them up
Count the degrees of freedom (df): the number of categories − 1, since the last one is fixed by the total
Find the p-value: the chance of a χ² at least this big if the hypothesis were true (chi-square curve with 3 df)
p is at or below α, so the counts differ significantly from the expected pattern
5. p-value: 6.941503e-11
Add up each row and each column, since the expected counts are built from these totals. Row totals 78, 50; column totals 64, 64; grand total N
If the two things weren't related, each cell would expect its row total times its column total, divided by the grand total N
For example, the expected count (E) for the top-left cell
For every cell, square the gap between observed (O) and expected (E), divide by E, and add them up
Count the degrees of freedom (df), how many cells are free to vary once the totals are fixed: (rows − 1) × (columns − 1)
Find the p-value: the chance of a χ² at least this big if the hypothesis were true (chi-square curve with 1 df)
p is at or below α, so the two variables appear to be linked (not independent)
Measure how strong the link is, from 0 to 1, with Cramér's V = √(χ² ÷ (N × (min(rows, columns) − 1)))
6. p-value: 0
With 4 equally likely categories, each one expects the total count N ÷ 4
The expected count (E) for each category
For every category, square the gap between observed (O) and expected (E), divide by E, and add them up
Count the degrees of freedom (df): the number of categories − 1, since the last one is fixed by the total
Find the p-value: the chance of a χ² at least this big if the hypothesis were true (chi-square curve with 3 df)
p is at or below α, so the counts differ significantly from the expected pattern
7. p-value: 0
Scale the expected ratios to the total count N, so expected and observed add up the same: E = N × (ratio ÷ sum of ratios)
The expected count (E) for each category
For every category, square the gap between observed (O) and expected (E), divide by E, and add them up
Count the degrees of freedom (df): the number of categories − 1, since the last one is fixed by the total
Find the p-value: the chance of a χ² at least this big if the hypothesis were true (chi-square curve with 3 df)
p is at or below α, so the counts differ significantly from the expected pattern
8. p-value: 0.000057
Scale the expected ratios to the total count N, so expected and observed add up the same: E = N × (ratio ÷ sum of ratios)
The expected count (E) for each category
For every category, square the gap between observed (O) and expected (E), divide by E, and add them up
Count the degrees of freedom (df): the number of categories − 1, since the last one is fixed by the total
Find the p-value: the chance of a χ² at least this big if the hypothesis were true (chi-square curve with 3 df)
p is at or below α, so the counts differ significantly from the expected pattern
9. p-value: 0.000441
Add up each row and each column, since the expected counts are built from these totals. Row totals 28, 38; column totals 46, 20; grand total N
If the two things weren't related, each cell would expect its row total times its column total, divided by the grand total N
For example, the expected count (E) for the top-left cell
For every cell, square the gap between observed (O) and expected (E), divide by E, and add them up
Count the degrees of freedom (df), how many cells are free to vary once the totals are fixed: (rows − 1) × (columns − 1)
Find the p-value: the chance of a χ² at least this big if the hypothesis were true (chi-square curve with 1 df)
p is at or below α, so the two variables appear to be linked (not independent)
Measure how strong the link is, from 0 to 1, with Cramér's V = √(χ² ÷ (N × (min(rows, columns) − 1)))
10. p-value: 3.461109e-11
Add up each row and each column, since the expected counts are built from these totals. Row totals 57, 56; column totals 34, 79; grand total N
If the two things weren't related, each cell would expect its row total times its column total, divided by the grand total N
For example, the expected count (E) for the top-left cell
For every cell, square the gap between observed (O) and expected (E), divide by E, and add them up
Count the degrees of freedom (df), how many cells are free to vary once the totals are fixed: (rows − 1) × (columns − 1)
Find the p-value: the chance of a χ² at least this big if the hypothesis were true (chi-square curve with 1 df)
p is at or below α, so the two variables appear to be linked (not independent)
Measure how strong the link is, from 0 to 1, with Cramér's V = √(χ² ÷ (N × (min(rows, columns) − 1)))