Skip to content
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

Open
wants to merge 23 commits into
base: master
Choose a base branch
from

Conversation

glouppe
Copy link
Contributor

@glouppe glouppe commented Apr 25, 2017

No description provided.

(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)
Copy link
Contributor Author

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

Copy link
Member

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.

Copy link
Member

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants