Statistics How To

Two Way Table / Two Way Frequency Tables

Statistics Definitions >

What is a Two Way Table?

A two way table is a way to display frequencies or relative frequencies for two categorical variables. One category is represented by rows and a second category is represented by columns.


Sixty people (30 men and 30 women) were asked what type of movie they would prefer to watch and the following responses were recorded:

  • 6 men preferred rom-coms.
  • 16 men preferred action movies.
  • 8 men preferred horror movies.
  • 12 women preferred rom-coms.
  • 14 women preferred action movies.
  • 4 women preferred horror movies.

The information collected was used to build the following two way table:

two way table

Two way table showing movie preferences.

The entries in the table are counts; this type of table is called a two way frequency table. The table has several features:

  • Categories are labeled in the left column and top row.
  • The counts are placed in the center of the table.
  • Totals appear at the end of each row and column.
  • A sum of all counts (a grand total) is placed at the bottom right.
  • The totals in the right column and bottom row are called marginal distributions (excluding the grand total).
  • The entries in the center of the table (everything except the marginal distributions) are called joint frequencies.

Two Way Relative Frequency Table

Instead of displaying counts in the table, you could show relative frequencies. This is the same two way relative frequency table (decimals, percents, or ratios) displayed instead of counts:
two way relative frequency table
To convert counts into relative frequencies, divide the count by the total number of items. In the above table, the first count is for men / Rom-com (count=6), so 6/60 = 0.1.
The totals in the right column and bottom row are, like the two way frequency table, called marginal distributions. However, the entries in the center of the table are called conditional frequencies or conditional distributions.

Two way frequency tables are sometimes called contingency tables, but that term is usually only used once you get into more advanced statistics that involves research and hypothesis testing.

Check out our YouTube channel for hundreds of elementary statistics and probability how-to videos!


Need help with a homework or test question? Chegg offers 30 minutes of free tutoring, so you can try them out before committing to a subscription. Click here for more details.

If you prefer an online interactive environment to learn R and statistics, this free R Tutorial by Datacamp is a great way to get started. If you're are somewhat comfortable with R and are interested in going deeper into Statistics, try this Statistics with R track.

Comments? Need to post a correction? Please post on our Facebook page.
Two Way Table / Two Way Frequency Tables was last modified: October 12th, 2017 by Stephanie