Two-way frequency tables,
also called contingency tables,
show the number of times something occurs for two categorical variables. A two-way frequency table can help you see possible relationships between two sets of categorical data. For example, the two-way frequency table below shows the results of a survey of 108 students. The students were asked whether they play a sport and whether they play an instrument.
Notice that one category, playing a sport, is represented by rows. The other category, playing an instrument, is represented by columns. The totals for each row are at the end of each row, and the totals for each column are at the bottom of each column.
Values in the body of a two-way frequency table are called joint frequencies.
Values in the total row and column, with the exception of the total for the entire table, are called marginal frequencies.
Each joint frequency tells about a combination of the two variables. For example, 42 of the students surveyed play an instrument and play a sport.
Each marginal frequency tells the total for a category. For example, 66 of the students surveyed play an instrument. The last number in the bottom row is the total number of data values. In this example, 108 students were surveyed in total.