No history yet

Advanced Probability Distributions

Beyond the Basics

You're likely familiar with basic probability and distributions like the Normal or Binomial. Now, we move past calculating simple odds and into the mathematical structure that defines random phenomena. A probability distribution isn't just a graph; it's a function that links every possible outcome of an experiment to its probability of occurring.

For any random variable XX, its distribution tells us everything we need to know about it. We'll be looking at this from a more rigorous, calculus-based perspective to understand the properties that make these distributions so useful.

Continuous Distributions

When a variable can take any value within a range, like height or temperature, we use a continuous distribution. The core concept here is the Probability Density Function, or PDF, denoted as f(x)f(x). A key point to remember is that for a continuous variable, the probability of it taking on any single, exact value is zero. Think about it: what are the odds of a person being exactly 180.000... cm tall? Infinitesimally small.

Instead, we calculate the probability that a value falls within an interval by integrating the PDF over that interval. The probability that XX falls between aa and bb is:

P(aXb)=abf(x)dxP(a \le X \le b) = \int_{a}^{b} f(x) \,dx

Two of the most important properties of any distribution are its expected value and variance. For a continuous distribution, these are also found using integrals.

E[X]=xf(x)dxVar(X)=(xE[X])2f(x)dx\begin{aligned} \\ E[X] &= \int_{-\infty}^{\infty} x f(x) \,dx \\ \text{Var}(X) &= \int_{-\infty}^{\infty} (x - E[X])^2 f(x) \,dx \\ \end{aligned}

Beyond the Normal distribution, distributions like the Exponential distribution model the time between events in a Poisson process (e.g., time between customer arrivals), while the Gamma distribution can model the time until the kk-th event occurs.

Discrete Distributions

For variables that can only take specific, separate values, like the number of heads in five coin flips, we use discrete distributions. Here, we use a Probability Mass Function (PMF), denoted as p(x)p(x), which gives the probability that the random variable XX is exactly equal to some value xx.

Unlike with continuous variables, for discrete variables, P(X=x)P(X=x) can be a non-zero value.

Calculating the expected value and variance for discrete distributions involves summations instead of integrals.

E[X]=ixip(xi)Var(X)=i(xiE[X])2p(xi)\begin{aligned} \\ E[X] &= \sum_{i} x_i p(x_i) \\ \text{Var}(X) &= \sum_{i} (x_i - E[X])^2 p(x_i) \\ \end{aligned}

Beyond the Binomial distribution, the Poisson distribution is excellent for modeling the number of events occurring in a fixed interval of time or space (e.g., number of emails received per hour). The Geometric distribution models the number of trials needed to get the first success.

Working with Multiple Variables

Real-world problems rarely involve just one random variable. More often, we need to understand the relationship between two or more. This is where multivariate distributions come in. The simplest case is the bivariate distribution, which involves two variables, XX and YY.

The joint probability distribution gives the probability of XX and YY taking on specific values simultaneously. For discrete variables, this is written as P(X=x,Y=y)P(X=x, Y=y). The sum of all possible joint probabilities must equal 1.

Y = 0Y = 1Marginal P(X)
X = 00.10.40.5
X = 10.20.30.5
Marginal P(Y)0.30.71.0

From the joint distribution, we can derive marginal distributions, which give the probability distribution of a single variable by itself. This is done by summing (for discrete) or integrating (for continuous) over the other variables. In the table above, the marginal probabilities are the sums of each row and column.

We can also find the conditional distribution, which describes the probability of one variable given that another has a certain value, like P(Y=yX=x)P(Y=y | X=x). This is fundamental to many statistical and machine learning models, as it allows us to update our beliefs about one variable based on information about another.

P(Y=yX=x)=P(X=x,Y=y)P(X=x)P(Y=y | X=x) = \frac{P(X=x, Y=y)}{P(X=x)}

Applications in Machine Learning

Probability distributions are not just theoretical constructs; they are the engine of modern machine learning. In machine learning, we often want to build a model that can predict an outcome (YY) based on some input features (XX). This is inherently a probabilistic task.

For example, in a classification problem (like identifying spam email), we can use Bayes' theorem to calculate the probability that an email is spam given its content. This requires modeling the distribution of words in spam versus non-spam emails. Logistic regression, a foundational classification algorithm, directly models the probability of a binary outcome.

Lesson image

In more advanced models, like generative models, the goal is to learn the entire probability distribution of the data itself. A model that learns the joint distribution of pixels in images of faces, for instance, can then be used to generate brand new, realistic-looking faces. Understanding the mathematical properties of distributions is crucial for designing, training, and troubleshooting these complex systems.

Let's test your understanding of these advanced concepts.

Quiz Questions 1/5

For a continuous random variable X described by a Probability Density Function (PDF), what is the probability of X taking on any single, exact value, such as P(X=c)P(X = c)?

Quiz Questions 2/5

If you have the joint probability distribution of two random variables, X and Y, how do you find the marginal distribution of X?