Back to chapter

8.10:

Contingency Table

JoVE Core
Statistics
A subscription to JoVE is required to view this content.  Sign in or start your free trial.
JoVE Core Statistics
Contingency Table

Languages

Share

The contingency table, cross-tabulation, or two-way frequency table, statistically summarizes a relationship between two categorical variables.

Here, the outcome of one variable is arranged in rows, while that of the other variable is arranged in columns.

Consider two variables: COVID-19 cases and vaccination status. The contingency table for this data will contain two rows and three columns. The row variable identifies whether individuals are infected or not. The column variable identifies the individual's vaccination status.

Of the 236 total observations, 150 individuals are infected, and 86 are not. Furthermore, 129 individuals are unvaccinated, 27 are partially vaccinated, and 80 are completely vaccinated.

The contingency table displays the observed frequencies of two variables. After performing a test of independence, the chi-square statistic is used to determine whether these values mirror the expected frequency.

Contingency tables help to display and find the probability of any event occurring dependent or independent of other variables, which are visualized using histograms or bar graphs. Thus, they help systematically organize, analyze and quantify data.

8.10:

Contingency Table

A contingency table provides a way of portraying data that can facilitate calculating probabilities. It is a method of displaying a frequency distribution as a table with rows and columns to show how two variables may be dependent (contingent) upon each other; The table helps determine conditional probabilities quite quickly and can help systematically organize, analyze and quantify data. The table displays sample values concerning two variables that may be dependent or contingent on one another. Here, the outcome of one variable is arranged in rows, while that of the other is arranged in columns. The table displays the observed frequencies of two variables, whose independence is determined by performing a test for independence.

This text is adapted from Openstax, Introductory Statistics, Section 3.4 Contingency Tables.