Worked example
Use the margins to predict one count
An independent sample of visitors was recorded by age band and preferred display. The column labels give display types.
The null hypothesis is that the row and column classifications are independent.
| Group | Maps | Models | Total |
|---|---|---|---|
| Under 20 | |||
| 20 to 39 | |||
| 40 or older | |||
| Total |
Find the expected frequency for Under 20 and Maps exactly.
Use the final row totals, column totals and grand total. Compute each expected cell as .
Group Maps Models Total Under 20 20 to 39 40 or older Total . The upper critical value is .
Evidence of an association.