Getting maximum likelihood to compute AIC, BIC and DIC #2017
Replies: 3 comments 7 replies
-
I am also curious as to why they're not shipped with arviz unlike WAIC and LOO. Is it because of the reasons raised previously? |
Beta Was this translation helpful? Give feedback.
-
Currently we have functionality only for mcmc, so we are missing metrics for e.g. optimize and variational inference. AIC, DIC etc are defined on max likelihood, and there is no guarantee that mcmc ever samples near that. You could use optimize method to find maximum likelihood value with pystan3 (use scipy optimizer + gradient and lp info) or use optimize in cmdstanpy But to use optimize you need to be careful that the correct density is optimized and tbh I don't remember the correct procedure right now (cc @OriolAbril @avehtari ) |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Hi there,
I'm using arviz to analyze the output of a fit performed by pystan3, and I wish to compute the value of both AIC, BIC and DIC.
I've seen a few discussions, namely this one over at the Stan forums, where it's argued that both AIC and BIC are not baeysian quantities, as they rely on the maximum likelihood instead of working with the full distribution. Instead, they recommend using WAIC and LOO, both of which are already implemented in arviz.
However, in my field, which is cosmology, AIC, BIC and DIC are often used and, although this might be due to the natural delay between different fields start communicating with each other, I would like to have them present in my research.
As such, I would like to know if it's possible using arviz, or even in Stan directly (although this is not the Stan forums), to obtain the maximum value for the likelihood such that I can compute AIC, BIC and DIC.
Beta Was this translation helpful? Give feedback.
All reactions