Skip to main content

Gaussian and Binomial distributions

Project description

Gaussian and Binomial Distributions

A basic package for calculating and visualizing Gaussian and Binomial Distributions. This is only a test.

How to install

$ python install gauss-binom-test

Features

  • Calculate the Gaussian and Binomial pdf of a data set
  • Calculate the mean and standard deviation
  • Calculate the sum of two pdfs
  • Plot the histogram of data points and normalizdd histogram of the pdf

Example

Open the Python interpreter:

Create a standard normalmdistribution (zero mean and standard deviation equal to one)

$ python
>>> gaussian_normal = Gaussian()

**Create a Gaussian distribution with mean=5 and stdv=2

>>> gaussian_one = Gaussian(5,2)

Addition of two Gaussian distributions

>>> gaussian_sum = gaussian_normal + gaussian_one

Calculate the probability of a data point for a Gaussian distribution with a given mean and stdv

>>> gaussian_one = Gaussian(5,2)
>>> gaussian_one.pdf(6)

**Calculate the mean and standard deviation

>>> gaussian_one.mean()
>>> # sample stdv
>>> gaussian_one.stdev() 
>>> # population stdev
>>> gaussian_one.stdev(sample=False)

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

gauss_binom_test-0.2.3.tar.gz (4.0 kB view hashes)

Uploaded Source

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