-
Notifications
You must be signed in to change notification settings - Fork 22
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
[WIP] Add support for uncertainty in ratios #61
base: master
Are you sure you want to change the base?
Conversation
(std_p / p[:, 1]) ** 2 - | ||
2 * (-std_p ** 2) / (p[:, 0] * | ||
p[:, 1]))) ** 0.5 | ||
# nb: cov(p, 1-p) = -var(p) = -std^2(p) |
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.
Instead, derive std_r as dr/dp * std_p
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 just tried it both ways and got the same answer. Maybe good to double check.
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.
not sure if there are numerical issues.
pretty sure this simplifies to
std_r = std_p / ( p[:,1]**2)
No description provided.