← All notes

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

Sources

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

Permanent ID: iil:note:yvq1g46d

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.},
}

Markdown

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.