Chapter 22
Two-way tables
- Explain how a two-way table can be used to summarize counts of a categorical variable across two or more populations.
- Give an analogy between one-, two-, and multi-sample tests for population means and a two-way table for testing claims about proportions of a category across one, two, and more than two populations.
- State the convention we will use in the class in terms of what rows and columns correspond to in a two-way table.
Hypotheses for two-way tables of counts
- Explain what we mean by two variables being associated.
- Explain what we mean by two variables being independent.
- Describe how independence between two variables manifests in a two-way table.
- State the generic form of the null and alternative hypotheses about two categorical variables in a population.
- Given a problem about two categorical variables, identify the relevant null and alternative hypotheses from the problem.
Expected counts and the chi-square statistic
- Explain under what hypothesis the expected counts for the \(\chi^{2}\) statistic for association are calculated.
- State the \(\chi^{2}\) statistic for association.
- State the sampling distribution of the \(\chi^{2}\) statistic for association under the null hypothesis.
- Construct a matrix from a two-way table using
matrix
in R.
- Compute the \(\chi^{2}\) statistic for association using
xchisq.test
from mosaic
.
- Interpret the output of
xchisq.test
in terms of the \(\chi^{2}\) statistic for association.
The chi-square test
- Interpret the output of
xchisq.test
in terms of the \(\chi^{2}\) test for association.
- Perform a hypothesis test for association using
xchisq.test
.
Conditions for the chi-square test
- State the assumptions on the data for the \(\chi^{2}\) statistic for association to follow a \(\chi^{2}\) distribution.