Skip to main content

Gaussian and Binomial distributions

Project description

Description:

It's a statistical tool to analyze your dataset using standard distributions such as binomial and gaussian distributions.

Features:

  • Calculate mean, standard deviation, probability density function(pdf) and plot graphs for a dataset. You can also add distribution objects from different datasets to calculate the same for the resultant distribution.
  • Binomial distribution allows plotting bar graphs for the instance variable and probability density function(pdf). Gaussian distribution uses histograms for the same

Installation:

pip install std_distributions

Note:

Please install matplotlib to plot graphs,(if not already installed) from here.

Example usage

>>>from std_distributions import Binomial, Gaussian
'''
Creating distribution objects
Sytax:
binomial_obj = Binomial(probability,size)
gaussian_obj = Gaussian(mean, standard_deviation) or Gaussian()
'''
>>>b1 = Binomial(0.5,22)
>>>b1
>>>mean = 11.0, standard deviation = 2.345207879911715, p = 0.5, n = 22b2 = Binomial(0.5,44)
>>>b_resultant = b1+b2
>>>b_resultant
>>>mean = 33.0, standard deviation = 4.06201920231798, p = 0.5, n = 66
>>>g1 = G()
>>>g1.read_data_file("numbers.txt")g1.calculate_mean()
>>>1.8181818181818181g1.calculate_stdev()
>>>1.8340219092574557

Project details


Release history Release notifications | RSS feed

This version

1.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

std_distributions-1.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

std_distributions-1.1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file std_distributions-1.1.tar.gz.

File metadata

  • Download URL: std_distributions-1.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for std_distributions-1.1.tar.gz
Algorithm Hash digest
SHA256 b9af0c3fd9b92e46b76471a9fbbd341e7cc50cb24e6501a3d79898c53fd3e8bc
MD5 2072eed711dc682db3f45b403e878cb4
BLAKE2b-256 2a99492ab8848e14c5979a366dc312991c072a914a614ce201b0a95eabc54a37

See more details on using hashes here.

File details

Details for the file std_distributions-1.1-py3-none-any.whl.

File metadata

  • Download URL: std_distributions-1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for std_distributions-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4e2a6c532368db30cbc22f7364a1733375011ebf52cfb423c12e44a49cd7b14f
MD5 d1fcf9b096477de3d42d8b36d147ba18
BLAKE2b-256 acb032fe79f754fe41f8241099259af25c492a5903568a0999bf92ceb78843b0

See more details on using hashes here.

Supported by

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