Skip to main content

Gaussian and Binomial distributions

Project description

BnG Distributions Package

Includes Binomial and Gaussian Distributions

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 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

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

bng_dis_probability-0.2.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

bng_dis_probability-0.2-py3-none-any.whl (5.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page