Expected value vs sample mean: parameter vs data

By Jude Wallis · Published

The expected value is a fixed parameter, the long-run average of a probability distribution, found by weighting each value by its probability. The sample mean is a statistic, the average of observed data. The sample mean estimates the expected value and changes from sample to sample.

AP Statistics: Unit 2 (topics 2.9). In the Fall 2026 AP Statistics course, the expected value of a discrete random variable is a parameter defined in topic 2.9 of Unit 2 as the sum of each value times its probability. The sample mean is a statistic; its sampling distribution, centered at mu with standard deviation sigma over root n, is topic 4.1 of Unit 4, and it is an unbiased estimator of the expected value.

Expected value vs sample mean: the short answer

Both are averages, and both are often written with the word mean, which is why they blur together. The difference is what you average and whether the result is fixed or variable.

The expected value is a parameter: the theoretical long-run average of a probability distribution, written E(X)E(X) or μ\mu (mu). You compute it from probabilities, not data, by weighting each possible value by how likely it is. It is a single fixed number for a given distribution.

The sample mean, written xˉ\bar{x} (x-bar), is a statistic: the ordinary average of the values you actually observed, computed by adding them up and dividing by the count. It changes every time you collect a new sample. The sample mean is your best estimate of the expected value, and by the law of large numbers it drifts toward the expected value as the sample grows.

What the expected value is

The expected value, or mean, of a probability distribution is a parameter denoted E(X)E(X) or μX\mu_X. For a discrete random variable XX, it is

μX=xiP(xi),\mu_X = \sum x_i \, P(x_i),

where xix_i is a possible value of the variable and P(xi)P(x_i) is its probability. You multiply each value by its probability and add across all the values. The result is interpreted as the long-run average outcome of the random variable: what the average would settle toward over endless repetitions.

Because it comes from the probability distribution, the expected value is fixed and theoretical; no data collection is involved. A striking feature is that the expected value need not be a value the variable can actually take. A fair die has expected value 3.5, which is never rolled. That is fine, because it describes the long-run average, not any single outcome.

What the sample mean is

The sample mean is the everyday average of observed data. For nn observations x1,x2,,xnx_1, x_2, \ldots, x_n, it is

xˉ=1nxi,\bar{x} = \frac{1}{n} \sum x_i,

the sum of the values divided by how many there are. It uses data, not probabilities, and it is a statistic, meaning a number computed from a sample.

Because it depends on which sample you happened to draw, the sample mean varies from sample to sample; that variability is what sampling distributions describe. The sample mean is an unbiased point estimator of the expected value: on average, across all possible samples, it neither overshoots nor undershoots μ\mu. Its own sampling distribution is centered at μ\mu with standard deviation σn\frac{\sigma}{\sqrt{n}}, where σ\sigma is the population standard deviation. For the vocabulary of a statistic estimating a parameter, see parameter vs statistic.

The differences side by side

FeatureExpected valueSample mean
SymbolE(X)E(X) or μ\muxˉ\bar{x}
Kind of quantityParameter (fixed)Statistic (varies)
Computed fromProbabilitiesObserved data
FormulaxiP(xi)\sum x_i \, P(x_i)1nxi\frac{1}{n} \sum x_i
Changes between samplesNoYes
RoleThe truth you estimateThe estimate of that truth

Every row is the same split: the expected value is the fixed theoretical target, and the sample mean is the data-based estimate that aims at it.

When to use which

Use the expected value when you have a probability distribution and want its theoretical center: the fair price of a game, the long-run average payout, or the mean of a binomial or other random variable. Any time each outcome comes with a probability, weight the values by those probabilities. The expected value calculator handles the weighting for a discrete distribution.

Use the sample mean when you have actual data and want to summarize it or estimate an unknown population mean. Test scores, measured heights, and survey responses all call for adding and dividing. In inference, the sample mean xˉ\bar{x} is the statistic you compute to estimate the population mean μ\mu, then surround with a margin of error. The short rule: probabilities in hand means expected value; data in hand means sample mean.

The classic mix-up and how to avoid it

The mix-up starts with the word mean, since both are called means, and deepens when a sample mean is treated as if it were the fixed truth. A sample mean of 3.2 from a few die rolls does not overturn the expected value of 3.5; it is just one estimate, and a different handful of rolls would give a different xˉ\bar{x}.

Two checks keep them apart. First, look at the inputs: if you multiplied values by probabilities, you found an expected value (a parameter); if you added data and divided by the count, you found a sample mean (a statistic). Second, watch the symbols: μ\mu or E(X)E(X) is the fixed target, while xˉ\bar{x} is the estimate that varies and, by the law of large numbers, converges to μ\mu as the sample grows. The connection between how the average settles and how its distribution takes shape is drawn out in law of large numbers vs central limit theorem.

Same game, two averages

A carnival game pays 0 dollars with probability 0.5, 5 dollars with probability 0.3, and 20 dollars with probability 0.2. First find the expected payout. Then a player plays six times and wins, in dollars, 0, 5, 0, 20, 5, 0. Find the sample mean, and compare it with the expected value.

  1. Set up the expected value using probabilities: E(X)=0(0.5)+5(0.3)+20(0.2)E(X) = 0(0.5) + 5(0.3) + 20(0.2).

  2. Compute each term digit by digit: 0×0.5=00 \times 0.5 = 0, 5×0.3=1.55 \times 0.3 = 1.5, 20×0.2=4.020 \times 0.2 = 4.0.

  3. Add the terms: 0+1.5+4.0=5.50 + 1.5 + 4.0 = 5.5. So the expected value is μ=5.5\mu = 5.5 dollars, a fixed parameter from the distribution.

  4. Now switch to the data. Add the six observed payouts: 0+5+0+20+5+0=300 + 5 + 0 + 20 + 5 + 0 = 30 dollars.

  5. Divide by the count n=6n = 6: xˉ=306=5.0\bar{x} = \frac{30}{6} = 5.0 dollars. This is a statistic from this particular sample.

  6. Compare. The expected value 5.5 came from weighting values by probabilities; the sample mean 5.0 came from averaging six real plays. They differ by 0.5 because of sampling variability, and by the law of large numbers the sample mean would edge toward 5.5 over many more plays.

The expected value is 5.50 dollars, a fixed parameter found by weighting each payout by its probability. The sample mean of the six plays is 5.00 dollars, a statistic found by averaging the observed payouts. The sample mean estimates the expected value; here it lands 50 cents below, and it would approach 5.50 dollars as the number of plays grows.

Frequently asked questions

Is the expected value always a possible outcome?

No. The expected value is a long-run average, not a single result, so it need not be a value the variable can take. A fair die has expected value 3.5, which you can never actually roll, yet it correctly describes the average of many rolls.

Does the sample mean equal the expected value?

Usually not for a given sample. The sample mean is an unbiased estimator, so on average across all possible samples it equals the expected value, but any one sample mean will typically differ from it. By the law of large numbers it converges to the expected value as the sample size grows.

What symbols separate the two?

The expected value is written E(X) or the Greek letter mu, and it is a fixed parameter. The sample mean is written x-bar, and it is a statistic that changes from sample to sample. Matching the symbol to parameter or statistic is the quickest way to tell which you have.