liveBook · Manning

Goodness-of-fit measure

As explained in Causal AI

A goodness-of-fit statistic quantifies how well a model fits or accounts for observed data.

A model can fit its training data well without predicting new data well or representing the true causal process. A goodness-of-fit statistic measures how closely a model fits the data used to train it. section 2.3.4

Use goodness-of-fit measures with these distinctions in mind:

  • Separate goodness-of-fit from cross-validation: fit statistics evaluate training data, whereas cross-validation generally evaluates prediction on data not used for training. section 2.3.4
  • Do not treat a strong fit as causal evidence; multiple data-generating processes can explain the same dataset, and fit alone cannot identify the true one. section 2.3.4
  • In score-based causal discovery, compare candidate directed acyclic graphs by their goodness-of-fit scores while incorporating available structural constraints or prior knowledge. section 4.6.1

Model selection versus causal discovery

A model may have better goodness-of-fit than alternatives yet predict poorly under cross-validation. Conversely, a good predictor may support bogus causal inferences. Score-based causal discovery instead searches for causal DAGs with high goodness-of-fit scores. section 2.3.4 section 4.6.1

How Causal AI covers it

How deep it goes
Defines fit against training data and contrasts it with held-out prediction, but stops short of identifying the true data-generating process.
Examples
Uses training-data fit statistics, held-out prediction statistics, and high-scoring causal DAGs as examples.
What you can do after
Evaluate model fit, distinguish it from predictive validation, and interpret goodness-of-fit scores during causal discovery.
How it connects
Connects model fitting to data-generating processes, cross-validation, causal inference, causal discovery, and directed acyclic graphs.

Also explained in

Compare how 2 books explain goodness-of-fit measure →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Causal AI. The section links point to the parts of the book it draws on.