-
Notifications
You must be signed in to change notification settings - Fork 896
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
Negative Binomial parameter wrong #263
Comments
Also could someone check the Sample method? It produces non-sense as well. |
Thanks for pointing this out, will have a look at it. Sample: the actual sampling distribution shape is indeed not currently verified in the unit tests (commented out, also Poisson and ConwayMaxwellPoisson). We must cover all of them properly. |
I finally had a quick first look at this - the talk page at that wikipedia article is quite interesting, there seems to be a lot of confusion, mostly on slightly different definitions of the parameters and the support. And yes, there seems to be a mismatch between our implementation and its own inline documentation. |
Related: #455 |
The description was partially fixed in 9fbd27f, however the description in the F# interface is still wrong. |
So here p is said to be success chance.
However, here:
According to wiki, it should be
_trials * _p / (1 - _p)
if we follow the description of the parameter.It seems throughout the code we interpret
_p
as1 - _p
The text was updated successfully, but these errors were encountered: