Skip to main content

Gaussian and Binomial distribution

Project description

This package contain Gaussian distribution and Binomial distribution

## Gaussian Distribution

Attributes:

  1. mean

  2. standard deviation

Methods:

  1. read_data_file(file_name) - to read in data from a txt file

  2. calculate_mean() - to calculate mean of data set

  3. calculate_stdev() - to calculate standard deviation of data set

  4. plot_histogram() - to output a histogram of the instance variable data

  5. pdf() - to calculate probability density function

  6. plot_histogram_pdf() - to plot the normalized histogram of the data and a plot of the probability density function

## Binomial Distribution

Attributes:

  1. probability

  2. size of trial

  3. mean

  4. standard deviation

Methods:

  1. read_data_file(file_name) - to read in data from a txt file

  2. calculate_mean() - to calculate mean from p and n

  3. calculate_stdev() - to calculate standard deviation from p and n

  4. replace_stats_with_data() - to calculate p and n from the data set

  5. plot_bar() - to output a histogram of the instance variable data

  6. pdf() - to calculate probability density function

  7. plot_bar_pdf() - to plot the pdf of the binomial distribution

## Installation

` pip install gaussian-binomial-probability-distributions `

## How to use distribution package

Open python environment and import the package ` python from distributions import Gaussian from distributions import Binomial `

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

File details

Details for the file gaussian_binomial_probability_distribution-0.1.tar.gz.

File metadata

  • Download URL: gaussian_binomial_probability_distribution-0.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/38.4.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.6.3

File hashes

Hashes for gaussian_binomial_probability_distribution-0.1.tar.gz
Algorithm Hash digest
SHA256 539a1a5e03565b4fe4ee2e693bf15b0a1fc7d6897f6e064930efbba649cb4ec3
MD5 467d0d9a0b45d7a769b9e422f663bcfa
BLAKE2b-256 b5775bfe90766452a6fd3a8c767bc9de75f501307d7aedb5a08c6bcb30e20928

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