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

logmultinomial implements log(Combinatorics.multinomial) #231

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

btwied
Copy link

@btwied btwied commented May 30, 2020

It's likely I haven't met proper guidelines for style/documentation, so please verify those when reviewing the pull request.

@stevengj
Copy link
Member

Is there any other library (numpy, mathematica, etcetera) that implements this function?

@btwied
Copy link
Author

btwied commented May 30, 2020

Is there any other library (numpy, mathematica, etcetera) that implements this function?

As far as I know, no. Numpy definitely doesn't have it, but numpy doesn't even have multinomial, which I was very glad to find Julia's Combinatorics does have. Multinomials are useful for various discrete probability calculations, and when those calculations are done under a log transform, logmultinomial would be handy. I implemented it because I needed it for game-theory research code where I'm computing expected utilities in large symmetric games, and I think there's a good chance it could be useful to others.

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

Successfully merging this pull request may close these issues.

2 participants