Expected Value and Variance of Discrete Distributions

1

Expected Value and Variance of Discrete Distributions

When working with discrete random variables, two of the most fundamental and powerful descriptive measures are the expected value and the variance. Together, they summarize the entire behavior of a probability distribution in just two numbers: one describing where outcomes tend to center, and one describing how spread out those outcomes are. Understanding how to calculate and interpret these measures is essential for making sense of uncertainty in any quantitative field, from finance and healthcare to engineering and public policy.

A discrete random variable is one that can take on a countable set of distinct values, each with an associated probability. Before computing expected value or variance, it is always necessary to verify that the probability distribution is valid — meaning every probability is between 0 and 1, and all probabilities sum exactly to 1.

Definition of Expected Value

The expected value of a discrete random variable, denoted E(X) or μ (mu), is the weighted average of all possible outcomes, where each outcome is weighted by its probability of occurring. Formally, the formula is:

E(X) = Σ [x · P(x)]

This means: for every possible value x that the random variable can take, multiply that value by its probability P(x), then sum all of those products. The result is a single number that acts as the center of gravity of the distribution.

A critical conceptual point is that the expected value does not have to be a value that can actually occur. For example, if you roll a fair six-sided die, the expected value is:

E(X) = 1·(1/6) + 2·(1/6) + 3·(1/6) + 4·(1/6) + 5·(1/6) + 6·(1/6)
     = (1 + 2 + 3 + 4 + 5 + 6) / 6
     = 21 / 6
     = 3.5

No single roll of a die can produce 3.5, yet 3.5 is the expected value. It is best understood as a long-run average: if you rolled the die thousands of times and averaged the results, that average would converge to 3.5. This is guaranteed by the Law of Large Numbers.

In practical contexts, expected value is an indispensable tool. A retailer calculating the expected daily demand for a product, an insurer computing the expected payout on a policy, or a project manager estimating expected completion time all rely on this concept to make rational, data-driven decisions.

Interpreting Expected Value in Context

The expected value provides a single summary number representing the typical outcome of a random process over many repetitions. However, interpreting it correctly requires awareness of context.

Consider an example from demographics: suppose that a study of households in a city finds the following distribution for the number of children per household:

Number of Children (x) Probability P(x) x · P(x)
0 0.30 0.00
1 0.25 0.25
2 0.25 0.50
3 0.15 0.45
4 0.05 0.20
E(X) = 0.00 + 0.25 + 0.50 + 0.45 + 0.20 = 1.40

The expected value of 1.40 children per household is a statistical average across all households in the city. It does not mean that any particular household has 1.40 children — no household can. It means that if you sampled many households, the average number of children across all of them would be approximately 1.40. This distinction is crucial: expected value is a population-level summary, not a prediction for a single case.

The expected value is most meaningful and reliable when the random process is repeated many times. For a one-time event — such as a single business venture — the expected value still guides rational decision-making, but individual outcomes can deviate substantially from it.

Definition and Formula for Variance

The expected value tells us where the distribution is centered, but it says nothing about how spread out the outcomes are. Two distributions can have the same expected value but behave very differently. This is where variance becomes essential.

The variance of a discrete random variable, denoted Var(X) or σ² (sigma squared), measures the average squared deviation of each outcome from the expected value. The formula is:

Var(X) = Σ [(x − μ)² · P(x)]

where μ = E(X). Each term computes how far outcome x is from the mean, squares that distance (so that positive and negative deviations don't cancel), and weights it by the probability of that outcome occurring. A larger variance indicates that outcomes are widely dispersed around the mean; a smaller variance indicates they cluster tightly near it.

Because variance is computed in squared units (e.g., dollars squared, children squared), it is often more convenient to work with the standard deviation, denoted σ, which is simply the square root of the variance:

σ = √Var(X)

The standard deviation is expressed in the same units as the original variable, making it far more directly interpretable. Both variance and standard deviation are always non-negative: they equal zero only when every outcome is exactly equal to the mean (i.e., there is no randomness at all), and they increase as outcomes become more dispersed.

An equivalent and often computationally simpler formula for variance is:

Var(X) = E(X²) − [E(X)]²

where E(X²) is computed as Σ [x² · P(x)]. This formula avoids the need to subtract the mean from each outcome individually and is especially useful when computing by hand or in spreadsheet calculations.

Calculating Expected Value and Variance: Step-by-Step

To illustrate the full calculation process, consider a small game of chance: a player pays $3 to play and wins $10 with probability 0.20, wins $2 with probability 0.35, and wins $0 with probability 0.45. Let X represent the player's net gain (winnings minus the $3 cost).

The distribution of net gain is:

Net Gain x ($) P(x)
7 (win $10 − $3) 0.20
−1 (win $2 − $3) 0.35
−3 (win $0 − $3) 0.45

Step 1: Verify the probabilities sum to 1.

0.20 + 0.35 + 0.45 = 1.00  ✓

Step 2: Compute E(X) by multiplying each value by its probability and summing.

x P(x) x · P(x)
7 0.20 1.40
−1 0.35 −0.35
−3 0.45 −1.35
Total 1.00 −0.30
E(X) = 1.40 + (−0.35) + (−1.35) = −0.30

The expected net gain is −$0.30, meaning the player loses an average of 30 cents per game in the long run. This game is unfavorable to the player.

Step 3: Compute the variance using Σ [(x − μ)² · P(x)], with μ = −0.30.

x x − μ (x − μ)² P(x) (x − μ)² · P(x)
7 7 − (−0.30) = 7.30 53.29 0.20 10.658
−1 −1 − (−0.30) = −0.70 0.49 0.35 0.172
−3 −3 − (−0.30) = −2.70 7.29 0.45 3.281
Total 14.111
Var(X) = 14.111

Step 4: Take the square root to find the standard deviation.

σ = √14.111 ≈ 3.756

The standard deviation of approximately $3.76 tells us that individual game outcomes typically deviate from the expected loss of $0.30 by about $3.76 — a wide spread relative to the mean, confirming that a single play of this game is quite unpredictable even though the long-run average is clearly negative.

To verify using the computational formula Var(X) = E(X²) − [E(X)]²:

x P(x) x² · P(x)
7 49 0.20 9.80
−1 1 0.35 0.35
−3 9 0.45 4.05
Total 14.20
Var(X) = E(X²) − [E(X)]²
       = 14.20 − (−0.30)²
       = 14.20 − 0.09
       = 14.11  ✓

Both methods yield the same result, confirming the calculation.

Interpreting Variance and Standard Deviation

Once variance and standard deviation are calculated, interpreting them in context is just as important as computing them correctly.

Consider two investment options, both with an expected return of $500:

Investment Expected Return E(X) Standard Deviation σ
Option A $500 $50
Option B $500 $300

Both options have the same expected value — the same long-run average return. But Option A has a standard deviation of $50, meaning most outcomes cluster within roughly $50 of $500 (i.e., between about $450 and $550). Option B has a standard deviation of $300, meaning outcomes commonly range from $200 to $800 or beyond. Option A is the lower-risk choice; Option B carries significantly more uncertainty. A risk-averse investor would prefer Option A, while someone seeking higher potential upside might tolerate Option B's variability.

This illustrates a fundamental principle: relying on expected value alone can be deeply misleading. Two scenarios with identical expected values can differ radically in their risk profiles. The standard deviation gives the additional dimension needed for a complete picture.

  • A low standard deviation means outcomes are predictable and consistently near the mean — indicating lower risk or uncertainty. This is desirable in contexts like medical dosing, quality control, or reliable supply chains.
  • A high standard deviation signals that outcomes vary widely from the mean — indicating greater unpredictability. This might be acceptable or even desirable (e.g., high-risk, high-reward investments) depending on the decision-maker's goals and risk tolerance.
  • Because the standard deviation is expressed in the same units as the original variable (dollars, hours, units, etc.), it is directly interpretable in practical terms — something variance alone cannot offer.
  • Comparing standard deviations across options allows analysts to perform a meaningful relative risk assessment, even when the options have different expected values, using measures like the coefficient of variation (CV = σ / μ).

Practical Applications of Expected Value and Variance

The concepts of expected value and variance extend far beyond textbook exercises — they are foundational tools used across virtually every applied discipline.

  • Finance and Investment: Portfolio managers compute the expected return of each asset and the variance of those returns. A diversified portfolio aims to achieve a desirable expected return while minimizing overall variance. The Nobel Prize–winning Modern Portfolio Theory is built directly on these two measures. An investor choosing between a bond fund with E(X) = 4% and σ = 1% versus a stock fund with E(X) = 9% and σ = 15% is making a judgment about how much variability (risk) is acceptable in exchange for higher average returns.
  • Insurance: Insurers use expected value to set premiums. If a policy has a 2% chance of paying out $50,000 and a 98% chance of paying nothing, the expected payout is E(X) = 0.02 × 50,000 + 0.98 × 0 = $1,000. The premium will be set above this expected payout to ensure profitability. Variance determines how much capital reserve the insurer must hold to handle variability in claims.
  • Healthcare: Clinical researchers use expected value to compare the average effectiveness of treatments. Variance helps assess reliability — a treatment with a high expected improvement but also high variance may help some patients greatly while harming others, which is very different from a treatment with the same expected improvement but low variance (consistently effective across patients). Expected values also inform hospital staffing models, drug dosing calculations, and health economic analyses.
  • Operations Management and Logistics: A warehouse manager might model daily customer demand as a discrete random variable with a known distribution. The expected demand guides average inventory levels, while variance informs safety stock decisions. If demand has high variance, the manager must hold more buffer stock to avoid stockouts. Similarly, in scheduling, high variance in task completion times leads to longer project buffers to account for uncertainty.
  • Quality Control: Manufacturing processes aim to produce items within tight tolerances. A process with low variance produces items consistently close to the target specification. A high-variance process produces more defects. Understanding the variance of output measurements directly informs decisions about whether a process is in control and what improvements are needed.

In all of these applications, the paired use of expected value and variance enables more informed and balanced decisions than either measure alone. Expected value answers "What is the typical outcome?" while variance answers "How much can I expect actual outcomes to deviate from that typical outcome?" Together, they provide the foundation for rational decision-making under uncertainty.

NotesIncludes a full worked example (gambling game) demonstrating all four calculation steps with tables, verification using both the definition and the computational formula, and contextual examples across finance, insurance, healthcare, and operations management. The children-per-household example is used specifically to illustrate that expected value need not be a realizable outcome.