Skip to main content
United StatesStatisticsSyllabus dot point

How do you state the hypotheses and decide between a chi-square test of homogeneity and one of independence?

Topic 8.5 Setting Up a Chi-Square Test for Homogeneity or Independence: distinguish a test of homogeneity from a test of independence based on the design, state the appropriate hypotheses, and check the conditions.

A focused answer to AP Statistics Topic 8.5, on distinguishing a chi-square test of homogeneity (several groups, same variable) from a test of independence (one sample, two variables), stating the right hypotheses, and checking the conditions.

Generated by Claude Opus 4.89 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this topic is asking
  2. The design decides the test
  3. Hypotheses for each test
  4. Checking the conditions
  5. Try this

What this topic is asking

The College Board (Topic 8.5) wants you to distinguish a chi-square test of homogeneity from one of independence based on the design, state the appropriate hypotheses for each, and check the conditions.

The design decides the test

This is the central decision of the topic. The chi-square arithmetic is identical for the two tests (same expected counts, same statistic, same degrees of freedom), but the design, hypotheses, and conclusion wording differ. Homogeneity compares separate groups ("do these populations have the same distribution?"); independence examines one population ("are these two traits associated?"). Identify the sampling design before writing anything.

Hypotheses for each test

The wording must match the design. For homogeneity, name the variable and the groups ("the distribution of sport participation is the same across the three schools"). For independence, name the two variables ("education level and employment status are independent"). Hypotheses are stated in words about the categorical relationship, not as numeric parameter equalities, which is a notable contrast with the mean and proportion tests.

Checking the conditions

The condition check uses the expected counts (each 5\ge 5), exactly as in goodness of fit and as computed in Topic 8.4. The randomness requirement is read according to the design: homogeneity needs each group to be a random sample (or randomly assigned in an experiment); independence needs the single sample to be random. Verifying these is the gate to the test in Topic 8.6.

Try this

Q1. One sample of voters is classified by gender and party preference. Which test? [1 point]

  • Cue. Independence (one sample, two categorical variables); H0H_0: gender and party preference are independent.

Q2. State the homogeneity null when comparing a response across four separate groups. [1 point]

  • Cue. H0H_0: the distribution of the response variable is the same across all four groups.

Exam-style practice questions

Practice questions written in the style of College Board exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

AP 2019 (style)1 marksSection I (multiple choice). A researcher takes one random sample and records two categorical variables on each person. The appropriate chi-square test is (A) goodness of fit (B) homogeneity (C) independence (D) a two-proportion z-test
Show worked answer →

The correct answer is (C).

One sample with two categorical variables recorded on each unit calls for a chi-square test of independence (are the two variables associated?).

(A) is for one variable against a claimed distribution. (B) is for comparing one variable across several separate samples/groups. (D) compares only two proportions, not a full table.

AP 2021 (style)3 marksSection II (free response). Design 1: separate random samples of 100100 students from each of three schools are classified by whether they participate in sport (yes/no). Design 2: one random sample of 300300 adults is classified by both education level (three levels) and employment status (two levels). (a) Name the appropriate chi-square test for each design. (b) State the hypotheses for each. (c) Explain the design difference that determines the choice.
Show worked answer →

A 3-point design-and-setup question.

(a) (1 point) Design 1: chi-square test of homogeneity (several separate samples, one variable). Design 2: chi-square test of independence (one sample, two variables).
(b) (1 point) Homogeneity: H0H_0: the distribution of sport participation is the same across the three schools; HaH_a: it is not the same for all schools. Independence: H0H_0: education level and employment status are independent; HaH_a: they are associated (not independent).
(c) (1 point) Homogeneity uses multiple separate samples with a fixed size from each group, comparing one variable's distribution; independence uses one sample and measures two variables on each unit.

Markers reward matching design to test, the distinct hypothesis wordings, and the multiple-samples versus one-sample distinction.

Related dot points

Sources & how we know this