Skip to main content
Statistics LibreTexts

22: Modeling Categorical Relationships

  • Page ID
    7661
  • Learning Objectives

    • Describe the concept of a contingency table for categorical data.
    • Describe the concept of the chi-squared test for association and compute it for a given contingency table.
    • Describe Simpson’s paradox and why it is important for categorical data analysis.

    So far we have discussed the general concept of statistical modeling and hypothesis testing, and applied them to some simple analyses. In this chapter we will focus on the modeling of categorical relationships, by which we mean relationships between variables that are measured qualitatively. These data are usually expressed in terms of counts; that is, for each value of the variable (or combination of values of multiple variables), how many observations take that value? For example, when we count how many people from each major are in our class, we are fitting a categorical model to the data.