Glossary of statistical terms

facebook LinkedIn twitter Google+ Email

Contingency Table:

A contingency table is a tabular representation of categorical data . A contingency table usually shows frequencies for particular combinations of values of two discrete random variable s X and Y. Each cell in the table represents a mutually exclusive combination of X-Y values.

For example, consider a sample of N=200 beer-drinkers. For each drinker we have information on sex (variable X, taking on 2 possible values: "Male" and "Female") and preferred category of beer (variable Y, taking on 3 possible values: "Light", "Regular", "Dark"). A contingency table for these data might look like the following

Light Regular Dark Total
Male 20 40 50 110
Female 50 20 20 90
Total: 70 60 70 200

This is a two-way 2x3 contingency table (i.e. two rows and three columns).

Sometimes three-way (and more) contingency tables are used. Suppose the beer-drinkers data, besides sex and preference, are also stratified by age group. The third discrete variable Z ("Age") in this case might, for example, take on 4 values: "<25", "25-40", "40-65", ">65".

In this case we would have a three-way 2x3x4 contingency table, equivalent to 4 two-way 2x3 contingency tables (one 2x3 table for each of the 4 age-groups).

See also: Contingency tables analysis

Browse Other Glossary Entries

Want to learn more about this topic? offers over 100 courses in statistics from introductory to advanced level. Most are 4 weeks long and take place online in series of weekly lessons and assignments, requiring about 15 hours/week. Participate at your convenience; there are no set times when you must to be online. Ask questions and exchange comments with the instructor and other students on a private discussion board throughout the course.

Statistics 1 – Probability and Study Design

This course, the first of a 3-course sequence, provides an introduction to statistics for those with little or no prior exposure to basic probability and statistics.  It runs every eight weeks.

Biostatistics 1 for Medical Science and Public Health

This course covers the principal statistical concepts used in medical and health sciences. Basic concepts common to all statistical analysis are reviewed, and those concepts with specific importance in medicine and health are covered in detail.

Categorical Data Analysis

This course will cover the analysis of contingency table data (tabular data in which the cell entries represent counts of subjects or items falling into certain categories). Topics include tests for independence (comparing proportions as well as chi-square), exact methods, and treatment of ordered data. Both 2-way and 3-way tables are covered.

Back to Main Glossary

Promoting better understanding of statistics throughout the world

To celebrate the International Year of Statistics in 2013, we started a program to provide a statistical term every week, delivered directly to your inbox. The Word of the Week program proved to be quite popular, and continues. The Institute for Statistics Education offers an extensive glossary of statistical terms, available to all for reference and research. Make it your New Year's resolution to improve your own statistical knowledge! Sign up here. Rather not have more email? Simply bookmark our home page and check our “Stats Word of the Week” feature.

Want to be notified of future courses?

Student comments