# fastbootstrap
Fast Python implementation of statistical bootstrap
___
## Installation
```bash
pip install fastbootstrap
```
___
## Usage
```python
import numpy as np
from fastbootstrap.bootstrap import two_sample_bootstrap
n = 10000
sample_1 = np.random.exponential(scale=1 / 0.001, size=n)
sample_2 = np.random.exponential(scale=1 / 0.00101, size=n)
p_value, boot_mean, boot_conf_interval = two_sample_bootstrap(sample_1, sample_2, plot=True)
```
![img.png](img.png)
___
Check interactive notebook [here](https://nbviewer.org/github/timofeytkachenko/bootstrap/blob/main/bootstrap_experiment.ipynb)
Raw data
{
"_id": null,
"home_page": "https://github.com/timofeytkachenko/fastbootstrap",
"name": "fastbootstrap",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": "bootstrap fast_bootstrap",
"author": "Timofey Tkachenko",
"author_email": "timofey_tkachenko@pm.me",
"download_url": "https://files.pythonhosted.org/packages/1a/e7/0702d7a7839375d62a1e6c3a8a568f6504d857c958af3abdfd77cc5ad2c4/fastbootstrap-1.1.1.tar.gz",
"platform": null,
"description": "# fastbootstrap\nFast Python implementation of statistical bootstrap\n___\n## Installation\n```bash\npip install fastbootstrap\n```\n___\n## Usage\n```python\nimport numpy as np\nfrom fastbootstrap.bootstrap import two_sample_bootstrap\n\nn = 10000\n\nsample_1 = np.random.exponential(scale=1 / 0.001, size=n)\nsample_2 = np.random.exponential(scale=1 / 0.00101, size=n)\n\np_value, boot_mean, boot_conf_interval = two_sample_bootstrap(sample_1, sample_2, plot=True)\n```\n![img.png](img.png)\n___\nCheck interactive notebook [here](https://nbviewer.org/github/timofeytkachenko/bootstrap/blob/main/bootstrap_experiment.ipynb)\n",
"bugtrack_url": null,
"license": null,
"summary": "Fast Python implementation of statistical bootstrap",
"version": "1.1.1",
"project_urls": {
"Homepage": "https://github.com/timofeytkachenko/fastbootstrap"
},
"split_keywords": [
"bootstrap",
"fast_bootstrap"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "0db9925fc7fb3b393a4560476c3de29ffe72c877a34df54093ad57d479b853ad",
"md5": "13d28c14abc1c773c4f80156b8363688",
"sha256": "ca8718a365790acc91f36b5ed2877bc064cc494f1d3884c432586b8160aaeb10"
},
"downloads": -1,
"filename": "fastbootstrap-1.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "13d28c14abc1c773c4f80156b8363688",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 9574,
"upload_time": "2024-12-17T05:53:30",
"upload_time_iso_8601": "2024-12-17T05:53:30.694578Z",
"url": "https://files.pythonhosted.org/packages/0d/b9/925fc7fb3b393a4560476c3de29ffe72c877a34df54093ad57d479b853ad/fastbootstrap-1.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "1ae70702d7a7839375d62a1e6c3a8a568f6504d857c958af3abdfd77cc5ad2c4",
"md5": "c7736eb702690b25fa0edcc1903ffd4a",
"sha256": "636d06233c69302aac27abc10af7498ae8f5f58fc15f84c07c48f289f34cfc8d"
},
"downloads": -1,
"filename": "fastbootstrap-1.1.1.tar.gz",
"has_sig": false,
"md5_digest": "c7736eb702690b25fa0edcc1903ffd4a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 9581,
"upload_time": "2024-12-17T05:53:33",
"upload_time_iso_8601": "2024-12-17T05:53:33.493106Z",
"url": "https://files.pythonhosted.org/packages/1a/e7/0702d7a7839375d62a1e6c3a8a568f6504d857c958af3abdfd77cc5ad2c4/fastbootstrap-1.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-17 05:53:33",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "timofeytkachenko",
"github_project": "fastbootstrap",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "jupyter",
"specs": [
[
"==",
"1.0.0"
]
]
},
{
"name": "ipython",
"specs": [
[
"==",
"8.21.0"
]
]
},
{
"name": "matplotlib",
"specs": [
[
"==",
"3.8.3"
]
]
},
{
"name": "plotly",
"specs": [
[
"==",
"5.19.0"
]
]
},
{
"name": "numpy",
"specs": [
[
"==",
"1.26.4"
]
]
},
{
"name": "scipy",
"specs": [
[
"==",
"1.12.0"
]
]
},
{
"name": "pandas",
"specs": [
[
"==",
"2.2.0"
]
]
},
{
"name": "tqdm",
"specs": [
[
"==",
"4.67.1"
]
]
},
{
"name": "seaborn",
"specs": [
[
"==",
"0.13.2"
]
]
},
{
"name": "joblib",
"specs": [
[
"==",
"1.4.2"
]
]
}
],
"lcname": "fastbootstrap"
}