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: Bootstrapping Confidence Intervals + Statistical Tests #7448

Open
quillan86 opened this issue May 13, 2021 · 4 comments
Open

ENH: Bootstrapping Confidence Intervals + Statistical Tests #7448

quillan86 opened this issue May 13, 2021 · 4 comments
Labels

Comments

@quillan86
Copy link

quillan86 commented May 13, 2021

Is your feature request related to a problem? Please describe

Not a problem per se - new feature due to lack of ability to find this in commonly used python statistical packages

Describe the solution you'd like

I'd really like a way to do bootstrapping confidence intervals as well as statistical tests associated with them (e.g. one-sample and two-sample tests) within the package. I could contribute myself although I'm new in terms of open source stuff esp on a package on this level. Especially since R has standard packaging in this. In particularly relevantly for me I'd want to allow for weighted estimates in bootstrapping arbitrary point estimates

Describe alternatives you have considered

I found a BSD-licensed package on bootstrapping here - but this package is inactive:

https://github.com/facebookarchive/bootstrapped

In addition I hand-wrote some code to handle bootstrapping myself (mostly for practice - so obviously it's rough, not optimized and POC-like). In my particular use case I'd like to specifically account for weighted point estimates so any method should account for weighting in there optionally.

The R package bootstrap is here, but of course this is in R:
https://cran.r-project.org/web/packages/bootstrap/bootstrap.pdf

@WarrenWeckesser
Copy link

FYI: There is a SciPy pull request that is likely to be merged soon that adds a function to compute bootstrapped standard errors and confidence intervals for a given function that computes a statistic.

@bashtage
Copy link
Member

The arch package also has a complete framework for bootstrapping arbitrary statistics:

https://bashtage.github.io/arch/bootstrap/bootstrap_examples.html

@quillan86
Copy link
Author

Okay, thanks. I guess it's confusing trying to figure out which package has what. I haven't seen the arch package before.

@josef-pkt
Copy link
Member

What's the role of weights in bootstrap? Which kind of weights?

I don't remember having seen weights there before and it might need additional support to what's available.

(statsmodels only has case specific support mainly when asymptotic results are not available)

@bashtage bashtage changed the title Bootstrapping Confidence Intervals + Statistical Tests ENH: Bootstrapping Confidence Intervals + Statistical Tests May 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants