-
Notifications
You must be signed in to change notification settings - Fork 2
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
Correct the sigmas in TwoHalfNorm #143
Conversation
for more information, see https://pre-commit.ci
Pull Request Test Coverage Report for Build 8158678085Details
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I generally think that the functionality is what the description promised. But how users should interpret what sigma_pos
and sigma_neg
represent and the roots given by errors_to_two_half_norm_sigmas
? We might need to define the meaning of the two groups somewhere.
Also, can the roots given by |
the
The equation to be solved requires 1. x=0 has the highest pdf 2. 16&84 percentiles are at x=+-error. In that sense the solution is unique. |
This PR fixes problem #142
If we have the two asymmetric errors, and simply use them as the sigmas in the TwoHalfNorm, the 16 and 84 percentile won't be correct. This PR solves this issue by numerically solving the sigmas that require 16 and 84 percentile to be the errors. To test it,
which outputs
and the distributions before and after the correction