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

Binomial variable does not support too many trials #2

Open
pelegm opened this issue Sep 23, 2014 · 1 comment
Open

Binomial variable does not support too many trials #2

pelegm opened this issue Sep 23, 2014 · 1 comment

Comments

@pelegm
Copy link
Owner

pelegm commented Sep 23, 2014

The following code:

b = dists.Binomial(10000, 0.1)

raises the following error:

--> 136         return 1.0 * choose(n, k) * p ** k * (1 - p) ** (n - k)
OverflowError: long int too large to convert to float
@pelegm
Copy link
Owner Author

pelegm commented Oct 19, 2014

Perhaps doing this symbolically will solve this issue; see #5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant