Understanding AIC Values for Best Model
16 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello, I am trying to understand how to interpret my AIC outputs for three comparison models. I computed the AIC values using either the cumulative negative log likelihoods (nLL) or cumulative deviance for each model.
In my code, how I assess the two AIC values are as follows:
AIC_nLL = -2 * (cum_nLL) + 4; %4 because it is 2k and I have 2 free parameters in each model
AIC_dev = cum_dev + 4; %4 because it is 2k and I have 2 free parameters in each model
For AIC_nLL I get negative results, (i.e., -15585.2; -15821.7; -35015.2 ) and for AIC_dev I get positive results (i.e., 1.57E+04 ; 1.59E+04; 3.51E+04 ).
While the actual positve/negative values aren't relevant, the decision for which model is best differs between the two calculations, as for AIC_nLL it suggests Model 3 is best and with AIC_dev it suggests Model 1/2 are best.
I have already gone through to double check that my cum_nLL calclulations and cum_deviance calculations are correct. I'm not sure how to move forward with interpreting my results.
0 commentaires
Réponse acceptée
William Rose
le 25 Oct 2024
@Alyssa,
Those negative AICs should be positive.
Simple interpretation is to take the model with the lowest (positive) AIC.
1 commentaire
William Rose
le 25 Oct 2024
@Alyssa, since you took the negative log likelihood, you don't wan't to multiply by -1. That is why you got negative AIC values when you should have had positive.
So both ways of calculating AIC indicate models 1 and 2 are a lot better than model 3.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Model Assessment dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!