Skip to main content

Gaussian and Binomial distributions

Project description

distributions_study

distributions_study is a Python library for dealing with Gaussian and Binomial Distribution and allows you to perform analysis of both. For extensions, you can read the data from txt file for both the distribution types. Analysis of the data will be easy with the help of different methods this package contains

1. calculate_mean
2. calculate_stdev
3. pdf
4. plot_bar  #for binomial distribution
5. plot_histogram #for Gaussian distribution
6. plot_bar_pdf #plotting PDF for Binomial distribution
7. plot_histogram_pdf   #plotting PDF for Gaussian distribution
8. read_data_file  #for reading the .txt file

Data formats for txt file

1. Gaussian : comma separated values
2. Binomial : 0,1 list of experiment outcomes

Installation

Use the package manager pip to install distributions_study.

pip install distributions_study

Usage

import distributions_study
distributions_study.Gaussian(10,4) # returns Gaussian distribution object with mean 10, standard deviation 4
distributions_study.Binomial(0.4,25) # returns Binomial distribution object with success event probability 0.4, size of distribution 25

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

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

distributions_study-1.7.tar.gz (5.1 kB view details)

Uploaded Source

File details

Details for the file distributions_study-1.7.tar.gz.

File metadata

  • Download URL: distributions_study-1.7.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/38.4.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.3

File hashes

Hashes for distributions_study-1.7.tar.gz
Algorithm Hash digest
SHA256 909a74cc402620651a431b59f102c45dceefa4041b7879d4d0f1ff41477f3c79
MD5 0cc19c31a4bfbe74331629b49a603635
BLAKE2b-256 fe1db761d8ffa2241d1e302150ffe63b9878495e310b28e1872242567bba5040

See more details on using hashes here.

Supported by

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