CMClearMathAcademy

Chi-Square Tests and Two-Way Tables

A free Statistics and Data Analysis lesson from the “Inference and Conclusions” unit, with a worked example and practice problems including step-by-step solutions.

Chi-square tests use counts in categories. For two-way tables, they help decide whether two categorical variables show evidence of association. This lesson builds the habit of reading the context first, choosing the right statistical tool, calculating carefully, and then writing what the result means. By the end, students should be able to do the computation and explain why that computation answers the question.

What you'll learn

Why it matters: Researchers use chi-square reasoning to compare survey categories, treatment outcomes, and preference patterns across groups.

Worked example

Problem. A chi-square test is used on a two-way table of grade level and club participation. What kind of relationship is being tested?

  1. Worked Example: First identify exactly what the question is asking: A chi-square test is used on a two-way table of grade level and club participation. What kind of relationship is being tested?
  2. Compare each answer choice with the calculation or rule, and eliminate choices that do not satisfy the condition.
  3. Two-way tables contain counts for categorical variables.
  4. Chi-square tests can check association between those variables.

Answer: association between categorical variables

Practice problems

1. Practice case A: What does a chi-square test on a two-way table check?

Choices: a normal z-score · association between categorical variables · a difference in two means · a regression slope

Show solution
  1. Warm-up: First identify exactly what the question is asking: What does a chi-square test on a two-way table check?
  2. Compare each answer choice with the calculation or rule, and eliminate choices that do not satisfy the condition.
  3. Two-way tables organize categorical counts.
  4. Chi-square tests check whether the categories are associated.
  5. Verify the selected choice by checking that it satisfies the original prompt and that the other choices fail the same test.

Answer: association between categorical variables

2. Practice case B: Which study question matches a two-way-table chi-square test?

Choices: slope of height versus weight · z-score for one person · grade level by club membership counts · average score for one class

Show solution
  1. Warm-up: First identify exactly what the question is asking: Which study question matches a two-way-table chi-square test?
  2. Compare each answer choice with the calculation or rule, and eliminate choices that do not satisfy the condition.
  3. Chi-square uses counts in categories.
  4. Grade level and club membership are categorical.
  5. Verify the selected choice by checking that it satisfies the original prompt and that the other choices fail the same test.

Answer: grade level by club membership counts

3. Practice case C: Expected counts in a chi-square test describe:

Choices: the exact observed counts · sample means · confidence levels · counts predicted if there were no association

Show solution
  1. Warm-up: First identify exactly what the question is asking: Expected counts in a chi-square test describe:
  2. Compare each answer choice with the calculation or rule, and eliminate choices that do not satisfy the condition.
  3. Expected counts come from the no-association model.
  4. Observed counts are compared to them.
  5. Verify the selected choice by checking that it satisfies the original prompt and that the other choices fail the same test.

Answer: counts predicted if there were no association

4. Practice case D: If observed counts are far from expected counts, what does that suggest?

Choices: association · no variables · a smaller sample size only · a guaranteed causal effect

Show solution
  1. Warm-up: First identify exactly what the question is asking: If observed counts are far from expected counts, what does that suggest?
  2. Compare each answer choice with the calculation or rule, and eliminate choices that do not satisfy the condition.
  3. Big observed-versus-expected differences are evidence against independence.
  4. That suggests association.
  5. Verify the selected choice by checking that it satisfies the original prompt and that the other choices fail the same test.

Answer: association

5. Practice case E: What should a student not claim from a chi-square association test alone?

Choices: the conclusion should mention context · one category caused the other · there is evidence of association · the variables are categorical

Show solution
  1. Warm-up: First identify exactly what the question is asking: What should a student not claim from a chi-square association test alone?
  2. Compare each answer choice with the calculation or rule, and eliminate choices that do not satisfy the condition.
  3. Association is not automatically causation.
  4. Study design controls causal claims.
  5. Verify the selected choice by checking that it satisfies the original prompt and that the other choices fail the same test.

Answer: one category caused the other

Practice this interactively with instant feedback and an AI tutor.

Practice Chi-Square Tests and Two-Way Tables Take the free placement check

More Statistics and Data Analysis lessons