liveBook · Manning

BIC

As explained in Statistics Every Programmer Needs

BIC, or Bayesian information criterion, is a model-selection metric balancing goodness of fit against model complexity with a sample-size-dependent penalty.

BIC evaluates model fit while penalizing the number of parameters. Its penalty is the parameter count multiplied by the natural logarithm of the sample size, so the penalty strengthens as datasets grow. Lower BIC values indicate a preferable balance of fit and simplicity. section 7.3.10

Use BIC when comparing competing models fitted to the same data:

  • Prefer the model with the lower BIC when avoiding overfitting and favoring parsimony are priorities. section 7.3.10
  • Interpret BIC alongside log likelihood and related criteria such as AIC and HQIC rather than treating fit alone as sufficient. section 7.3.10
  • Compare BIC values for models trained on the same observations, including alternative time-series specifications. section 7.3.10 section 7.4.7

Comparing Holt–Winters and ARIMA

A fitted Holt–Winters model reports BIC = 223.54401397788672. Its BIC is lower than the corresponding ARIMA model's value, supporting Holt–Winters as the better-fitting, more parsimonious choice in this comparison. The result is also consistent with its slightly more accurate forecast. section 7.4.7

>>> print(f"AIC: {hw_model.aic}")
AIC: 198.23435477953498

>>> print(f"BIC: {hw_model.bic}")
BIC: 223.54401397788672

Inspect the fitted Holt–Winters model's AIC and BIC values directly. section 7.4.7

How Statistics Every Programmer Needs covers it

How deep it goes
Defines the penalty, interpretation, and comparison role, but does not derive the criterion or discuss its statistical assumptions.
Examples
Compares reported BIC values for Holt–Winters and ARIMA models fitted to time-series data.
What it assumes
Assumes fitted models, log likelihood, parameter counts, sample size, and basic time-series model comparison.
What you can do after
Evaluate/understand competing time-series models by reading BIC values and favoring lower values when parsimony matters.
How it connects
Connects BIC with log likelihood, AIC, HQIC, ARIMA, and Holt–Winters models.

Also explained in

Compare how 3 books explain BIC →

Related concepts

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