A chi-squared test rejects a null hypothesis for a statistic whose null distribution is a chi-squared law, exactly or asymptotically. Pearson tests compare observed and expected counts; both goodness-of-fit and chi-squared tests of independence are instances.
Suppose is independently calibrated and counts have predicted means under a specified candidate . For independent sufficiently large Poisson counts, the Pearson chi-squared statistic is . With no parameters fitted to these test counts, its approximate reference chi-squared distribution has one degree of freedom per observation. Fitting a continuous to the same data instead removes one residual degree of freedom. Replacing the denominators by observed counts is a common estimated-error approximation but can behave badly at small counts.
Calibration uncertainty also induces correlated prediction errors. First-order propagation of uncertainty givesA generalized quadratic form uses this covariance matrix. For sparse counts use the Poisson deviance or the full count likelihood, with simulation if a calibrated goodness-of-fit probability is required. Choosing a range after inspecting residuals also affects formal test calibration; a physically specified signal-dominated range is preferable when applying a pure attenuation model.
If two independent approximately Gaussian mean lifetime estimates have known standard deviations , equality of their true lifetimes implies that their difference has mean zero and variance . Its squared standardized difference therefore has a one-degree-of-freedom chi-squared distribution, giving the statistic in the title. A chosen significance threshold converts its upper-tail P-value into a compatibility decision.
Testing a fitted decay curve against a fixed numerical lifetime is a different question: that test does not include the external measurement uncertainty. Comparing the two experiments requires both uncertainties or a joint likelihood with a common lifetime. Correlated estimates replace the denominator by .
For independent categorical observations cross-classified into an by contingency table, let be observed counts and let be their row and column totals. Under the null hypothesis of independence, fitted expected counts are , and the Pearson statistic isWith fixed and strictly positive underlying cell probabilities, its null distribution tends to as . The unrestricted cell-probability model has dimensions; the independence model has , giving that difference.
For counts , all fitted counts are , so with one degree of freedom. Sparse counts or structural zeros require different calibration or an appropriately specified exact procedure; the large-sample approximation is not a guarantee for every table.
Articles by others on the same topic
There are currently no matching articles.