The chi-square goodness-of-fit test
Answer: A goodness-of-fit test asks whether the data fit a particular distribution. The test is almost always right-tailed.
What the test asks
In this hypothesis test, you determine whether the data fit a particular distribution, or not.
The goodness-of-fit test is almost always right-tailed.
Binned data and the null
The chi-square goodness-of-fit test is applied to binned data. Those data have been put into classes.
Under the null, the data follow a specified distribution. The alternative is that the data do not follow the specified distribution.
See also
Claims
- id: C1 claim: A goodness-of-fit test asks whether the data fit a particular distribution. source: S1 evidence: "whether the data \"fit\" a particular distribution or not"
- id: C2 claim: The goodness-of-fit test is almost always right-tailed. source: S1 evidence: "The goodness-of-fit test is almost always right-tailed"
- id: C3 claim: The chi-square goodness-of-fit test is applied to binned data. source: S2 evidence: "The chi-square goodness-of-fit test is applied to binned data"
- id: C4 claim: The null hypothesis is that the data follow a specified distribution. source: S2 evidence: "The data follow a specified distribution"
Sources
- [S1] 11.3 Goodness-of-Fit Test. OpenStax Introductory Business Statistics. https://openstax.org/books/introductory-business-statistics/pages/11-3-goodness-of-fit-test . License: CC-BY-4.0. Accessed 2026-11-23.
- [S2] 1.3.5.15. Chi-Square Goodness-of-Fit Test. National Institute of Standards and Technology. https://www.itl.nist.gov/div898/handbook/eda/section3/eda35f.htm . License: US government work, public domain. Accessed 2026-11-23.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: OpenStax Introductory Business Statistics, 11.3 Goodness-of-Fit Test; National Institute of Standards and Technology, 1.3.5.15. Chi-Square Goodness-of-Fit Test. CC-BY-4.0 (https://creativecommons.org/licenses/by/4.0/). OpenStax Introductory Business Statistics, Creative Commons Attribution License 4.0. US government work, public domain (https://www.usa.gov/government-works). Work of the U.S. government (National Institute of Standards and Technology). Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: OpenStax Introductory Business Statistics, 11.3 Goodness-of-Fit Test; National Institute of Standards and Technology, 1.3.5.15. Chi-Square Goodness-of-Fit Test. CC-BY-4.0 (https://creativecommons.org/licenses/by/4.0/). OpenStax Introductory Business Statistics, Creative Commons Attribution License 4.0. US government work, public domain (https://www.usa.gov/government-works). Work of the U.S. government (National Institute of Standards and Technology).
Cite this
iinventedlight. 2026. "The chi-square goodness-of-fit test." iinventedlight Library, iil:note:yvq1g46d, version of 2026-11-23. https://iinventedlight.com/library/notes/goodness-of-fit-test/. License: CC-BY-4.0.
@misc{iil_note_yvq1g46d,
author = {{iinventedlight}},
title = {{The chi-square goodness-of-fit test}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-23},
url = {https://iinventedlight.com/library/notes/goodness-of-fit-test/},
note = {Permanent ID iil:note:yvq1g46d. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/goodness-of-fit-test.md.