What the Mean of a Random Variable X Means
The mean of a random variable X, denoted E[X] or μ, is the long-run average value you expect if you could repeat a random experiment infinitely many times. It is a weighted average of all possible values, where each value is weighted by its probability. For a discrete random variable, the mean is the sum of each value multiplied by its probability; for a continuous random variable, it is the integral of the value multiplied by its probability density function. The mean summarizes the central location of the distribution and serves as a foundational quantity for expectation-based analysis in probability and statistics.
Definition and Core Formula
Formally, the expected value or mean of a random variable X is defined as the sum (or integral) of outcomes weighted by their probabilities or density. For a discrete random variable, E[X] = Σ x·P(X = x), where the sum is over all possible values x. For a continuous random variable, E[X] = ∫ x·f(x)dx, where f(x) is the probability density function. This definition applies to any random variable with a well-defined first moment, providing a single number that represents the center of the distribution under repeated sampling.
Discrete Case
In the discrete case, you multiply each outcome by the probability that the random variable equals that outcome, then add across all outcomes. This yields a finite or countably infinite sum that converges when probabilities are properly defined. The result is a measure of centrality that aligns with the intuitive average if the experiment were repeated many times and the average of observed values computed.
Continuous Case
For continuous random variables, the sum becomes an integral over the real line, weighted by the probability density function. The mean is the balance point of the distribution, analogous to the centroid of a physical object with variable density. Even when the probability of any single exact value is zero, the mean remains a meaningful summary of where the bulk of probability mass tends to lie.
Key Properties of the Mean
The mean of a random variable has several important properties that make it a cornerstone of probabilistic reasoning. It is a linear operator, meaning E[aX + bY] = aE[X] + bE[Y] for constants a and b and random variables X and Y, provided the expectations exist. The mean is not generally equal to any particular observed value; it is a population-level summary. It is sensitive to extreme values, especially in distributions with heavy tails, and it may not equal the median or mode. For functions of random variables, you can often compute the expected value using linearity, transformations, or specialized techniques such as the law of the unconscious statistician.
Computing the Mean for Common Distributions
For well-known distributions, the mean has a simple closed form that depends on the distribution’s parameters. Examples include the mean of the binomial, Poisson, normal, exponential, and uniform distributions. Knowing these forms allows you to quickly summarize data-generating processes and to set expectations before collecting data. Below is a compact reference table showing selected distributions, their mean formulas, and parameter interpretations.
| Distribution | Mean (Expected Value) | Parameter Notes |
|---|---|---|
| Bernoulli(p) | p | Single trial success probability |
| Binomial(n, p) | np | Number of trials times success probability |
| Poisson(λ) | λ | Event rate in a fixed interval |
| Normal(μ, σ²) | μ | Location parameter is the mean |
| Exponential(λ) | 1/λ | Rate parameter inverse gives mean |
| Uniform(a, b) | (a + b)/2 | Midpoint of the interval |
Relationship to Other Summaries
The mean describes central tendency but should be considered alongside variance, skewness, and quantiles to understand the full shape of a distribution. In symmetric distributions, the mean often coincides with the median; in skewed distributions, they can differ substantially. The mean is also used to define other quantities such as variance, covariance, and regression coefficients, highlighting its role as a building block in statistical theory and modeling.
Practical Interpretation and Law of Large Numbers
Interpreting the mean becomes intuitive through the law of large numbers: as the number of independent, identical observations grows, the sample average converges to the expected value. For example, the mean of a fair six-sided die roll is 3.5, even though no single roll yields 3.5; over many rolls, the observed average will approach this value. This bridges theoretical expectation with empirical measurement, supporting decision-making under uncertainty.
Mean Versus Median and Mode
- Mean: The arithmetic average, influenced by all values and by outliers.
- Median: The middle value when data are ordered, robust to extreme values.
- Mode: The most frequently occurring value, useful for categorical or discrete data.
Choosing which summary to report depends on the distribution shape, the presence of outliers, and the context. The mean is particularly useful when combining random variables or when modeling with linear expectations, whereas the median may better represent typical experience in skewed data.