NEW
Also known as: Goodness-of-Fit Test
Statistical evaluation of how well a model or theoretical distribution matches observed data.
DESCRIPTION
Goodness of fit assesses whether observed data align with a specified model or distribution. Common tests include chi-square, Kolmogorov–Smirnov, and Anderson–Darling. It informs model adequacy, assumption checks, and distributional validity. In practice, analysts examine residuals, p-values, and effect sizes alongside test statistics. Overreliance on p-values can mislead; context and power considerations matter. Complementary approaches include cross-validation and information criteria for predictive performance and parsimony.
ALTERNATIVE DEFINITIONS
NIST/SEMATECH e-Handbook of Statistical Methods
Goodness-of-fit tests are used to determine if a sample comes from a population with a specific distribution.
Focuses on distributional fit of sample data to a specified theoretical distribution.
Investopedia
Goodness of fit refers to how well a statistical model fits a set of observations.
Emphasizes model fit to observations rather than specific distribution tests.
Encyclopedia of Mathematics
Tests of goodness of fit are statistical tests for the hypothesis that a sample comes from a specified distribution.
Frames goodness of fit within hypothesis testing methodology.
RELATED TERMS
Chi-square Test Kolmogorov–Smirnov Test Anderson–Darling Test Residual Analysis Hypothesis Testing p-value Model Validation R-squared Akaike Information Criterion
COMPETING TERMS
Cross-Validation Information Criteria
KNOWLEDGE AREAS
Mathematics Data Science Testing & Validation AI
TARGET AUDIENCE
Data Scientist Data Analyst AI Engineer MLOps Engineer
EXTERNAL SOURCES
- Wikipedia - Goodness of fit
- NIST - Overview of goodness-of-fit tests
- Penn State Eberly College of Science - Course notes on chi-square GOF
- UCLA Statistical Consulting - Applied guidance and examples
TOP QUESTIONS
What does Goodness of Fit measure in statistics?
Goodness of Fit measures how closely observed data follow a specified model or distribution. It provides evidence on model adequacy using test statistics and p-values.
Category: Definition
Which tests are commonly used for Goodness of Fit?
Common tests include the Chi-square test, Kolmogorov–Smirnov test, and Anderson–Darling test. Choice depends on data type, sample size, and distribution assumptions.
Category: Overview
Why is Goodness of Fit important for model validation?
It verifies assumptions about data distribution or model structure, preventing misleading inferences and ensuring reliable predictions in downstream analyses.
Category: Relevancy
How does Goodness of Fit differ from Cross-Validation?
Goodness of Fit assesses conformity to a distribution or model; cross-validation evaluates predictive performance on unseen data. Both are complementary.
Category: Distinction
What are common mistakes when applying Goodness of Fit?
Relying solely on p-values, ignoring sample size effects, and mis-specifying the theoretical distribution are frequent pitfalls that compromise conclusions.
Category: Mistakes
When should Goodness of Fit be preferred over information criteria?
Use it for distributional validation or categorical models, while AIC/BIC are better for comparing parametric models’ parsimony and predictive trade-offs.
Category: Opinion
How do residuals support Goodness of Fit analysis?
Residual plots reveal systematic deviations, outliers, and heteroscedasticity, providing visual diagnostics that complement formal test statistics.
Category: Example
Does sample size affect Goodness of Fit results?
Yes. Large samples can flag trivial deviations as significant, while small samples may lack power. Interpret results in context.
Category: Risk
What is a practical workflow for Goodness of Fit?
Define hypotheses, choose appropriate test, check assumptions, compute statistics and p-values, inspect residuals, and report both statistical and practical significance.
Category: Requirements
Is Goodness of Fit relevant in machine learning?
Yes, especially for calibration, probabilistic models, and generative modeling. It complements metrics focused on predictive accuracy.
Category: Relevancy