Skip to main content

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

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

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

Uploaded Source

File details

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

File metadata

  • Download URL: typekev_mlnd_probability-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.21.0 setuptools/38.4.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.3

File hashes

Hashes for typekev_mlnd_probability-1.1.tar.gz
Algorithm Hash digest
SHA256 c219d49fa0bae38f4973e4234f040cf39cd57cf305fed4fb43916a5662671ce2
MD5 b558177490af568b3878a309f3e06921
BLAKE2b-256 5a3afb0abc7e41b6714c8c2b2c5c1c6747460fd13fc48affa8194e970a225314

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