Probability Distributions¶
Discrete Distributions¶
Bernoulli Distribution¶
The simplest of all probabilistic experiments perhaps is tossing a coin. The outcome is either heads or tails, or 0 or 1, or.. Such an experiment is called a Bernoully experiment and the corresponding distribution is called the Bernoulli distribution.
The Bernoulli distribution has parameter \(p\). In case the random variable \(X\) is Bernoulli distributed we write \(X\sim\Bernoulli(p)\).
The probability mass function is:
The expectation equals:
and its variance:
Binomial Distribution¶
Consider a Bernoulli distributed random variable \(Y\sim\Bernoulli(p)\), and let us repeat the experiment \(n\) times. What then is the probabilty of \(k\) successes. A success is defined as the outcome \(Y=1\) for the Bernoulli experiment.
So we define a new random variable \(X\) that is the sum of \(n\) outcomes of repeated independent and identicallu distributed (iid) Bernoulli experiments.
The outcomes of \(X\) run from \(0\) to \(n\) and the probability of finding \(k\) successes is given as:
This is called the Binomial Distribution. For a random variable \(X\) that has a binomial distribution we write \(X\sim\Bin(n,p)\).
The expectation is:
and the variance:
Uniform Distribution¶
The discrete uniform distribution is used in case all possibe outcomes of a random experiment are equally probable. Let \(X\sim\Uniform(a,b)\), with \(a<b\) and \(a,b\in\setZ\), then
Its expectation is:
and its variance
Continuous Distributions¶
Uniform Distribution¶
The continuous uniform distribution characterizes a random experiment in which each real valued outcome in the interval \([a,b]\subset\setR\) is equally probable. The probability density function of \(X\sim\Uniform(a,b)\) is given by
Normal Distribution¶
The normal distribution is undoubtly the most often used distribution in probability and machine learning. For good reasons: a lot of natural phenomena of random character turn out to be normally distributed (at least in good approximation). Furthermore the normal distribution is a nice one to work with from a mathematical point of view.
Let \(X\sim\Normal(\mu,\sigma^2)\) then the probability density function is:
where the parameters \(\mu\) and \(\sigma^2\) are called the mean and variance for good reason: