# Negative Infinity AIC and BIC

I was trying to compare best fit model for monthly precipitation data sets and negative and positive infinity (-inf and inf) as values have showed up for both AIC and BIC tests. Can anyone tell me what that means? I am using it to compare which dataset has good fit for gamma distribution.

New contributor
Yon Balcha is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
• AIC and BIC are information criteria, not tests. 2 days ago

• AIC is defined as $$2k - 2\log \hat L$$, so it would be infinite when the likelihood $$\hat L$$ is zero since $$\log(0) = -\infty$$. This would happen if the data has probability of zero or probability density of zero under the model. In such a case, your model is not appropriate for the data, since the data is considered to be impossible by the model.