Gaussian and Binomial distribution
Project description
This package contain Gaussian distribution and Binomial distribution
## Gaussian Distribution
Attributes:
mean
standard deviation
Methods:
read_data_file(file_name) - to read in data from a txt file
calculate_mean() - to calculate mean of data set
calculate_stdev() - to calculate standard deviation of data set
plot_histogram() - to output a histogram of the instance variable data
pdf() - to calculate probability density function
plot_histogram_pdf() - to plot the normalized histogram of the data and a plot of the probability density function
## Binomial Distribution
Attributes:
probability
size of trial
mean
standard deviation
Methods:
read_data_file(file_name) - to read in data from a txt file
calculate_mean() - to calculate mean from p and n
calculate_stdev() - to calculate standard deviation from p and n
replace_stats_with_data() - to calculate p and n from the data set
plot_bar() - to output a histogram of the instance variable data
pdf() - to calculate probability density function
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
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
539a1a5e03565b4fe4ee2e693bf15b0a1fc7d6897f6e064930efbba649cb4ec3
|
|
| MD5 |
467d0d9a0b45d7a769b9e422f663bcfa
|
|
| BLAKE2b-256 |
b5775bfe90766452a6fd3a8c767bc9de75f501307d7aedb5a08c6bcb30e20928
|