A factory manager needs to understand how many products are defective versus how many are produced. The number of expected defects is listed in the table.
| Number produced | Number defective |
| 0–100 | 5 |
| 101–200 | 6 |
| 201–300 | 7 |
| 301–400 | 8 |
| 401–500 | 10 |
A random sample was taken to determine the actual number of defects. the table shows the results of the survey.
| Number produced | Number defective |
| 0–100 | 5 |
| 101–200 | 7 |
| 201–300 | 8 |
| 301–400 | 9 |
| 401–500 | 11 |
State the null and alternative hypotheses needed to conduct a goodness-of-fit test, and state the degrees of freedom.
OpenStax Introductory Business Statistics 2e, 11.3 Goodness-of-Fit Test, exercise 3