# Two-way Contingency Table

Learn how to cross-tabulate two discrete variables.

## We'll cover the following

## Two-way contingency table

To describe the relationship between two discrete variables, we always cross-tabulate them, generating a two-way contingency table and showing their marginal and joint distributions. This resembles the scatter plot and correlation coefficient between two continuous variables. A $2\times2$ contingency table of two dichotomous variables is a cross-tabulation of two discrete variables, each with two levels, and a total of four cells of frequency counts.

Get hands-on with 1200+ tech skills courses.