-
Notifications
You must be signed in to change notification settings - Fork 24
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
Median method of BinomialDistribution object fails on i386 architecture #140
Comments
The |
It is pretty straightforward to set up a 32-bit, fully operational Debian system on a 64-bit Debian system using schroot.
I looked deeper in the issue and I think that the BIST in A simple fix to the problem would be to treat p = ½ as a special case in |
That's a relatively easy fix, the only think that is of concern is that (once again) MATLAB produces the wrong(?) results.
|
If you are concerned with bug-compatibility with MATLAB, you might call The behavior of |
Can you explain the required changes in a bit more detail, please? The |
As p, I am referring to |
So, what about |
Indeed, it is confusing and it's my fault. I apologize for that. When I wrote:
I was meaning the I just opened MR #142 for fixing the issue. Note that it is a partial fix, because it does not cope with the truncated case. |
On an i386 Debian system, one of the BISTs for BinomialDistribution fails with the following error message:
It succeeds on an amd64 Debian system.
Ultimately, this is caused by a numerical computation difference between the architectures i386 and amd64.
On an amd64 system, we have (the code below is the crucial line in
binoinv.m
, which is called byBinomialDistribution.median
):while, on i386, we have the following:
Clearly, this is not a bug in the statistics packages, per se. However, the function binoinv is apparently relying on an unreliable algorithm to get its result.
The text was updated successfully, but these errors were encountered: