liveBook · Manning

Log-likelihood

As explained in Effective Data Analysis

Log-likelihood is the logarithm of the likelihood of observed data under a statistical model and can support comparisons of model fit.

Log-likelihood is the logarithm of the likelihood of observed data under a statistical model. It serves as an overall indicator of model fit, but its value has no useful standalone interpretation; compare it across model iterations instead. section 9.1.2

Use log-likelihood as one part of model evaluation:

  • Compare the relative fit of multiple versions of a model after changing predictors or transformations. section 9.1.2 section 9.4
  • Read it alongside R-squared, adjusted R-squared, the F-statistic, AIC, BIC, and residual diagnostics rather than treating it as a standalone score. section 9.4
  • Account for model complexity through AIC or BIC when deciding whether an apparent fit improvement justifies additional predictors. section 9.1.2

Comparing housing-price models

Fit an OLS model predicting housing prices from square footage and number of bedrooms, then inspect its statsmodels summary. Add the number of floors, fit the expanded model, and compare the resulting log-likelihood values; use AIC or BIC to judge the added complexity. section 9.1.2

How Effective Data Analysis covers it

How deep it goes
Defines log-likelihood and its comparative role, but defers its calculation details and deeper statistical interpretation.
Examples
Uses statsmodels OLS housing-price models with square footage, bedrooms, and an added floors predictor.
What you can do after
Evaluate relative model fit and weigh added predictors against complexity using AIC or BIC.
How it connects
Connects log-likelihood with regression, R-squared, adjusted R-squared, F-statistic, AIC, BIC, and residuals.

Also explained in

Compare how 3 books explain log-likelihood →

Related concepts

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