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

ENH: proportion_confint only has two-sided confidence intervals, no "alternative" option #9239

Closed
josef-pkt opened this issue May 4, 2024 · 3 comments · Fixed by #9249
Closed

Comments

@josef-pkt
Copy link
Member

see
https://stats.stackexchange.com/questions/646445/multinomial-one-sided-confidence-intervals

same for multinomial_proportions_confint

I think for proportion_confint it should be just one interval at 2*alpha, except for "beta-test" which is minlike, and the one-sided will correspond to one side of equal-tail intervals.

I don't have a guess on one-sided interval for multinomial_proportions_confint. (too long ago). But it might be based on an equal-tail derivation.

@mcmrc
Copy link
Contributor

mcmrc commented May 19, 2024

@josef-pkt
Hi, Josef.
I read the thread and agree that the one-sided interval is the same as one side of the two-sided interval for doubled alpha in a binomial distribution.
Can I take this issue on propotion_confint to add an option to explicitly get one-sided ci?

@josef-pkt
Copy link
Member Author

Yes, we want to add the alternative option and include one sided intervals.

Note, "binomtest" will have different one-sided intervals which should be easy to compute.
The will be the same as for the central, equal-tail binom test.

pull request would be welcome.

@mcmrc
Copy link
Contributor

mcmrc commented May 19, 2024

@josef-pkt
Hi, I made a PR. I'd be glad if you especially check the logic of binom_test and jeffreys.

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

Successfully merging a pull request may close this issue.

2 participants