Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] - how to calculate the BIC of a mixture model #103

Closed
5tinzi opened this issue Sep 14, 2022 · 2 comments
Closed

[Question] - how to calculate the BIC of a mixture model #103

5tinzi opened this issue Sep 14, 2022 · 2 comments

Comments

@5tinzi
Copy link

5tinzi commented Sep 14, 2022

hi,
I read the readme.md, I wonder if the "average log likelihood of the GMM given all data points" is equal to the "log-likelihood of the model"?

I wanna calculate a BIC , suppose I fit a model gmm = GMM(k,x),
then BIC = −2 * loglik + (log N ) * d. , where loglik is the log-likelihood of the model, N is the number of datapoints and d is the number of parameters in the model.

so, is it OK to using avll(gmm::GMM, x::Matrix) as the loglik here?

I am not an expert in the field of statistics, any advice is appreciated.

@davidavdav
Copy link
Owner

It has been a while since I've been working with BIC, but looking at Wikipedia, your loglik is the total log-likelihood of the model, this would be N * avll.

@5tinzi
Copy link
Author

5tinzi commented Sep 14, 2022

Thanks, it works as expected.

Have a nice day.

@5tinzi 5tinzi closed this as completed Sep 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants