GitHub - cgevans/scikits-bootstrap: Python/numpy bootstrap confidence interval estimation. (original) (raw)

DOI Codecov PyPI GitHub release (latest SemVer) PyPI - Python Version

Documentation: Stable, Latest.

scikits-bootstrap

Scikits.bootstrap provides bootstrap statistics confidence interval algorithms for Numpy/Scipy/Pandas. It originally required scipy, but no longer needs it.

It also provides an algorithm which estimates the probability that the statistics lies satisfies some criteria, e.g., lies in some interval.

Much of the code has been written based off the descriptions from Efron and Tibshirani's Introduction to the Bootstrap, and results should match the results obtained from following those explanations. However, the current ABC code is based off of the modified-BSD-licensed R port of the Efron bootstrap code, as I do not believe I currently have a sufficient understanding of the ABC method to write the code independently.

Please contact me (Constantine Evans cevans@costinet.org, or Matrix <@cge:matrix.org>) with any questions, suggestions, vulnerabilities, or other comments (PGP key), or, preferably, use Github's issue and pull requests.

If you'd like to add something, or make improvements, please keep the following in mind:

The package is licensed under the BSD 3-Clause License. It is supported by the Evans Foundation.

I don't see a particular need to cite this package, but if you want to, please use the Zenodo DOI above, or the one appropriate for the version you used.

Version Information

Installation and Usage

scikits.bootstrap is tested on Python 3.7 - 3.10, and PyPy 3. The package can be installed using pip.

pip install scikits.bootstrap

Usage example for python 3.x:

import scikits.bootstrap as boot
import numpy as np
boot.ci(np.random.rand(100), np.average)