Gaussian and Binomial distributions
Project description
Distribeauty
Simple python package, capable of calculating and plotting the probability distribution functions for both Gaussian and Binomial distributions. For a mathematical background you can refer to Gaussian and Binomial links accordingly
Dependencies
matplotlib(can be installed viapip install matplotlib, if you are using different package manager, refer to the instruction)unittestfor testing
List of methods and brief description
calculate_mean()andcalculate_stdev()simply calculates both mean and standard deviation of your data accordinglyplot_histogram()andplot_histogram_pdf(n_spaces)are method to output a histogram of the instance variable data usingmatplotlib.pyplotlibrary and method to plot the normalized histogram of the data and a plot of the probability density function along the same range accordingly (n_spacesrefer to a number of data points, for Binomial useplot_bar()andplot_bar_pdf()pdf(x)probability density function calculatorread_data_file(file_name)inherits fromGeneralDistributionclass to read the datareplace_stats_with_data()Binomial exclusive function to to calculate probability of the positive outcome and number of trials from the data set
Tests
Utilize the test.py script included in the package in order to test the functions functionality.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file distribeauty-1.0.5-py3-none-any.whl.
File metadata
- Download URL: distribeauty-1.0.5-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/38.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a0596a1cd28bf7a5a9ee1f760e9fa313ae0839fae78cfd2576d4f17a6f72ca9
|
|
| MD5 |
e8d009f240e87f554c3b0ba673419a88
|
|
| BLAKE2b-256 |
b58ca0718fcf158f31d2b992a4b90b18b46ad34aa465bb465021f7104cb92e27
|