Gaussian and Binomial distributions
Project description
BnG Distributions Package
Includes Binomial and Gaussian Distributions
Summary of the package.
This package contains three files.
- Generaldistribution.py
- Gaussiandistribution.py
- Binomialdistribution.py
Files
Explanation of the files.
- The Generaldistribution.py contains:
- Generic distribution class for calculating and visualizing a probability distribution.
- And a Function to read in data from a txt file.
- The Gaussiandistribution.py contains:
- Gaussian distribution class for calculating and visualizing a Gaussian distribution.
- Function to calculate the mean of the data set.
- Function to calculate the standard deviation of the data set.
- Function to output a histogram of the instance variable data using matplotlib pyplot library.
- Probability density function calculator for the gaussian distribution.
- Function to plot the normalized histogram of the data and a plot of the probability density function along the same range.
- Function to add together two Gaussian distributions.
- Function to output the characteristics of the Gaussian instance.
- The Binomialdistribution.py contains:
- Binomial distribution class for calculating and visualizing a Binomial distribution.
- Function to calculate the mean from p and n.
- Function to calculate the standard deviation from p and n.
- Function to calculate p and n from the data set.
- Function to output a histogram of the instance variable data using matplotlib pyplot library.
- Probability density function calculator for the binomial distribution.
- Function to plot the pdf of the binomial distribution.
- Function to add together two Binomial distributions with equal p.
- Function to output the characteristics of the Binomial instance.
Installation
For installation, write the following command in your terminal:
- pip install bng_distributions
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 Distribution
Built Distribution
Close
Hashes for bng_dis_probability-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eef09ba9818024b36e29b5099e3eb0793b714f4765363b35e44ea8a708ae3a0f |
|
MD5 | 9e5dd4b3aeeda46ef87e779b3a81cf0d |
|
BLAKE2b-256 | 5f758968a6a004766d2d6bc705d2c607278c6773af9bf37d76d760e5da79eba5 |