Skip to content

Contingency Table

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 2×3 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: “65”.

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

See also: Contingency tables analysis

Browse Other Glossary Entries

Test Yourself

Planning on taking an introductory statistics course, but not sure if you need to start at the beginning? Review the course description for each of our introductory statistics courses and estimate which best matches your level, then take the self test for that course. If you get all or almost all the questions correct, move on and take the next test.

Data Analytics

Considering becoming adata scientist, customer analyst or our data science certificate program?

Analytics Quiz

Advanced Statistics Quiz

Statistics Quiz

Statistics

Looking at statistics for graduate programs or to enhance your foundational knowledge?

Statistics 1 Quiz

Regression Quiz

Regression Quiz

Biostatistics

Entering the biostatistics field? Test your skill here.

Biostatistics Quiz

Advanced Statistics Quiz

Statistics 2 Quiz

Stay Informed

Our Blog

Read up on our latest blogs

Certificates

Learn about our certificate programs

Courses

Find the right course for you

Contact Us

We'd love to answer your questions

Our mentors and academic advisors are standing by to help guide you towards the courses or program that makes the most sense for you and your goals.

300 W Main St STE 301, Charlottesville, VA 22903

(434) 973-7673

ourcourses@statistics.com

By submitting your information, you agree to receive email communications from Statistics.com. All information submitted is subject to our privacy policy. You may opt out of receiving communications at any time.