- Here, the observed frequency for each row is simply the average number of patients discharged per day across the year. Last year, for example, the hospital discharged an average of 589 patients per week--44 on Sunday, 78 on Monday, etc.

- The expected value for each row is equal to the sum of the observed frequencies divided by the number of rows in the table. In this example, there were 589 observed discharges per week, resulting in about 84 discharges per day.

- Finally, the residual is equal to the observed frequency minus the expected value. The table shows that Sunday has many fewer, and Friday, many more, patient discharges than an "every day is equal" assumption would expect.