In probability theory and statistics, the mathematical expectation (often simply called the expected value) of a random variable is a key concept used to describe the "average" or "central" value of the variable. It provides a way to quantify the center of the distribution of the random variable, representing the long-term average value one would expect if the experiment or random process were repeated many times.
The expected value of a random variable is defined as the weighted average of all possible values that the random variable can take, with the weights being the probabilities associated with each value. It is sometimes called the "mean" of the random variable.
For a discrete random variable with possible values , and corresponding probabilities , the expected value is given by:
In words, the expected value is the sum of the possible values weighted by their respective probabilities .
Suppose you roll a fair six-sided die, and let be the outcome of the roll. The possible values of are 1, 2, 3, 4, 5, and 6, each with a probability of . The expected value of is:
So, the expected value of rolling a fair die is 3.5.
For a continuous random variable with a probability density function (PDF) , the expected value is defined as:
In this case, the expected value is the integral of the product of the random variable and its probability density function over all possible values of .
Consider a uniform distribution where a random variable is uniformly distributed between 0 and 1. The probability density function is:
The expected value of is:
The integral of from 0 to 1 is:
So, the expected value of a uniformly distributed random variable between 0 and 1 is 0.5.
The expected value has several important properties that make it useful in various applications. Some key properties include:
The expected value operator is linear. This means that for any two random variables and , and any constants and , the following holds:
This property allows you to compute the expected value of linear combinations of random variables by simply taking the linear combination of their expected values.
Let and be two random variables with and , and let and . Then:
If is a constant (a fixed number), then:
This means that the expected value of a constant is simply the constant itself.
If is a function of the random variable , then the expected value of is given by:
For a discrete random variable :
For a continuous random variable :
This property is useful when dealing with transformations of random variables, such as squaring the variable or applying other functions.
If is a random variable with , and we want to find the expected value of (i.e., ), we use:
or, for continuous variables:
The variance of a random variable , denoted , measures the spread of the random variable around its expected value. The variance is defined as:
Alternatively, you can compute the variance as:
The standard deviation is the square root of the variance:
Variance and standard deviation are key measures of variability or uncertainty in the values of a random variable.
The expected value provides a summary measure of the distribution of a random variable, representing the "center" of the distribution. In the long run, if an experiment or random process is repeated many times, the average outcome will converge to the expected value. However, it's important to note that the expected value is not necessarily a value that the random variable will take on any given trial—it is a theoretical long-term average.
Imagine a simple gambling game where you bet 2 (your 1 profit), and if you lose, you lose your 1 bet. Let $$ X $$ represent the profit from the game (which can be 1 for a win and -$1 for a loss). The probability of winning and losing is both .
The expected value of your profit is:
Thus, the expected value of this game is $0, meaning, on average, you break even over many plays. This doesn't mean you will always break even on each individual flip, but over many flips, the average outcome will tend to zero.
The expected value is a fundamental concept in probability and statistics. It represents the "average" or "mean" of a random variable and is central to understanding the behavior of random processes. It is useful for making decisions, predicting future outcomes, and analyzing distributions. Understanding how to calculate and interpret expected values is crucial for working with random variables and probability distributions in both theoretical and applied contexts.
Open this section to load past papers