Performs bootstrapping of a dataset to produce plots and statistics for use in final reports and documents.
Project description
strapvizpy
Summary
Performs bootstrapping of a dataset column to produce plots and statistics for use in final reports and documents.
The purpose of this package is to simplify and automate the process of creating simple bootstrap distributions of numerical data columns. The package will have a module which intakes a dataset column and relevant parameters such as the desired confidence bounds and number of simulations. The module will perform the simulation statistics to generate the bootstrap mean distribution and relevant statistics such as the sample mean and bootstrapped confidence interval. The package will also contain a module for visualization of the bootstraped confidence interval, and a module for creating a professional publication-ready table of the relevant statistics.
Package context within the Python ecosystem
The package will likely build on scipy's stats module, which allows one to conduct the boostrap sampling in the first place using the bootstrap method. strapvizpy will streamline and extend this process from the pure statistical process done in this module. sklearn has a utils module with a resample method which also seems popular and achieves similar functionality. While we cannot be certain that one does not exist, there does not seem to be a package which streamlines the process from data to visualization and presentation as proposed in this document. Some tutorials on bootstrap confidence intervals from machinelearningmastery.com and towardsdatascience.com encourage the reader to plot the results manually.
Installation
$ pip install -i https://test.pypi.org/simple/ strapvizpy
Function Usage
- bootstrap_distribution: A sampling distribution of
rep
replicates is generated for a specified estimator with replacement for a given bootstrap sample size. - calculate_boot_stats: Calculates a confidence interval for a given sampling distribution as well as other bootstapped statistics.
- histogram_ci_plot: Makes a histogram of a boostrapped sampling distribution with its confidence interval and oberserved sample statistic.
- summary_tabels: Generates a table that contains a given sampling distribution's mean and standard deviation along with relevant statistics as well as a summary table of the bootstrap distributions parameters
Contributing
Julien Gordon, Gautham Pughazhendhi, Zack Tang, and Margot Vore.
License
strapvizpy
was created by Julien Gordon, Gautham Pughazhendhi, Zack Tang, Margot Vore. It is licensed under the terms of the MIT license.
Credits
strapvizpy
was created with cookiecutter
and the py-pkgs-cookiecutter
template.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for strapvizpy-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 204d08783322517bd61f1c7352ca19a8c1e7c917b3e10d047de5a82b11fab377 |
|
MD5 | f7831580af04ca1a8994343732441b4f |
|
BLAKE2b-256 | 0841c57a361d2d9b461a718abe5cf5c5585f4636029596af29402a37a82138ac |