Program data and common statistics

What Does Goodness-of-Fit Mean?

Goodness of fit describes how well a statistical model's predictions agree with observed data in the ways a chosen diagnostic examines. It is evaluated with suitable plots, residuals, calibration measures, or tests for the particular model.

In practice

How Goodness-of-Fit works in context

  1. Why it matters

    Why does Goodness-of-Fit matter?

    A model can make poor predictions or violate assumptions even if one summary statistic looks reassuring. Fit checks help identify patterns the model misses and guide whether it is suitable for the intended use.

  2. Worked example

    What does Goodness-of-Fit look like in practice?

    A program fits a model predicting interview invitations and reports a Hosmer-Lemeshow p-value above 0.05. The analyst does not call that proof of accurate predictions. They also inspect calibration across risk ranges and test performance in data not used to fit the model.

  3. Commonly confused terms

    What is Goodness-of-Fit commonly confused with?

    A non-significant goodness-of-fit test does not prove a model is correct, and a model that fits the development data well may still perform poorly elsewhere. Fit is not evidence that the model's predictors cause the outcome.

Interpretation guide

Use Goodness-of-Fit accurately

What the term tells you

Identify the model and intended use. Examine diagnostics appropriate to its outcome, sample size, and assumptions; for a prediction model, assess calibration and discrimination separately. Note the limitations of any single test and evaluate performance outside the training data when possible.

Check which mismatch the diagnostic can reveal. A model with acceptable overall fit can show a systematic residual pattern by time or systematically misestimate risk for one subgroup.

Common mistakes

Treating a large p-value as proof

A fit test may miss important model problems.

Using one statistic for every model

Diagnostics depend on model type and purpose.

Confusing fit and causation

A fitted association does not establish a causal effect.

Reader checklist

Questions to ask about Goodness-of-Fit

  1. What aspect of fit does this measure test?
  2. Were residuals or calibration plots examined?
  3. How large is the sample?
  4. Was performance checked on new data?
  5. Does the model support prediction, explanation, or neither?

Resources

Use these tools and guides for your next step. References below identify the evidence supporting this definition.

Check the source2 resources

Editorial

References
  1. 01STAT 504: Binary Logistic RegressionSupports: Explains the Hosmer-Lemeshow fit test and warns about its low power and dependence on grouping; one non-significant result does not validate a model.Pennsylvania State University Department of StatisticsVerified
  2. 02NIST Handbook, model fit and graphical residual analysisSupports: NIST describes graphical residual checks for nonrandom deviations and emphasizes multiple forms of validation.NISTVerified
  3. 03NIST Handbook, tests of distribution fitSupports: The handbook explains tests of a named distribution and their assumptions about expected counts and sampling.NISTVerified