Selecting a Categorical Procedure
IntroduzidoWhich categorical procedure?
- For categorical data, choose among proportion $z$-procedures and chi-square tests.
- The decision hinges on how many variables and how many samples.
- Also check the study design, independence and the selected procedure’s count conditions; paired binary responses need another method.
- This skills lesson ties Units 6 and 8 together.
Count the variables and samples
- One variable, one sample, matched against a claimed distribution → goodness-of-fit (extension beyond the revised AP exam).
- One variable, several separate samples → homogeneity.
- Two variables, one sample → independence.
- A single proportion (two categories, one sample) can also be a one-proportion $z$-test.

Choosing a categorical inference procedure
Chi-square vs. two-proportion z
- Comparing two groups on a two-category variable? Two valid options overlap here.
- A two-proportion $z$-test works and gives a direction (one-sided possible).
- A chi-square test of homogeneity also works (a $2\times2$ table) but is only non-directional.
- For a directional two-group proportion question, prefer the $z$-test.
Implement and communicate
- State hypotheses, check conditions, compute the statistic and p-value, conclude in context.
- Name the procedure explicitly and justify why it fits the data.
- Word the conclusion to match the test (fit / difference / association).
- Explain the procedure choice and contextual conclusion as well as the arithmetic.
Two questions pick the categorical procedure: how many VARIABLES, and how many SAMPLES. One variable vs. a claimed distribution → goodness-of-fit; one variable across several samples → homogeneity; two variables in one sample → independence. Chi-square is never directional — if you need a one-sided claim about two proportions, use the two-proportion $z$-test instead.
"Do three schools have the same distribution of favorite sport?"
- Variables: one (favorite sport). Samples: three (separate schools).
- One variable, several samples → chi-square test of homogeneity.
- (Had it been "is sport related to gender in one survey?", → independence.)
Pick a categorical procedure by number of variables and number of samples: goodness-of-fit (one variable vs. a distribution), homogeneity (one variable, several samples), independence (two variables, one sample), or a proportion $z$-procedure. Implement fully and communicate the reasoning and conclusion in context.
Write from this case
- There is one categorical variable.
- There is one random sample, and several category proportions are claimed.
One random sample records one categorical variable with several categories. The null specifies all category proportions in advance. Which procedure checks that claimed distribution?
Goodness of fit checks one variable against claimed proportions.
One random sample records one categorical variable with several categories. The null specifies all category proportions in advance. Which procedure checks that claimed distribution?
Dificuldade 1/5 · Moedas 100 + pequeno bônus na primeira conclusão hoje
One categorical variable in one sample is goodness of fit.
Categorical data to analyze
Count the variables and samples to pick the right test.
One categorical variable checked against a claimed distribution (one sample) calls for a...
Dificuldade 1/5 · Moedas 100 + pequeno bônus na primeira conclusão hoje
One variable vs. a distribution → goodness-of-fit.
Three separately-sampled schools compared on one variable calls for a...
Dificuldade 1/5 · Moedas 100 + pequeno bônus na primeira conclusão hoje
One variable, several samples → homogeneity.
Two variables recorded in ONE sample calls for a...
Dificuldade 1/5 · Moedas 100 + pequeno bônus na primeira conclusão hoje
Two variables, one sample → independence.
A chi-square test can give a one-sided (directional) conclusion.
Dificuldade 1/5 · Moedas 100 + pequeno bônus na primeira conclusão hoje
Chi-square is never directional — use a two-proportion z-test for that.
Order the two questions that pick a categorical procedure, then the action.
Dificuldade 3/5 · Moedas 200 + pequeno bônus na primeira conclusão hoje
Variables, then samples, then run the procedure.