Researchers investigated the preferred primary study locations of university students. They surveyed 350 undergraduate students to identify whether there is a relationship between gender and preferred study location. The results are summarized in the table below:
Table displaying preferred study environments of undergraduate students
| University Library | Quiet Café | Student Union | Own Bedroom | Outdoor Campus Spaces | |
|---|---|---|---|---|---|
| Male students | 45 | 28 | 37 | 50 | 15 |
| Female students | 62 | 41 | 22 | 42 | 8 |
Once the 'degrees of freedom' (df) has been calculated for this statistical test, outline how it is used to determine whether the relationship between gender and study location is statistically significant.