Compare categorical groups using two-way tables
A library survey records whether visitors prefer a digital receipt. Group A visits in the morning; Group B visits in the afternoon. Yes means "Digital receipt"; No means "Paper receipt". The displayed counts are synthetic teaching data. Each included record belongs to one of two groups and exactly one of the two response categories
| Group | Yes | No | Total |
|---|---|---|---|
| A | 20 | 20 | 40 |
| B | 56 | 84 | 140 |