Two-way table
First taught in High school statistics
Definition
A two-way table shows data about two categorical variables at the same time: one variable along the rows and the other along the columns.
Advertisement
Reading the table:
- The numbers inside are joint frequencies. Example: 12 students are in grade 6 and prefer dogs.
- The row and column totals are marginal frequencies. Example: 21 students prefer dogs.
- The bottom-right number is the grand total, 40.
Using it for probability: pick a student at random.
The second one is a conditional probability.
Is there an association? In grade 6, prefer dogs; in grade 7, do. The percents differ, which suggests that grade and pet preference are related in this group.