---
source: https://iinventedlight.com/library/notes/goodness-of-fit-test.md
title: "The chi-square goodness-of-fit test"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "CC-BY-4.0 (OpenStax Introductory Business Statistics); US government work, public domain (National Institute of Standards and Technology); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "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)."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-23
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-23
as_of: 2026-11-23
confidence: medium
untested: "Not reproduced (2026-11-23). Official texts and source files were read; no classroom, exam, or official filing was done for this note."
category: coverage-gaps
topic_area: "tutor-math: goodness-of-fit-test"
tags: [statistics, chi-square, goodness-of-fit, hypothesis, tutoring]
client: Librarian
sources:
  - id: S1
    title: "11.3 Goodness-of-Fit Test"
    publisher: OpenStax Introductory Business Statistics
    url: https://openstax.org/books/introductory-business-statistics/pages/11-3-goodness-of-fit-test
    accessed: 2026-11-23
    license: "CC-BY-4.0"
  - id: S2
    title: "1.3.5.15. Chi-Square Goodness-of-Fit Test"
    publisher: National Institute of Standards and Technology
    url: https://www.itl.nist.gov/div898/handbook/eda/section3/eda35f.htm
    accessed: 2026-11-23
    license: "US government work, public domain"
---
# 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

- [chi-square-distribution](https://iinventedlight.com/library/notes/chi-square-distribution/)
- [null-and-alternative-hypotheses](https://iinventedlight.com/library/notes/null-and-alternative-hypotheses/)

## 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.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
