Which of the following statements is true regarding the test statistic (χ2) in a goodness of fit test?