Bootstrapped – A Python library to generate confidence intervals
github.com
github.com
Google e.g. "interval BCa"
Also - I gladly accept diffs if you are motivated. It is not clear to me that BCa and other variants provide substantial improvement for most practical situations. I would invite criticism here.
Tldr - thanks for the feedback
How bootstrapped works tldr - Percentile based confidence intervals based on bootstrap re-sampling with replacement.
---
MIT OCW 18.05 has this to say about the technique:
https://ocw.mit.edu/courses/mathematics/18-05-introduction-t...
The bootstrap percentile method is appealing due to its simplicity. However it depends on the bootstrap distribution of mean(x') based on a particular sample being a good approximation to the true distribution of mean(x). Rice says of the percentile method, “Although this direct equation of quantiles of the bootstrap sampling distribution with confidence limits may seem initially appealing, it’s rationale is somewhat obscure.”
In short, don’t use it.
Use the empirical bootstrap instead (we have explained both in the hopes that you won’t confuse the empirical bootstrap for the percentile bootstrap).
---
Updated to reflect suggestions in comments below.
Thanks for the feedback!
OP, how does this compare to scikits.bootstrap [1] feature/performance-wise?
This library gives you a/b test functionality and should be faster on large input datasets.
numpy is used to give a speed improvement when generating the bootstrap samples - this would be very slow in a Python for loop.
Pandas is only used in the power analysis code. Ill make that more clear.
Would love more feedback if you have it!
I'm not trying to sound arrogant or anything, if numpy is the standard now then there's definitely no point in reinventing the wheel. (But pandas is still overkill...)
Most of the important stuff is just numpy which i feel is pretty fair for most peeps.
"pands and numpy are imported by default" is a pretty safe assumption in this space, IMO