Gaussian and Binomial distributions
Project description
# MLND Probability Classes
This package exposes two probability distribution classes, Gaussian and Binomial, and was made as part of the Udacity Machine Learning Engineer Nanodegree.
This package was created for educational purposes.
# Use of Gaussian and Binomial
The classes can be imported as so: from typekev_mlnd_probability import Gaussian and from typekev_mlnd_probability import Binomial
Both classes are initialized with the following attributes:
mean: The mean or average
stdev: Standard deviation
data: The list of data in which to calculate the other attributes
Both classes also contain a read_data_file method.
The Gaussian and Binomial classes also contain unique attributes and methods. Though names may overlap, implementation will differ.
## Gaussian attributes and methods
The Gaussian class contains the following additional methods:
calculate_mean
calculate_stdev
plot_histogram
pdf
plot_histogram_pdf
The magic methods __add__ and __repr__ have also been implemented.
## Binomial attributes and methods
The Binomial class contains the following additional attributes:
n: The size of the data set
p: The probability
The Binomial class contains the following additional methods:
calculate_mean
calculate_stdev
replace_stats_with_data
plot_bar
pdf
plot_bar_pdf
The magic methods __add__ and __repr__ have also been implemented.
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
Hashes for typekev_mlnd_probability-1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c219d49fa0bae38f4973e4234f040cf39cd57cf305fed4fb43916a5662671ce2 |
|
MD5 | b558177490af568b3878a309f3e06921 |
|
BLAKE2b-256 | 5a3afb0abc7e41b6714c8c2b2c5c1c6747460fd13fc48affa8194e970a225314 |