Probability Distributions and Limit Theorems


Probability Distributions and Limit Theorems

Corey
Today we’re building a toolkit for probability: distributions, moment-generating functions, and two major results about what happens when we have many independent observations—the law of large numbers and the central limit theorem. Let’s begin with the basic notation. We’ll call a discrete random variable X and a continuous one Y, just to keep them distinct.

Michael
For a discrete variable, its probability mass function, or PMF, assigns probabilities to possible values. Those probabilities are nonnegative and add up to one. For a continuous variable, its probability density function, or PDF, is nonnegative and integrates to one over its domain.

Corey
For example, if X takes the values negative one, zero, and one, each with probability one third, then its PMF is one third at each of those three values. A continuous example is a uniform random variable on the interval from zero to one: its density is one throughout that interval, and the area under the density is one.

Michael
Those functions also let us calculate event probabilities. For a discrete variable, we add the probabilities of the values in the event. For a continuous variable, we integrate the density over the event. The same distinction appears in the expectation, or mean: sum value times probability in the discrete case, and integrate value times density in the continuous case.

Corey
Independence is another foundation. Two random variables are independent if, for every pair of events involving them, the probability that both events occur is the product of their individual probabilities. For several variables, it’s important to distinguish pairwise independence from mutual independence.

Michael
Pairwise independence means every pair is independent. Mutual independence is stronger: the independence condition must hold for every collection of the variables together. With three variables, all three pairs could be independent while the three-variable collection is not. In this course, when we simply say several variables are independent, we’ll generally mean mutually independent.

Corey
Now let’s meet a distribution that appears throughout probability: the normal distribution. It has parameters mu and sigma, conventionally its mean and standard deviation, and its density has the familiar bell shape. In the standard normal case, the center is zero, and the curve is symmetric around that center.

Michael
That bell curve is useful, but modeling stock prices highlights why we need to choose a distribution carefully. Suppose we model the absolute daily price change as normal. Then a change of a certain size is treated similarly whether the stock costs ten dollars or fifty dollars, even though the percentage changes are very different.

Corey
A more suitable idea for this kind of model is to make the percentage change normally distributed. That leads to a positive price variable whose logarithm is normal. Such a variable is called log-normal: if X is log-normal, then the natural logarithm of X has a normal distribution.

Michael
The change-of-variable formula gives its density. If the logarithm of X has normal parameters mu and sigma, then for x greater than zero the log-normal density is one over x sigma times the square root of two pi, multiplied by the exponential of negative the squared difference between natural log x and mu, divided by two sigma squared. The factor one over x comes from differentiating the logarithm.

Corey
Here’s a parameter trap worth remembering. In a log-normal distribution, mu and sigma describe the normal distribution of log X. They are not themselves the mean and standard deviation of X. Exponentiating skews the distribution, so you can’t simply treat those parameters as the mean and variance of the original variable.

Michael
Normal and log-normal distributions will be especially important, and we’ll also encounter distributions such as the Poisson and exponential. These examples can be described using a broader structure called the exponential family. In general, a density in that family can be written as h of x times c of theta times the exponential of a sum of parameter-dependent terms multiplied by functions of x.

Corey
The key structural idea is that h and the functions of x depend only on x, while c and the parameter terms depend only on theta. For the log-normal density, theta can be the pair mu and sigma. One possible choice is h of x equals one over x; the terms involving log x and its square go into the functions of x, and the remaining parameter-only factors go into c and the parameter functions.

Michael
That form may look abstract, but it’s useful in statistics. As the lecture points out, when independent observations from an exponential-family distribution are combined, their joint density has a tractable structure. That makes these distributions convenient for statistical analysis.

Corey
Let’s shift from naming distributions to summarizing them. The k-th moment of a random variable is the expectation of X to the k-th power. The first moment is the mean, and higher moments give additional information about the distribution.

Michael
A moment-generating function packages those moments into one function. For a random variable X, it is M sub X of t equals the expectation of e to the t X, for parameter t. When it exists, differentiating it k times and evaluating at zero gives the k-th moment.

Corey
That’s why it’s called moment-generating. When the function exists, its Taylor expansion around zero has the moments as coefficients: the k-th moment is multiplied by t to the k-th power and divided by k factorial. But there’s an important warning: a moment-generating function does not always exist.

Michael
The log-normal distribution is a standard cautionary example. Its exponential moments fail to be finite for positive t, so it does not have a moment-generating function in a neighborhood of zero. This matters because the powerful results about identifying distributions from their moment-generating functions require that the functions actually exist.

Corey
In particular, if two random variables have the same moment-generating function where it exists, then they have the same distribution. But don’t reverse that into the claim that matching every moment always guarantees matching distributions. The gap is that two variables can have the same moments even when their moment-generating functions do not exist.

Michael
Moment-generating functions can also help establish convergence of distributions. If a sequence of random variables has moment-generating functions that converge pointwise to the moment-generating function of another variable, under the theorem’s conditions, the distributions converge in the sense that their cumulative probabilities approach the limiting ones. That tool will be useful for the central limit theorem.

Corey
Now for the law of large numbers. Suppose X one through X n are independent and identically distributed—the shorthand is i.i.d.—with mean mu and variance sigma squared. Take their average, X-bar. The law says that as the sample size grows, the average is likely to be close to mu.

Michael
The basic calculation explains why. By linearity of expectation, the average still has mean mu. Independence makes the variance of the average equal to sigma squared divided by n. As n grows, that variance shrinks, concentrating the average near the mean.

Corey
A simple bound makes that precise. The probability that the average differs from mu by more than epsilon is at most sigma squared divided by n epsilon squared. That bound goes to zero as n grows, so the probability of a deviation larger than any fixed epsilon goes to zero. This version is often called the weak law of large numbers.

Michael
The bound also gives a way to estimate how many observations you might need for a desired accuracy and confidence. But it can be quite loose, so it may suggest a much larger sample size than sharper methods would. The lecture also notes that stronger versions of the law exist and that some assumptions can be weakened.

Corey
The casino example gives the intuition. A casino may have a small advantage on each game, while the results of a few rounds vary a lot. For an individual player, that advantage can be hidden by the variability; across a huge number of plays, the average outcome is much more likely to reflect the casino’s edge.

Michael
Poker offers a different situation because players compete against one another rather than directly against the casino. The casino typically earns money by taking a fee, or rake, from each round. A player who has a real advantage over opponents may come out ahead over many trials if that advantage exceeds the fees, though short-term swings can still be discouraging.

Corey
Now let’s ask a related question: what happens if we center the sum of i.i.d. observations and scale it by the square root of n, instead of looking at the average? If the variables have mean mu and variance sigma squared, define Y n as the sum of X i minus mu, divided by the square root of n.

Michael
The central limit theorem says that, as n grows, the distribution of Y n approaches a normal distribution with mean zero and variance sigma squared. The remarkable point is that the original variables don’t have to be normally distributed. Under the stated i.i.d. and finite-variance conditions, their properly centered and scaled sum approaches a normal shape.

Corey
So the law of large numbers tells us where the sample average settles: near the population mean. The central limit theorem tells us about the shape of its fluctuations around that mean. For the sample average itself, the fluctuations shrink as the sample size grows; after scaling by the square root of n, they have a limiting normal distribution.

Michael
The lecture sketches a proof using moment-generating functions, assuming the relevant function exists. Independence turns the moment-generating function of the sum into a product, and identical distributions make that product an n-th power. Then a Taylor expansion near zero shows that the linear term vanishes after centering, while the quadratic term contributes the variance.

Corey
More specifically, for fixed t, the moment-generating function of Y n has the form of a quantity like one plus t squared sigma squared over two n, with smaller-order terms, raised to the n-th power. As n grows, that approaches the normal moment-generating function, e to the t squared sigma squared over two. The convergence theorem for moment-generating functions then gives convergence of the distributions.

Michael
Finally, consider estimating an unknown mean. We can take independent observations X one through X n and use their average as an estimator. The law of large numbers says this estimator gets close to the true mean with high probability as the sample size increases.

Corey
And the central limit theorem describes the estimator’s distribution around the mean, giving a normal approximation for its errors when the sample is large. The sample average is a natural estimator, though it is not always the best choice for every distribution; other estimators can perform better in some settings.

Michael
So we’ve connected the whole toolkit: probability functions describe discrete and continuous variables; independence lets us analyze collections; moment-generating functions summarize moments when they exist; the law of large numbers explains why averages stabilize; and the central limit theorem explains why scaled fluctuations often look normal.

Ask anything
We've read this whole study set, so questions about it get the best answers.