# Examples of Probability (Density) Functions

Learn about some examples of the probability density function.

We'll cover the following

There is an infinite number of possible PDFs. However, some specific forms have been very useful for describing some specific processes and have been given names. The following is a small list of examples with some discrete and several continuous distributions. The list is intended to give an overview of distributions that are often mentioned in scientific work, and some of them will be discussed again in later chapters.

Most examples are discussed as 1-dimensional distributions, except the last example, which is a higher-dimensional distribution. Again, we need to keep in mind that machine learning is mostly concerned with high-dimensional cases, so these distributions only act as a starting point for illustrating some ideas.

## Bernoulli distribution

A Bernoulli random variable is a variable from an experiment that has two possible outcomes:

• A success with probability $p$
• A failure with probability (1 − $p$)

Probability function:
$\space \space \space \space \space P(\text {success})=p$
$P(\text {failure})=1-p$
mean: $p$
variance: $p(1-p)$

## Multinomial distribution

This is the distribution of outcomes in $n$ trials that have $k$ possible outcomes. The probability of each outcome is therefore $p_i$.

Probability function:

$P\left(x_{i}\right)=n ! \prod_{i=1}^{k}\left(p_{i}^{x_{i}} / x_{i} !\right)$

mean: $n p_{i}$
variance: $n p_{i}\left(1-p_{i}\right)$

### Binomial distribution

An important example is a binomial distribution $(k = 2)$, which describes the number of successes in $n$ Bernoulli trials with probability of success $p$. Note that the binomial coefficient is defined as follows:

Get hands-on with 1200+ tech skills courses.