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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file bng_dis_probability-0.2.tar.gz.

File metadata

  • Download URL: bng_dis_probability-0.2.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for bng_dis_probability-0.2.tar.gz
Algorithm Hash digest
SHA256 aa00076d50e432186d3bdcec38d5166965e7107ce6971e56b913f295706e440d
MD5 38095777799a8fb48a62dfcde5f17dd7
BLAKE2b-256 404eafbe9125e41b05887322fcce91d7ceb22692adc6c9750333f5eeb520a849

See more details on using hashes here.

File details

Details for the file bng_dis_probability-0.2-py3-none-any.whl.

File metadata

  • Download URL: bng_dis_probability-0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for bng_dis_probability-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 eef09ba9818024b36e29b5099e3eb0793b714f4765363b35e44ea8a708ae3a0f
MD5 9e5dd4b3aeeda46ef87e779b3a81cf0d
BLAKE2b-256 5f758968a6a004766d2d6bc705d2c607278c6773af9bf37d76d760e5da79eba5

See more details on using hashes here.

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