AIC and BIC are two scores that regression software reports to help you choose among candidate models. For both, lower is better. Each rewards a model for fitting the data and charges it for every extra parameter, so a bigger model has to earn its place.
The two scores answer different questions: one aims at predicting new data well, the other at identifying which model is actually true.1Philosophy of Statistics. AIC, BIC and Recent Advances in Model Selection So when they disagree, neither has made an error.
The AIC and BIC Formulas
- AIC: −2 × log-likelihood + 2k.2PubMed Central. Model selection and psychological theory: A discussion of the differences between the Akaike Information Criterion (AIC) and the Bayesian Information Criterion (BIC)
- BIC: −2 × log-likelihood + k × ln(n).2PubMed Central. Model selection and psychological theory: A discussion of the differences between the Akaike Information Criterion (AIC) and the Bayesian Information Criterion (BIC)
- Symbols: k is the number of estimated parameters in the model, and n is the number of observations.2PubMed Central. Model selection and psychological theory: A discussion of the differences between the Akaike Information Criterion (AIC) and the Bayesian Information Criterion (BIC)
Both formulas start from the same fit term. Twice the negative log-likelihood measures how well the model fits, and a better fit makes it smaller.3MetricGate. AIC vs BIC: What to Do When They Disagree The log-likelihood is the log of how probable your observed data are under the model’s fitted coefficients.2PubMed Central. Model selection and psychological theory: A discussion of the differences between the Akaike Information Criterion (AIC) and the Bayesian Information Criterion (BIC) From here on, I’ll call it the fit score. Adding predictors almost always shrinks it, which is why fit alone would always pick the biggest model. The second part of each formula adds a cost for each parameter, and that cost is the entire difference between AIC and BIC.2PubMed Central. Model selection and psychological theory: A discussion of the differences between the Akaike Information Criterion (AIC) and the Bayesian Information Criterion (BIC)
Counting k correctly takes a little care. It includes the intercept as well as every slope coefficient. In ordinary least squares, the residual variance is usually counted as one more parameter. A categorical predictor with several levels adds one parameter per non-reference level. Different software may count k differently, so compare models only within the same program.
For logistic regression and other generalized linear models, the same idea uses deviance. AIC is the model’s deviance plus 2 per parameter,4MetricGate. Deviance vs AIC vs BIC for GLM Model Comparison the same penalty as in the formula above.4MetricGate. Deviance vs AIC vs BIC for GLM Model Comparison
The absolute value of AIC or BIC means nothing on its own. The score depends on sample size and units, so a value like 412 tells you nothing by itself. Only differences between models fitted to the same data are meaningful, and the models must use the exact same observations. Dropping rows with missing values in one model but not another changes the score and breaks the comparison.
It helps to read the formula as a trade-off. Suppose two models fitted to the same data have fit scores of 300 and 296, and the second has two extra estimated coefficients. Under AIC the extra cost is 4, so its total is 300 versus 300, a tie. Under BIC the result depends on n: with 500 rows the two extra parameters cost about 12.4, so the smaller model wins clearly.
The One Real Difference Is the Penalty
AIC charges 2 per parameter.3MetricGate. AIC vs BIC: What to Do When They Disagree BIC charges ln(n) per parameter, which is larger than 2 once n is greater than 7.3MetricGate. AIC vs BIC: What to Do When They Disagree So in almost any real regression, BIC penalizes complexity more harshly and prefers simpler models.5MetricGate. AIC vs BIC: Which Information Criterion to Use The gap also widens as the sample grows, so with large data BIC becomes much stricter than AIC.5MetricGate. AIC vs BIC: Which Information Criterion to Use
The numbers make this concrete. ln(n) is about 4.6 with 100 observations and about 6.9 with 1,000. With 1,000 rows, an extra predictor must improve the fit score by nearly 7 points to lower BIC, but only by 2 to lower AIC. A predictor with a small real effect can therefore survive AIC and be dropped by BIC.
With 20 to 50 observations, ln(n) is only about 3 to 3.9, so the two criteria differ modestly and often agree. Disagreement becomes frequent with hundreds or thousands of rows.
Which One to Use for Your Goal
AIC was designed to pick the model whose predictions come closest, on average, to the process that really generated the data.6PubMed. The AIC criterion and symmetrizing the Kullback-Leibler divergence BIC was designed to approximate how probable each candidate model is given the data.7WIREs Computational Statistics. The Bayesian information criterion: background, derivation, and applications That makes BIC more useful for selecting a correct model, while AIC is better for predicting future observations.1Philosophy of Statistics. AIC, BIC and Recent Advances in Model Selection
As the sample grows, BIC becomes almost certain to pick the true model if it is among your candidates,8MetricGate. Model Selection: AIC, BIC, and CV but AIC is the more efficient choice for prediction.8MetricGate. Model Selection: AIC, BIC, and CV In large samples, choosing by lowest AIC gives nearly the same answer as leave-one-out cross-validation, where each point is predicted from a model fit without it.9Datamethods Discussion Forum. Information criteria vs cross validation In ecological data, AIC tends to work well when hidden differences among subjects are small, but when those differences are large, BIC often does better because of its stronger penalty.10Methods in Ecology and Evolution. The relative performance of AIC, AIC_C and BIC in the presence of unobserved heterogeneity
Forecasting sales or risk scores points to AIC. Testing which theory-based explanation fits best points to BIC. Exploratory work with many plausible small effects usually suits AIC.
BIC’s guarantee assumes that the true model is among those you fitted. In real research, relationships are rarely exactly linear and rarely contain only the predictors you measured, so every candidate is an approximation. When all candidates are approximations, the question becomes which one is most useful, which is closer to AIC’s goal. BIC’s advantage matters most in tightly controlled settings, such as testing a small number of theory-driven models.
Choose the criterion before comparing models, so you can’t pick whichever gives the answer you like. State the choice and the reason in your write-up.
Reading AIC Differences and Model Weights
The AIC gap, formally called delta AIC, is each model’s AIC minus the lowest AIC in the set, so the best model has a delta of 0.11R Documentation. akaike.weights Models within about 2 of the best are often treated as having substantial support, and larger gaps mean progressively less support.12University of Central Florida. AIC and BIC in Regression: Formulas and Differences Some analysts use stricter cutoffs, so treat 2 as a rough guide rather than a rule.
Gaps can also be turned into weights. Each model’s relative likelihood is exp(−½ × the AIC gap).11R Documentation. akaike.weights Dividing each by the sum across all models gives Akaike weights, which add up to 1.11R Documentation. akaike.weights A model weight shows how strongly the data favor a model within your set.12University of Central Florida. AIC and BIC in Regression: Formulas and Differences
Here is how it works with a model table. Suppose three models have AIC values 210.0, 211.5, and 218.0. Subtracting the lowest gives gaps of 0, 1.5, and 8. The relative likelihoods are exp(−0) = 1, about 0.47, and about 0.02. Their sum is about 1.49, so the weights are roughly 0.67, 0.31, and 0.01, and they add up to 1. A gap of 1.5 leaves real support for the second model, while a gap of 8 makes the third nearly irrelevant.
When several models are close, report all models within about 2 of the best rather than crowning one. Look at whether the close models share the same key predictors. You can also average predictions across models using their weights. If interpretation matters, prefer the simpler model among near-ties.
Weights are easy to over-read. They only compare the models you fitted, not all possible models. A weight of 0.9 doesn’t mean a 90 percent chance the model is true. And adding or removing a candidate changes every weight.
Small Samples and the AICc Correction
AICc is a bias-corrected AIC for regression and time series models.13Biometrika. Regression and Time Series Model Selection in Small Samples Plain AIC is less accurate when the sample is small or the parameters make up a moderate to large share of the sample,13Biometrika. Regression and Time Series Model Selection in Small Samples so AICc often selects better models than AIC in small samples.14PubMed. Model selection for extended quasi-likelihood models in small samples As the sample grows, the two converge, so using the small-sample AIC costs nothing in large data.
The formula is AICc = AIC + 2k(k+1)/(n − k − 1). The extra charge becomes large when n is only a little bigger than k. A common rule of thumb is to prefer the small-sample AIC when n divided by k is below about 40.
Check n divided by k for your most complex model, not only the sample size: 200 rows is generous for 3 parameters but cramped for 40. If that ratio is low for any candidate, use the correction for the whole comparison.
In practice, many packages report AIC by default, so check whether the corrected version is available or compute it by hand. Use it for every model in the comparison, never mixing it with plain AIC. The AIC gap and model weight methods work the same way with it.
Where Both Criteria Break Down
When the number of possible predictors is large, AIC, BIC, and testing on held-out data tend to keep many predictors that do nothing.15Biometrika. Extended Bayesian Information Criteria for Model Selection with Large Model Spaces In high-dimensional regression they lose their usual guarantees and produce many false positives.16PubMed Central. A Simple Information Criterion for Variable Selection in High‐Dimensional Regression Specialized versions such as extended BIC were developed for those settings.15Biometrika. Extended Bayesian Information Criteria for Model Selection with Large Model Spaces
When you test dozens or hundreds of predictors, some will look useful by chance alone. The criteria were designed to compare a few models, and each additional comparison raises the chance that noise wins.
Extended BIC adds a further penalty that grows with the number of possible predictors, not just those included. If you face a wide dataset, look for this version or for other methods designed for it.
Stepwise selection adds its own problems. In one health survey analysis, stepwise selection with BIC gave small models that changed a lot from sample to sample, while stepwise AIC was more stable, likely because of its milder penalty.17PubMed Central. Comparison of subset selection methods in linear regression in the context of health-related quality of life and substance abuse in Russia Both treated the chosen model as if it had been planned in advance, so the reported standard errors were too small.17PubMed Central. Comparison of subset selection methods in linear regression in the context of health-related quality of life and substance abuse in Russia
Mixed-effects models raise a different issue. Because observations are grouped, the sample size in BIC’s formula is unclear.18Electronic Journal of Statistics. A note on BIC in mixed-effects models Software may use either the number of groups or the number of rows, giving different BIC values.
A few habits help. Shortlist candidate models from subject knowledge instead of searching every combination. Check stability by refitting on bootstrap resamples and seeing whether the same model wins. Validate predictions on data the model never saw. And report that selection was done, so readers can discount the precision.
Other Criteria You May See in Output
The Hannan-Quinn criterion, often shown as HQIC in time-series output, uses a penalty that grows with sample size more slowly than BIC’s. Like BIC and unlike AIC, it reliably settles on the true model as data grow.19Wikipedia. Hannan–Quinn information criterion Like BIC, it isn’t the most efficient choice for prediction.19Wikipedia. Hannan–Quinn information criterion
Its penalty per parameter is 2 × ln(ln(n)), a slowly growing function of n. With 1,000 rows this gives about 3.9 per parameter, between AIC’s 2 and BIC’s 6.9. For small samples its charge can fall below AIC’s, so it is not always in the middle. In typical datasets, though, the three form a spectrum from lenient to strict.
All three use the same fit score, so they differ only in how much each parameter costs. Pick the one matching your goal rather than majority voting.

