Random variables and expected value
Anchor (Master): Bernoulli 1713, Chebyshev 1867, Markov 1900, Khinchin 1929
Intuition Beginner
A random variable is a number whose value depends on the outcome of a random process. If you roll a die, the number that comes up is a random variable. If you flip a coin 10 times and count the heads, that count is a random variable. If you measure the height of a randomly chosen person, the measurement is a random variable. The key idea is that a random variable is not a single fixed number but a rule that assigns a number to each possible outcome of an experiment.
Random variables come in two types. A discrete random variable takes a countable set of values, often whole numbers. The number of heads in 10 coin flips can be 0, 1, 2, ..., 10, and nothing else. A continuous random variable can take any value in a range. The height of a randomly chosen person can be any positive real number (within biological limits), not just whole centimetres.
The most important summary of a random variable is its expected value, also called the mean or expectation. The expected value is the long-run average you would get if you repeated the experiment many times. If a fair die is rolled many times, the average of all the rolls will approach 3.5, even though 3.5 is not a possible outcome of any single roll. The expected value is a weighted average of all possible values, where the weights are the probabilities.
For a discrete random variable, the expected value is computed by multiplying each possible value by its probability and adding up the results. If can take values with probabilities , then the expected value . For a fair die, .
The expected value alone does not tell the whole story. Two random variables can have the same expected value but very different behaviour. A die always showing 3 or 4 has the same expected value (3.5) as a fair die, but the two are very different. The variance and standard deviation measure how spread out the values of a random variable are around the mean. A high variance means the values tend to be far from the mean; a low variance means they cluster tightly around it.
The variance of a random variable is defined as . It measures the average squared distance from the mean. The standard deviation is the square root of the variance, bringing the measurement back to the original units. For a fair die, the variance is about 2.92 and the standard deviation is about 1.71.
Expected value has powerful properties that make it easy to work with. If you multiply a random variable by a constant, the expected value is multiplied by the same constant. If you add a constant to a random variable, the expected value increases by that constant. Most importantly, the expected value of a sum of random variables equals the sum of their individual expected values, even when the variables are dependent. This property, called linearity of expectation, is one of the most useful tools in all of probability.
Variance behaves differently. Adding a constant does not change the variance, because the spread of the data is not affected by shifting. Multiplying by a constant multiplies the variance by the square of that constant. And the variance of a sum is not simply the sum of the variances, unless the random variables are uncorrelated. When two variables are positively correlated, their sum has more variance than the sum of their individual variances, because they tend to move in the same direction. When they are negatively correlated, the sum has less variance, because they tend to cancel each other out.
A useful shortcut formula for variance is . This says that the variance equals the average of the squares minus the square of the average. This formula is often easier to compute than the definition because it avoids computing deviations from the mean.
Functions of random variables are also random variables. If is a random variable and is a function, then is also a random variable. For example, if is the temperature in Celsius, then is the temperature in Fahrenheit, and is a random variable whose distribution can be derived from the distribution of . The expected value of can be computed directly from the distribution of using the law of the unconscious statistician: equals the sum of over all possible values , without needing to first derive the distribution of .
Joint distributions describe two or more random variables simultaneously. If you measure both the height and weight of a randomly selected person, you have two random variables with a joint distribution. The marginal distribution of height is obtained by averaging over all possible weights, and vice versa. The conditional distribution of height given a specific weight range describes how heights are distributed among people in that weight range. These concepts of joint, marginal, and conditional distributions are the multivariate generalisations of the single-variable ideas.
Covariance measures how two random variables move together. A positive covariance means that when one variable is above its mean, the other tends to be above its mean too. A negative covariance means they tend to move in opposite directions. A covariance of zero means there is no linear relationship, though there may still be a nonlinear one. Correlation standardises covariance to a scale from -1 to 1, making it easier to interpret and compare across different pairs of variables.
The distinction between a random variable and its distribution is important but often confusing for beginners. A random variable is a function that maps outcomes to numbers. The distribution of a random variable describes how likely different values are. Two different random variables can have the same distribution. For example, the outcome of die A and the outcome of die B are different random variables, but they have the same distribution if both dice are fair.
When people say a variable is "normally distributed with mean 100 and standard deviation 15," they are describing the distribution, not the variable itself. The variable could be IQ scores, exam scores, or any other measurement that happens to follow that particular bell curve. The distribution is a mathematical object that can be shared by many different real-world variables.
The concept of independence extends from events to random variables. Two random variables are independent if knowing the value of one gives you no information about the other. Height and shoe size are not independent: taller people tend to have larger feet. Height and the last digit of a phone number are independent: one tells you nothing about the other. Independence is a strong condition that simplifies many calculations, and much of statistical theory relies on the assumption that observations are independent.
Visual Beginner
The table below shows how expected value and variance are computed for a simple discrete random variable.
| Value | Probability | Product | Squared deviation | Weighted squared dev |
|---|---|---|---|---|
| 1 | 1/6 | 1/6 | 6.25 | 1.042 |
| 2 | 1/6 | 2/6 | 2.25 | 0.375 |
| 3 | 1/6 | 3/6 | 0.25 | 0.042 |
| 4 | 1/6 | 4/6 | 0.25 | 0.042 |
| 5 | 1/6 | 5/6 | 2.25 | 0.375 |
| 6 | 1/6 | 6/6 | 6.25 | 1.042 |
| Total | 1 | 3.5 = E[X] | 2.917 = Var(X) |
The standard deviation is .
The table below compares discrete and continuous random variables.
| Property | Discrete random variable | Continuous random variable |
|---|---|---|
| Possible values | Countable (0, 1, 2, ...) | Any value in a range |
| Described by | PMF: | PDF: |
| Probability of a single value | Can be positive | Always zero |
| Probability of a range | Sum the PMF over the range | Integrate the PDF over the range |
| Expected value | Sum of x times P(X = x) | Integral of x times f(x) dx |
| Example | Number of heads in 10 flips | Height of a random person |
Worked example Beginner
A game costs 2 dollars to play. You roll a fair six-sided die. If you roll a 6, you win 10 dollars. If you roll a 4 or 5, you win 3 dollars. Otherwise, you win nothing. Should you play this game?
Let be the net winnings (payout minus the 2-dollar cost). The possible outcomes are:
- Roll a 6: net winnings = dollars, probability =
- Roll a 4 or 5: net winnings = dollar, probability =
- Roll a 1, 2, or 3: net winnings = dollars, probability =
The expected value of the net winnings:
The expected net winnings are about 67 cents per game. On average, you come out ahead, so this game is favourable to the player. A casino would not offer this game because it loses money in the long run.
The variance measures the risk. Computing the squared deviations from the mean:
The standard deviation is about 3.55 dollars. While the game is favourable on average, individual outcomes vary widely: you could win 8 dollars or lose 2 dollars on any single play. The standard deviation being much larger than the mean tells you that the game is volatile, and short-term results can differ substantially from the long-run average.
A continuous example: the uniform distribution
A bus arrives at a stop every 30 minutes, but you arrive at a random time. Let be your waiting time. is uniformly distributed on the interval minutes.
The expected waiting time is minutes. On average, you wait 15 minutes. The variance is square minutes, giving a standard deviation of minutes.
What is the probability you wait more than 20 minutes? Since is uniform on , the probability is . About one-third of the time you will wait more than 20 minutes.
What about the expected value of ? Using the formula for a uniform distribution on : . We can verify the variance: . Confirmed.
The normal distribution and expected value
If follows a normal distribution with mean and variance , written , then and . The parameters of the normal distribution are directly its mean and variance, which is one reason the normal distribution is so convenient to work with.
If you take a linear transformation where , then . This makes it easy to convert between different units (for example, from Celsius to Fahrenheit) while preserving the normal distribution shape.
For the standard normal , , , and all odd moments are zero by symmetry. The even moments follow the pattern . For example, , , . These moments determine the shape of the normal distribution through its moment-generating function .
Check your understanding Beginner
Formal definition Intermediate+
Random variables and distribution functions
A random variable is a measurable function defined on a probability space . Measurability means that for every Borel set , the set belongs to , ensuring that is well-defined.
The cumulative distribution function (CDF) of is . Every CDF satisfies three properties: (1) , (2) , (3) is non-decreasing and right-continuous. The CDF completely determines the distribution of .
For a discrete random variable with PMF , the CDF is a step function: . For a continuous random variable with PDF , the CDF is , and wherever the derivative exists.
Expected value
For a discrete random variable with PMF , the expected value (or mean, or expectation) is , provided the sum converges absolutely (that is, ). Absolute convergence ensures that the value of the expectation does not depend on the order of summation.
For a continuous random variable with PDF , the expected value is , again requiring absolute convergence.
More generally, for any measurable function , the law of the unconscious statistician states that (discrete) or (continuous), without needing to derive the distribution of first.
Properties of expectation
- Linearity: for constants and any random variables (no independence required).
- Non-negativity: If almost surely, then .
- Monotonicity: If almost surely, then .
- Constants: for any constant .
- Product of independent variables: If and are independent, then .
Variance and standard deviation
The variance of a random variable is where . The computational formula is often more convenient because it avoids computing deviations from the mean.
Properties of variance:
- for any constant .
- for constants .
- For independent : .
- always, with equality if and only if is a constant.
The standard deviation is . It has the same units as , making it more interpretable than the variance.
Joint distributions and covariance
Two random variables and defined on the same probability space have a joint distribution described by the joint CDF . For discrete random variables, the joint PMF is . For continuous random variables, the joint PDF satisfies .
The marginal distributions are obtained by summing or integrating over the other variable: or .
The covariance of and is . Covariance measures the linear relationship between two random variables. Positive covariance means and tend to be above or below their means together; negative covariance means one tends to be above when the other is below.
The correlation coefficient standardises covariance to the range : . A correlation of 1 indicates perfect positive linear relationship, -1 indicates perfect negative linear relationship, and 0 indicates no linear relationship.
Conditional distributions
The conditional PMF of given is , provided . For continuous random variables, the conditional PDF is .
The conditional expectation is the expected value of computed using the conditional distribution of given . The tower property (law of iterated expectations) states that , which is one of the most useful tools in probability and statistics.
Indicator random variables
An indicator random variable takes the value 1 if event occurs and 0 otherwise. Its expectation is . Indicator variables are extremely useful for decomposing complex counting problems. For example, if counts the number of matches when items are randomly permuted, then where indicates whether item is in position . By linearity, , regardless of the dependence between the indicators.
This technique is called the indicator method and is one of the most powerful tools in combinatorial probability. It works because linearity of expectation does not require independence. Even when the events are highly dependent (matching item affects the probabilities of matching other items), the expected value of the sum is the sum of the expected values.
Independent random variables
Random variables and are independent if their joint CDF factors: for all . Equivalently, their joint PMF or PDF factors into the product of marginals. Independence implies that and , but the converse does not hold: uncorrelated random variables need not be independent.
For independent random variables, the variance of the sum is the sum of the variances: . This is the basis for the formula for the variance of the sample mean of i.i.d. observations, which underpins all of statistical inference.
Moment-generating functions
The moment-generating function (MGF) of is , defined for values of in a neighbourhood of 0 where the expectation exists. The MGF has several important properties:
- always.
- (the -th derivative at 0 gives the -th moment).
- .
- If and are independent, .
- Uniqueness theorem: if for all in a neighbourhood of 0, then and have the same distribution.
Key theorem with proof Intermediate+
Theorem: Chebyshev's inequality
For any random variable with finite mean and finite variance , and any :
Equivalently, .
Proof. Let . Then:
On the set , , so:
Rearranging gives .
Chebyshev's inequality is remarkable because it applies to any distribution with finite variance. It requires no assumption of normality, symmetry, or any other property. The trade-off is that it is often quite loose. For example, Chebyshev guarantees that , while for the normal distribution the actual probability is about 0.003. The strength of Chebyshev lies in its universality, not its precision.
Theorem: Linearity of expectation for sums
If are random variables (not necessarily independent) with finite expectations, then .
Proof. For two random variables, . The general case follows by induction.
This result is deceptively powerful. Because linearity holds without independence, it applies to complicated dependent situations. For example, if is the number of matches when letters are randomly placed into envelopes, then where indicates whether letter went into envelope . Even though the are dependent, .
Exercises Intermediate+
Advanced results Master
Convergence of random variables
There are several modes of convergence for sequences of random variables, each with different strengths:
- Almost sure convergence ( a.s.): . This is the strongest mode, corresponding to pointwise convergence of functions.
- Convergence in probability (): for every , . Weaker than almost sure convergence.
- Convergence in distribution (): for all where is continuous. The weakest mode; depends only on distributions, not on the underlying probability space.
- Convergence in (): . For , this is convergence in mean square.
The relationships are: almost sure convergence implies convergence in probability, which implies convergence in distribution. convergence implies convergence in probability (by Markov's inequality). None of the reverse implications hold in general.
The moment problem
The moment-generating function uniquely determines the distribution (when it exists in a neighbourhood of 0), but what if only the sequence of moments is known? The Hamburger moment problem asks: does a given sequence of numbers correspond to the moments of some probability distribution, and if so, is that distribution unique?
Carleman's condition (1922) provides a sufficient condition for uniqueness: if , then the distribution is uniquely determined by its moments. For distributions supported on a bounded interval, the moment problem always has a unique solution. The lognormal distribution provides a classic counterexample where the moment problem has multiple solutions, meaning two distinct distributions share the same moment sequence.
Multivariate distributions and transformation theory
When and have joint density and , for a one-to-one transformation, the joint density of is obtained by where is the Jacobian determinant of the inverse transformation. This extends the change-of-variables formula from calculus to the probabilistic setting.
Important applications include: the Box-Muller transformation (converting uniform random variables to normal), the polar transformation (connecting Cartesian and polar coordinates in the plane), and the probability integral transform (converting any continuous random variable to a uniform by applying its own CDF). The probability integral transform has the remarkable property that if has continuous CDF , then . This fact is the basis for inverse transform sampling, a universal method for generating random variates from any distribution.
Sums of random variables and convolution
The distribution of the sum of independent random variables is given by the convolution of their distributions. For discrete variables: . For continuous variables: .
Key examples include: the sum of independent Poisson random variables is Poisson (with rate equal to the sum of rates), the sum of independent normal random variables is normal (with mean and variance equal to the sums), and the sum of independent exponential random variables with the same rate is gamma. These closure properties under convolution are essential for statistical inference.
The moment-generating function simplifies these computations: . The product of MGFs corresponds to convolution of distributions, just as the product of characteristic functions does. This algebraic approach avoids the often messy direct computation of convolutions.
Generating functions in combinatorics and probability
Beyond moment-generating functions, several other generating functions play important roles. The probability-generating function (PGF) of a non-negative integer-valued random variable is . The PGF encodes the entire distribution as a power series, and its derivatives at give the factorial moments: .
The PGF is particularly useful for analysing branching processes (Galton-Watson process), where each individual produces a random number of offspring. The PGF of the population size at generation is the -fold composition of the offspring PGF, and the extinction probability is the smallest non-negative root of .
The characteristic function always exists (unlike the MGF) and uniquely determines the distribution. The Levy inversion formula recovers the CDF from the characteristic function. Characteristic functions are the primary tool for proving the central limit theorem and its generalisations.
Quantile functions and simulation
The quantile function is the generalised inverse of the CDF. For continuous strictly increasing CDFs, it is simply the inverse function. The quantile function provides another complete characterisation of the distribution.
Quantile functions are essential for simulation. The inverse transform method generates a random variable with CDF by generating and setting . This method works for any distribution and is the foundation of random variate generation in statistical computing. More efficient methods (rejection sampling, the Box-Muller transform for normals) build on this basic idea.
Order statistics
If are i.i.d. random variables, the order statistics are the sorted values. The sample minimum , the sample maximum , and the sample median (approximately ) are all order statistics.
The distribution of the -th order statistic from a sample of size from a continuous distribution with CDF and PDF is:
The expected value of the -th order statistic from a standard normal sample is used to construct normal probability plots and to estimate population quantiles. The range and the interquartile range are measures of spread based on order statistics that are more robust than the variance.
Connections Master
To probability theory (Unit 26.02.01)
This unit extends the probability framework of Unit 26.02.01 by introducing random variables as the primary objects of study. While Unit 26.02.01 defined probability on events, this unit focuses on numerical functions of those events. The distributions introduced in the previous unit (binomial, Poisson, normal, exponential) are now characterised through their moments, CDFs, and MGFs, providing a richer toolkit for analysis.
To sampling distributions (Unit 26.04.01)
The expected value and variance of a single random variable generalise naturally to the sample mean. If are i.i.d. with mean and variance , then the sample mean has and . The standard deviation of , called the standard error, decreases as , quantifying the precision gained by collecting more data. The central limit theorem then shows that is approximately normal for large , regardless of the original distribution.
To hypothesis testing (Unit 26.05.01)
Every test statistic is a random variable, and its distribution under the null hypothesis determines the p-value. The expected value of the test statistic under the null tells you what to expect by chance. The variance tells you how much the statistic varies. Together, these determine the critical values and the power of the test. Understanding the mean and variance of common test statistics (z-statistic, t-statistic, chi-square statistic, F-statistic) is essential for interpreting hypothesis tests.
To regression (Unit 26.06.01)
Regression analysis models the conditional expectation as a function of . The slope and intercept in simple linear regression are derived from the covariance of and and the variance of . The coefficient of determination equals the square of the correlation coefficient. Understanding covariance and correlation as defined here is a prerequisite for understanding regression.
To Bayesian statistics (Unit 26.07.01)
In Bayesian statistics, parameters are random variables with their own distributions (prior and posterior). The expected value of the posterior distribution serves as a point estimate (the posterior mean). The variance of the posterior quantifies uncertainty about the parameter. Conditional distributions and conditional expectations, introduced here, are the mathematical language of Bayesian updating.
To physics and engineering
Expected value and variance pervade physics and engineering. In statistical mechanics, the expected value of energy is the thermodynamic internal energy. In signal processing, the expected value of a signal is its DC component, and the variance is the AC power. In control theory, the expected value of the squared error quantifies the performance of a controller. In communications, the signal-to-noise ratio (SNR) is the ratio of the square of the expected signal to the variance of the noise.
To experimental design (Unit 26.09.01)
Experimental design uses expected values and variances to determine sample sizes, allocate treatments, and estimate effects. The expected value of an estimator measures its accuracy (is it centred on the true value?), while its variance measures its precision (how tightly clustered are the estimates?). Power analysis, which determines the sample size needed to detect an effect of a given size, is entirely based on the expected values and variances of test statistics under the null and alternative hypotheses.
To statistical literacy (Unit 26.10.01)
Understanding expected value is crucial for interpreting probabilistic claims in everyday life. When a news article reports that a medical treatment "reduces risk by 30 percent," this is a statement about relative risk reduction, which depends on the baseline expected value. When an investment advertisement claims an "average return of 8 percent," the expected return tells you nothing about the variance (risk). Financial literacy requires understanding both the expected return and the standard deviation of returns.
To computer science and algorithms
Expected value plays a central role in algorithm analysis. The expected running time of randomised algorithms (like QuickSort with random pivots) is an expected value over the random choices made by the algorithm. Hash table performance is analysed through the expected number of collisions, which depends on the expected value of the load factor. Probabilistic data structures (Bloom filters, count-min sketch) trade a small probability of error for dramatic space savings, and their performance is characterised by expected values and tail bounds.
To decision theory and risk analysis
Expected value is the foundation of decision theory under uncertainty. The expected value of perfect information (EVPI) measures the maximum amount a rational decision-maker should pay for additional information before making a decision. In portfolio theory, the expected return of a portfolio is a weighted average of individual asset returns, while portfolio variance depends on the covariance structure of asset returns. Insurance pricing, option pricing via the risk-neutral measure, and cost-benefit analysis of public policies all rely on computing expected values under different probability distributions and comparing the results to determine optimal actions.
Historical and philosophical context Master
The origins of expected value
The concept of expected value emerged from gambling in the seventeenth century, closely intertwined with the birth of probability theory itself. The problem of points (how to divide stakes in an interrupted game) led Pascal and Fermat to compute weighted averages of outcomes. Huygens, in his 1657 De Ratiociniis in Ludo Aleae, gave the first systematic treatment of expected value, defining it as the fair price for a game of chance.
The St. Petersburg paradox, proposed by Nicolaus Bernoulli in 1713 and published by Daniel Bernoulli in 1738, challenged the adequacy of expected value as a guide to rational decision-making. The game: flip a fair coin until it lands heads; if this takes flips, the payoff is dollars. The expected payoff is . No rational person would pay an infinite amount to play, yet the expected value is infinite. Daniel Bernoulli resolved this by introducing the concept of expected utility: the value of money is not linear, and rational agents maximise expected utility (the logarithm of wealth, in Bernoulli's formulation) rather than expected monetary value.
Chebyshev, Markov, and the inequality tradition
Pafnuty Chebyshev (1821-1894) and his student Andrey Markov (1856-1922) developed the inequality-based approach to probability that dominated Russian mathematics. Chebyshev's 1867 paper introduced the inequality that bears his name as a tool for proving limit theorems without requiring specific distributional assumptions. Markov extended this work to dependent random variables (Markov chains) and proved the law of large numbers under weaker conditions than Chebyshev required.
The Chebyshev-Markov approach is notable for its generality. Rather than assuming a specific distribution and computing exact probabilities, they derived bounds that apply universally. This philosophy of proving results under minimal assumptions influenced the development of modern probability theory and is reflected in the axiomatic framework Kolmogorov later established.
The law of large numbers
Jacob Bernoulli proved the first version of the law of large numbers in Ars Conjectandi (1713): for binomial trials, the relative frequency of successes converges to the true probability as the number of trials increases. Bernoulli was disappointed that his proof required an enormous number of trials to achieve even moderate precision, and he spent years trying to sharpen his bounds.
The strong law of large numbers, proved by Borel (1909) for Bernoulli trials and by Kolmogorov (1933) in full generality, states that the sample mean converges to the population mean with probability 1, not merely in probability. The distinction between the weak law (convergence in probability) and the strong law (almost sure convergence) is subtle but important: the strong law guarantees that for almost every infinite sequence of outcomes, the sample mean converges, while the weak law merely guarantees that the probability of a large deviation tends to zero.
Khinchin and the law of large numbers for i.i.d. variables
Aleksandr Khinchin (1929) proved the weak law of large numbers for independent and identically distributed random variables under the minimal assumption that the expected value exists. Khinchin's proof showed that convergence in probability of the sample mean to the population mean holds for any distribution with finite mean, no matter how heavy the tails. This result completed the programme begun by Bernoulli and Chebyshev, establishing the law of large numbers as one of the most general results in probability theory.
The law of large numbers provides the philosophical justification for using sample means to estimate population means. Every point estimator in statistics relies on some form of this law: the sample proportion estimates the population proportion, the sample mean estimates the population mean, and the sample variance estimates the population variance. The law of large numbers guarantees that these estimators converge to their targets as the sample size increases.
The central limit theorem connection
While the law of large numbers tells us that the sample mean converges to the population mean, it says nothing about the rate of convergence or the shape of the distribution of the sample mean. The central limit theorem (Unit 26.04.01) fills this gap: it shows that the standardised sample mean converges in distribution to a standard normal, and the rate of convergence is . Together, the law of large numbers and the central limit theorem provide a complete picture of the behaviour of sample means.
Moment-generating functions and Laplace transforms
The moment-generating function is a probabilistic variant of the Laplace transform, which Laplace introduced in his work on probability in the early nineteenth century. The Laplace transform converts convolution (a difficult operation) into multiplication (a simple one), and the MGF inherits this property. The uniqueness theorem for MGFs, proved in its modern form by Curtis (1963) in the context of probability measures, ensures that the MGF fully characterises the distribution when it exists in a neighbourhood of zero.
The development of correlation and regression
Francis Galton's work on regression toward the mean (1886) introduced the concept of correlation as a measure of the linear relationship between two variables. Karl Pearson (1896) developed the product-moment correlation coefficient that bears his name, recognising it as a standardised covariance. The formal definitions of covariance and correlation given in this unit emerged from Galton and Pearson's empirical work on heredity and biometrics.
Galton's insight was that the expected value of a child's height, given the parents' heights, is pulled toward the population mean. This "regression toward the mean" is a consequence of the conditional expectation being less extreme than the conditioning variable, and it occurs whenever the correlation between two variables is less than 1. The phenomenon is now recognised as a general property of bivariate distributions, not a biological force, but the term "regression" has stuck as the name for the entire field of modelling conditional expectations.
Modern developments: high-dimensional probability
Contemporary probability theory has expanded to handle the high-dimensional random vectors that arise in modern statistics, machine learning, and data science. Concentration inequalities (Hoeffding, McDiarmid, Bernstein) provide sharp bounds on the probability that a function of many random variables deviates from its mean. The Johnson-Lindenstrauss lemma (1984) shows that random projections approximately preserve distances in high dimensions, providing the theoretical foundation for dimension reduction techniques like random projections and compressed sensing.
Stein's method and distributional approximation
Stein's method (1972) provides a powerful framework for bounding the distance between two probability distributions without using characteristic functions. The key idea is that a random variable has the standard normal distribution if and only if for all sufficiently smooth functions . To show that a random variable is approximately normal, one bounds using the specific structure of .
Stein's method has several advantages over classical approaches: it gives explicit bounds on the approximation error, it handles dependent random variables naturally, and it extends to non-normal target distributions (Poisson, exponential, gamma). It has become the method of choice for proving central limit theorems for complex dependent structures in random graph theory, spatial statistics, and combinatorial probability.
The theory of martingales and conditional expectation
A martingale is a sequence of random variables where . Intuitively, a martingale represents a fair game: the expected future value, given all past information, equals the current value. Martingale theory, developed by Doob (1953), provides powerful tools including the optional stopping theorem, the martingale convergence theorem, and Azuma-Hoeffding concentration inequalities for bounded-difference martingales.
Conditional expectation is defined as the best predictor of given the information in the sigma-algebra . The tower property and the taking-out-what-is-known property are the computational rules that make conditional expectation so useful. These properties generalise the law of total expectation from partitions to continuous conditioning variables.
Bibliography Master
Bernoulli, J. Ars Conjectandi. 1713. The first proof of the law of large numbers and foundational work on combinatorial probability and expected value.
Chebyshev, P.L. "Des valeurs moyennes." Journal de Mathematiques Pures et Appliquees, 12, 1867, pp. 177-184. The original paper introducing Chebyshev's inequality and its application to limit theorems.
Markov, A.A. "The Law of Large Numbers and the Method of Least Squares." Izvestiya Fiziko-Matematicheskogo Obshchestva pri Kazanskom Universitete, 1899. Extended Chebyshev's work on the law of large numbers to dependent variables.
Casella, G. and Berger, R.L. Statistical Inference (2nd ed.). Duxbury, 2002. Chapter 2 provides a thorough treatment of random variables, expectation, and transformations.
Ross, S.M. A First Course in Probability (9th ed.). Pearson, 2014. Chapters 4-5 cover random variables, expectation, and variance with extensive examples.
Billingsley, P. Probability and Measure (3rd ed.). Wiley, 1995. A rigorous treatment of expectation as Lebesgue integral and the convergence of random variables.
Durrett, R. Probability: Theory and Examples (5th ed.). Cambridge University Press, 2019. Chapters 1-2 cover the measure-theoretic foundations of random variables and expectation.
Feller, W. An Introduction to Probability Theory and Its Applications, Vol. 2 (2nd ed.). Wiley, 1971. Chapter 1 covers random variables and expectation at an advanced level.
Huygens, C. De Ratiociniis in Ludo Aleae. 1657. The first systematic treatment of expected value, published as an appendix to van Schooten's Exercitationum Mathematicarum.
Bernoulli, D. "Specimen Theoriae Novae de Mensura Sortis." Commentarii Academiae Scientiarum Imperialis Petropolitanae, 5, 1738, pp. 175-192. The St. Petersburg paradox and the introduction of expected utility.
Stigler, S.M. The History of Statistics. Harvard University Press, 1986. Chapters 2-3 cover the development of expectation and the law of large numbers.
Vershynin, R. High-Dimensional Probability: An Introduction with Applications in Data Science. Cambridge University Press, 2018. A modern treatment of concentration inequalities and their applications in statistics and machine learning.
Doob, J.L. Stochastic Processes. Wiley, 1953. The foundational text on martingale theory and conditional expectation.
Stein, C. "A Bound for the Error in the Normal Approximation to the Distribution of a Sum of Dependent Random Variables." Proceedings of the Sixth Berkeley Symposium on Mathematical Statistics and Probability, 2, 1972, pp. 583-602. The original paper introducing Stein's method.
Wasserman, L. All of Statistics: A Concise Course in Statistical Inference. Springer, 2004. A compact treatment of random variables, expectation, and their role in statistical inference.
Hald, A. A History of Parametric Statistical Inference from Bernoulli to Fisher, 1713-1935. Springer, 2007. Traces the historical development of expectation, variance, and distributional theory from Bernoulli through Fisher.
Wasserman, L. All of Nonparametric Statistics. Springer, 2006. Chapter 2 covers order statistics and their distributions, building on the material in this unit.
Grimmett, G. and Stirzaker, D. Probability and Random Processes (4th ed.). Oxford University Press, 2020. A comprehensive reference covering random variables, expectation, generating functions, and convergence at the intermediate-to-advanced level.