You will use a contingency table
What are the steps for a chi-squared test for independence?
STEP 4: Decide whether there is evidence to reject the null hypothesis
To calculate the p-value you would find the probability of a value being bigger than your χ² statistic using a χ² distribution with ν degrees of freedomAt a school in Paris, it is believed that favourite film genre is related to favourite subject. 500 students were asked to indicate their favourite film genre and favourite subject from a selection and the results are indicated in the table below.
| Comedy | Action | Romance | Thriller | |
| Maths | 51 | 52 | 37 | 55 |
| Sports | 59 | 63 | 41 | 33 |
| Geography | 35 | 31 | 28 | 15 |


![]()


转载自savemyexams

© 2025. All Rights Reserved. 沪ICP备2023009024号-1