Skip to content

Instantly share code, notes, and snippets.

@SushilShrestha
Last active January 31, 2019 01:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SushilShrestha/cb12ad84c47f3195c2d95f5cd5e3ab85 to your computer and use it in GitHub Desktop.
Save SushilShrestha/cb12ad84c47f3195c2d95f5cd5e3ab85 to your computer and use it in GitHub Desktop.
Probability Mass Functions / Probability Density functions

PDF is defined by a Probability Distribution curve. PDF can be thought of like, given a sample data points, the PDF squashes the points to get a model (curve or distribution curve) that can be used to define the total samples. We can select a pdf train it on our dataset. find the pdf parameters and then use the model to predict future events. So PDF is a function p(x) that returns probability of x and uses parameters we obtained from the population.

We have freedom to choose what to use for p(x). There are multiple density functions you can choose from.

  • Bernoulli's Distribution
  • Poission's Distribution
  • Normal Distribution
  • Bionomial Distribution
  • Negative Binomial Distribution

Which distributions to use ? Well, it depends on what kind of datasets we have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment