A service request might need , or hours of work, and staffing has to be planned before the request arrives. The most likely workload is one possible summary, but it ignores how large the other possibilities are. Expected value combines every possible value with its probability into a single weighted average. This lesson defines it, separates it from the mode and from any single outcome, and shows that a valid distribution with infinitely many values need not have a finite mean.
Key terms
Expected value
Definition Let be a discrete random variable with support and PMF . When is finite, the expected value of is the probability-weighted average of its support values,
Each value appears once, weighted by its own probability. When is countably infinite, the same series defines as a finite number provided , as explained under absolute integrability below. The expected value is also called the mean and is often written . It carries the units of , and for finite support it lies between the smallest and the largest support value.
In plain words Multiply each possible value by its probability and add the products. Values with more probability get more weight. An ordinary average of the listed values gives each of them equal weight, which is the right weighting for a uniform distribution on those values but not in general.
Example In a constructed model, the number of hours needed by one service request is , or , with probabilities , and .
| Hours | |||
|---|---|---|---|
| Probability | |||
| Contribution |
Adding the contributions gives hours. The same number appears if ten equally likely slots hold five zeros, three twos and two fives, since their ordinary average is . The unweighted average answers a different question, because the three values are not equally likely. No single request takes hours in this model, so the mean describes the distribution as a whole, not the workload of any individual request.
Mode
Definition A mode of a discrete random variable is a value with the largest probability mass, that is, for every real number . A distribution can have more than one mode. The mode and the mean are different summaries and need not agree.
In plain words The mode is the most likely value, or one of the most likely values when there is a tie. It ignores how far the other values lie from it, while the mean weighs both their sizes and their probabilities.
Example For the service request, the value has the largest probability, , so hours is the only mode, while the mean is hours. The two-hour and five-hour requests do not change the mode, but they pull the mean above . If two values shared the largest probability, both would be modes.
Conditional mean
Definition Let be an event with . The conditional PMF of given is , and the conditional mean of given is
with the sum over the support of , provided , which always holds when the support is finite. When is the event for a set of values, the conditional masses are for in and for every other .
In plain words When the new information is a statement about itself, it can rule out some values. Keep the values that are still possible, divide their masses by the probability that remains so that they add to again, and average with these new weights.
Example Suppose we learn that the request needs some work, the event , which has probability . The conditional masses are at hours and at hours. The contributions are and , so
It is twice the unconditional mean , which is no contradiction, since it averages over a different group of requests. As a check, half of the probability sits on requests with conditional mean hours and the other half on requests needing hours, and .
Net gain
Definition When a payoff is received and a fixed cost is paid in every outcome, the net gain is the random variable , in the same units as . If is finite, then
because subtracting from every value lowers the weighted sum by times the total weight, which is .
In plain words Decide what is being averaged before averaging. A gross prize and the result after paying to play are different random variables, and only the second says whether you end up ahead. An expected net gain can be negative, zero or positive.
Example A constructed training game awards tokens with probability and nothing otherwise, and entry costs token. The net gain is tokens with probability and token with probability , so
The expected gross award is tokens, and agrees. Averaging the award alone would report and forget the fee. The expected net gain is positive, yet the most likely result, with probability , is a loss of token.
Infinite expectation
Definition Let be a discrete random variable whose support contains no negative values. Every term of is nonnegative, so the series either converges to a finite number or diverges to . In the second case we write and say that has infinite expectation. This can happen only when the support is infinite.
In plain words A valid probability distribution need not have a finite mean. If large values keep enough probability, the contributions add up without bound, even though every single value is a finite number.
Example Let take the values with
Since , the first masses add to , which tends to , so this is a valid PMF. Its expectation is
the harmonic series without its first term. The tail probabilities shrink, but too slowly for a finite mean.
Absolute integrability
Definition A discrete random variable is absolutely integrable if
Then the series for converges absolutely, every ordering of its terms gives the same sum, and is a finite number equal to , where and . If exactly one of and is infinite, then is when is the infinite one and when is. If both are infinite, is undefined. Every variable with finite support is absolutely integrable.
In plain words Before adding signed contributions, check that their sizes alone add to a finite total. When they do, gains and losses can be added in any order. When the positive and the negative contributions both add to infinity, pairing them off to get a number is not legitimate, since different orders or groupings of the terms give different answers.
Example Let take the values and , each with probability , for . The masses add to and the distribution is symmetric about . Yet
and for the same reason, so is undefined. Symmetry alone does not give a mean of . Adding the terms of with the values taken in the order gives partial sums that tend to , while taking two positive terms for each negative one gives partial sums that tend to .
Check yourself
- A constructed task lasts , or hours with probabilities , and . Find its expected duration and its mode. Can a single task last exactly the expected duration?
Show the answer
The contributions are , and , so the expected duration is hours. As a check, it lies between and . The mode is hours, the value with the largest probability.
In this model every task lasts , or hours, so no single task lasts hours. The mean describes the distribution, not an individual task.
- For the same task, a student computes the mean duration of tasks longer than hour as hours. What went wrong, and what is the correct conditional mean?
Show the answer
The event has probability , and the student used the original masses without dividing by it. Those masses add to , not , so they are not a distribution. The conditional masses are at hours and at hours. The contributions are and , so
It is larger than the unconditional mean because the shortest duration has been ruled out.
- Let take the values with , and let . Someone groups the terms of in pairs and concludes that . Is that right?
Show the answer
No. The PMF of is valid, since , and the value of has probability . The terms of the series are therefore , that is, . Grouping them as gives , but grouping them as gives , and the partial sums themselves alternate between and without settling.
Each positive value , for even , contributes to , so . In the same way each negative value , for odd , contributes to , so . Both parts are infinite, so is not absolutely integrable and is undefined.