-
Notifications
You must be signed in to change notification settings - Fork 26
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
Confidence intervals seem broader than in the MATLAB version #133
Comments
The good news is that apparently, the marginal is computed correctly: Both curves match exactly if overlayed. @guillermoaguilar We support CI calculation with a While we default to |
There still is a systematic difference between MATLAB and Python CIs as discussed in the MATLAB test PR.
@guillermoaguilar @otizonaizit @pberkes @lschwetlick What is your opinion, bug or feature? |
I ran the fits above with defaults, default in MATLAB and default in python. Now running it with 'percentiles' it gives me
which is much closer to MATLAB: 95 % = 0.004282936763270, 0.004964252219404 So differences are due to the discrepancy in the default method to compute the CI. IMO we must change the default to 'percentiles', and all defaults should be all the same w.r.t. the MATLAB implementation. I see that David @dekuenstle updated the PR #66 with the change, but I think this change has to be done ASAP and in isolation. Users will wonder why CI are sufficiently different between implementations. @otizonaizit do you agree? |
I think it boils down to coverage. If the narrower python CI have the appropriate coverage, then these should be kept |
I think this is a question for @FelixWichmann , even if my gut feeling is that 5% is small enough that it doesn't really matter. |
Yes, I have the feeling that it would be better to have a separate PR just to change the default mode for CI calculation, merge the obvious PRs that are already there and do a quick 4.2 release. What is @FelixWichmann thinking about this? Which method should be default? |
@guillermoaguilar : Felix approved the change in an email exchange. I changed the default CI method in #135 . Could you wait for #132 to be merged and then cut a 4.2 release? In two weeks we can discuss about the further steps, but this fix is urgent enough that it warrants a release right now, I think. |
Ok! |
For the data in the basic usage example, we have for the threshold:
result.confidence_intervals['threshold']
and in MATLAB:
95 % = 0.004282936763270, 0.004964252219404
90% = 0.004340714759236, 0.004907784893587
68 % = 0.004455989969640, 0.004793927224722
This is noticeable when plotting the marginals, that's how I found it.
In python for 95% threshold:
In MATLAB for 95% threshold:
In python the upper bound is >0.005, in MATLAB is <0.005.
The text was updated successfully, but these errors were encountered: