For independent Gaussian measurements with correctly specified standard deviations, model residuals give the chi-squared test statistic
For a linear fit of identifiable parameters under the null model, it has a chi-squared distribution with degrees of freedom. The upper-tail p-value tests unusually large residuals; a nonlinear fit generally uses this distribution only approximately. Correlated Gaussian errors instead require .
For counts, Pearson's chi-squared test uses , with calculated under the null hypothesis. For multinomial categories and fitted parameters the usual asymptotic degrees of freedom are ; the subtraction of one reflects the fixed total count. Sparse expected counts can invalidate this approximation, requiring a suitable exact or simulation-based test. Contingency-table independence gives degrees of freedom.
A small p-value indicates tension with the specified model and error assumptions; it is not the probability that the null is true. Excessive may reflect a wrong model, underestimated errors, correlations or outliers. An implausibly small value may suggest overestimated errors or hidden constraints. For an adequate fitted model is typically near one, with fluctuations, rather than required to equal one.

Articles by others on the same topic (0)

There are currently no matching articles.