An open API service indexing awesome lists of open source software.

https://github.com/mohammedhamzamalik/bng-dis-probability

Includes Binomial and Gaussian Distributions
https://github.com/mohammedhamzamalik/bng-dis-probability

hacktoberfest hacktoberfest-accepted hacktoberfest2021 python-package

Last synced: about 1 year ago
JSON representation

Includes Binomial and Gaussian Distributions

Awesome Lists containing this project

README

          

# [BnG Distributions Package](https://pypi.org/project/bng-dis-probability/)

## Summary of the package.

This package contains three files.
1. Generaldistribution.py
2. Gaussiandistribution.py
3. Binomialdistribution.py

---
## Files

Explanation of the files.
- The Generaldistribution.py contains:
1. Generic distribution class for calculating and
visualizing a probability distribution.
2. And a Function to read in data from a txt file.

---
# The Gaussiandistribution.py contains:
1. Gaussian distribution class for calculating and
visualizing a Gaussian distribution.
2. Function to calculate the mean of the data set.
3. Function to calculate the standard deviation of the data set.
4. Function to output a histogram of the instance variable data using
matplotlib pyplot library.
5. Probability density function calculator for the gaussian distribution.
6. Function to plot the normalized histogram of the data and a plot of the
probability density function along with the same range.
7. Function to add together two Gaussian distributions.
8. Function to output the characteristics of the Gaussian instance.

---
# The Binomialdistribution.py contains:
1. Binomial distribution class for calculating and
visualizing a Binomial distribution.
2. Function to calculate the mean from p and n.
3. Function to calculate the standard deviation from p and n.
4. Function to calculate p and n from the data set.
5. Function to output a histogram of the instance variable data using
matplotlib pyplot library.
6. Probability density function calculator for the binomial distribution.
7. Function to plot the pdf of the binomial distribution.
8. Function to add together two Binomial distributions with equal p.
9. Function to output the characteristics of the Binomial instance.

---
# Installation
For installation, write the following command in your terminal:
```
pip install bng_distributions
```

---
**Note:** **This package is officially published on the PyPi website.** [Link](https://pypi.org/project/bng-dis-probability/)