Model selection compares candidate statistical models and chooses one according to a criterion balancing fit, predictive performance and complexity.
For Bayesian deviance under a common likelihood convention, define and . Then trades average fit against effective complexity. Lower values suggest better penalized predictive fit in comparable models; differences are not Bayes factors or model posterior probabilities. The choice of stochastic parameters and latent-variable representation matters, especially in a hierarchical Bayesian model.
The DIC effective parameter count compares mean Bayesian deviance with deviance at the posterior mean. It need not be an integer or equal the number of coefficients. Interpretation depends on the parameterization and the chosen observational likelihood; nuisance intercepts count when they appear in that likelihood.
Suppose the Bayesian deviance is locally with positive-definite , and the posterior is normal with mean and covariance . Writing , expectation and variance of the quadratic form give
Consequently the usual effective parameter count in DIC is , whereas half the deviance variance is . A locally flat prior gives and , so both counts equal the parameter dimension. Informative priors generally destroy their equality. The expectation formula requires only the first two moments; normality is used for the variance formula.
Variable selection chooses which predictor variables enter a statistical model. The Lasso produces exact zero slopes along its Lasso regularization path; ridge regression generally shrinks without excluding variables. Selection for prediction should use predictive cross-validation or another stated criterion, rather than equating a coefficient p-value with practical usefulness.
Testing the number of components in a finite mixture model is nonregular: absent components have zero weights on the parameter boundary and their means or other parameters are unidentified. The usual chi-squared limit for a likelihood-ratio test therefore need not apply. Information criteria are useful working comparisons, while parametric bootstrap and predictive cross-validation can provide more appropriate evidence. Neither a mixture fit nor a selected component count proves genuine latent populations.
For a model with fitted parameters and maximized likelihood , the Akaike information criterion is
The corrected Akaike information criterion adds a finite-sample penalty to the Akaike information criterion, where counts fitted parameters and . The displayed correction is commonly used for small samples; its exact unbiasedness depends on the model family.
Starting from a fitted model, compare admissible single-term additions and deletions within specified lower and upper scopes, retaining hierarchical lower-order terms when an interaction requires them. Select a change reducing the Akaike information criterion and repeat until no admissible change improves it. For a Gaussian normal linear model with observations and fitted mean coefficients, the criterion used by R's linear-model stepwise search is , up to constants common to the models. The search is greedy and need not find the best model in the whole scope. Ordinary coefficient tests in the selected model do not account for this model selection. The software arguments are documented in the MASS documentation.
Deleting fitted mean parameters improves the Akaike information criterion exactly when the displayed condition holds, since the criterion difference is . For one parameter, the equivalent partial F-test statistic is below , where is the full mean-model dimension. This is not the usual fixed-level significance-test cutoff. Fits must use the same observations and response transformation.
For a full-rank normal linear model with error variance , the maximum-likelihood residual variance satisfies
Consequently
For a normal linear model with known error variance , the scaled Akaike criterion differs by a model-independent constant from
If are independent vectors and is a rank- orthogonal projection, then
The first term is squared approximation bias, while is fitted-model variance and is irreducible new-response noise.
If is the rank- orthogonal projection onto a normal linear model's column space, then
Adding gives , so Mallows' is unbiased for independent-copy prediction error even when the projection model is misspecified.
For a model with fitted parameters, observations and maximized likelihood , the Bayesian information criterion is

Articles by others on the same topic (1)

Model selection is the process of choosing the most appropriate statistical or machine learning model for a specific dataset and task. The objective is to identify a model that best captures the underlying patterns in the data while avoiding overfitting or underfitting. This process is crucial because different models can yield different predictions and insights from the same data.