This free expected value calculator finds E(X), variance, standard deviation, the median and the mode from a discrete probability table. Type one outcome and its probability on each line (fractions such as 1/6 and percents such as 20% are fine), and the calculator shows the term-by-term working, a bar chart with E(X) marked, an optional probability such as P(X ≤ x), and the exact TI-84 1-Var Stats L1, L2 keystrokes. If you have counts or weights instead of probabilities, switch to Weights / frequencies and they are normalized automatically. This is the model for a random variable, not a list of observed scores: for a data set use the mean, median and mode calculator or the standard deviation calculator instead.
Contents
How to Use the Expected Value Calculator
- Enter the table. Put one pair on each line: the value of X, then its probability, separated by a comma, space or colon. You can type decimals, fractions (1/6) or percents (20%). Duplicate values are combined.
- Choose how to read the second column. Probabilities must add up to 1. Weights / frequencies can be any positive counts; each is divided by the total so the probabilities add up to 1.
- Optionally pick a probability to read off the same table: P(X = x), P(X ≤ x), P(X < x), P(X ≥ x), P(X > x) or P(a ≤ X ≤ b).
- Read E(X), variance, standard deviation, the median and the mode in the purple boxes. Open the term-by-term table, the step-by-step working and the TI-84 keystrokes written for your numbers.
Results update as you type. Copy share link saves your inputs in the URL. The Example button loads a fair six-sided die (each face 1/6), which has E(X) = 3.5. For a named distribution such as the number of successes in n trials, use the binomial distribution calculator; to standardize a value once you have μ and σ, use the z-score calculator.
What Is Expected Value?
The expected value of a discrete random variable X, written E(X) or μ, is the probability-weighted average of the values X can take. If you could repeat the same random experiment a huge number of times, the long-run average of the outcomes would settle near E(X). It is the center of the probability distribution, not a guess at the next draw.
Three things are easy to miss:
- E(X) does not have to be a possible value of X. A fair die never lands on 3.5, but 3.5 is still the expected value. A raffle ticket that costs $1 and pays $500 with chance 1 in 1,000 has E(X) = −0.5 even though no ticket is worth −50 cents by itself.
- The table has to be a complete distribution. Every probability is between 0 and 1, and they add up to 1. If a value of X is missing, its probability is treated as 0, so a missing outcome will make the sum too small.
- Expected value is about a model, not a sample. The mean of a list of observed scores is a different calculation (add the scores and divide by how many there are). This calculator is for P(x) tables from homework, games and discrete distributions.
Expected Value, Variance and Standard Deviation Formulas
E(X) = Σ x P(x) E(X²) = Σ x² P(x)
Var(X) = E(X²) − [E(X)]² = Σ (x − μ)² P(x) σ = √Var(X)
Multiply each outcome by its probability and add. That sum is E(X). For the variance, either subtract the square of the mean from E(X²), or add (x − μ)² P(x) over every row; the two formulas agree. The standard deviation is the square root of the variance, in the same units as X. The median is the smallest x with P(X ≤ x) ≥ 0.5. The mode is the most likely value (or values). If every outcome is equally likely and there is more than one, the distribution has no unique mode.
These are the definitions used in intro stats and AP Statistics. They are also what a TI-84 reports as x̄ and σx when L1 holds the outcomes and L2 holds the probabilities.
Worked Example: E(X) = 1.7 from a Probability Table
The calculator opens with this table: X takes the values 0, 1, 2 and 3 with probabilities 0.1, 0.3, 0.4 and 0.2. (You might see the same numbers as a number of defects, a number of sales, or a short homework distribution.)
- Expected value: E(X) = 0×0.1 + 1×0.3 + 2×0.4 + 3×0.2 = 0 + 0.3 + 0.8 + 0.6 = 1.7.
- E(X²): 0²×0.1 + 1²×0.3 + 2²×0.4 + 3²×0.2 = 0 + 0.3 + 1.6 + 1.8 = 3.7.
- Variance: Var(X) = 3.7 − (1.7)² = 3.7 − 2.89 = 0.81. The (x − μ)² P(x) column adds up to the same 0.81.
- Standard deviation: σ = √0.81 = 0.9.
- Median and mode: P(X ≤ 1) = 0.4, which is still under 0.5, and P(X ≤ 2) = 0.8, so the median is 2. The largest probability is 0.4 at x = 2, so the mode is also 2.
The Example button loads a fair die, 1 through 6 each with probability 1/6. Then E(X) = 3.5, Var(X) = 35/12 ≈ 2.9167 and σ = √(35/12) ≈ 1.7078. The median is 3, because that is the first face with a cumulative probability of 0.5, and there is no unique mode (every face is equally likely). For a $1 raffle ticket that pays $500 in a drawing of 1,000 tickets, enter 499, 1/1000 and −1, 999/1000 to get E(X) = −0.5.
Weights and Frequencies vs Probabilities
Sometimes the second column is not already a probability. A spinner with four sectors of 1, 2, 2 and 1 units, or a table of counts from a simulation, should be treated as weights. Switch the calculator to Weights / frequencies. Each weight w is turned into P(x) = w / Σ w, and then E(X) and Var(X) are computed as usual. Entering a fair die as 1, 1, 1, 1, 1, 1 in this mode gives the same 3.5 and 35/12 as typing 1/6 six times.
If you leave the calculator in probability mode and the second column adds up to 5 or to 0.8, you will get an error instead of a quietly wrong mean. That is deliberate: a probability distribution has to add up to 1. Switch modes, or find the missing (or extra) outcome.
Expected Value vs the Mean of a Data Set
Students often reach for 1-Var Stats on a TI-84 for two different jobs, and the screen looks similar. The difference is what L2 means.
| Expected value (this calculator) | Sample mean (data) | |
|---|---|---|
| Input | Each value of X with its probability P(x) | A list of observed scores, or scores with frequencies |
| What x̄ means | E(X), the mean of the probability model | The average of the data you collected |
| Which SD to read | σx (population / distribution SD) | Usually Sx, the sample standard deviation |
| What n should be | n = 1 when L2 holds probabilities that add up to 1 | n = the number of observations |
| When to use it | A probability table, a game, a discrete distribution | Quiz scores, measurements, a frequency table of data |
If you have a list of numbers and you want their mean, median, mode or range, use the mean, median and mode calculator. For a sample or population standard deviation of data, use the standard deviation calculator. Those pages also show the TI-84 keys for a data list, including why Sx and σx differ.
How to Find Expected Value on a TI-84
The TI-84 Plus, TI-84 Plus CE and TI-83 Plus have no separate “expected value” command. You store the distribution as a frequency list and read x̄ and σx from 1-Var Stats.
- Press STAT 1:Edit. If L1 or L2 still hold old data, arrow up to the list name, press CLEAR then ENTER. Do not press DEL, which hides the list.
- Type the outcomes into L1 and the probabilities into L2, in the same order. Fractions can be typed as
1/6and entered; the list stores a decimal. - On the home screen check
sum(L2): press 2nd STAT (LIST), arrow to MATH, 5:sum(, then 2nd 2 for L2. You should get 1. - Press STAT, arrow right to CALC, press 1 for 1:1-Var Stats. Set List: L1 and FreqList: L2, go to Calculate and press ENTER. On an older OS, type
1-Var Stats L1,L2on the home screen. - Read x̄ as E(X) and σx as the standard deviation. Ignore Sx — that is a sample standard deviation and is not used for a probability distribution. If n is not 1, L2 does not add up to 1.
- A quick check of the mean only:
sum(L1*L2)on the home screen also equals E(X). For the default table you should see x̄ = 1.7 and σx = 0.9.
Try every keystroke on our TI-84 Plus CE calculator online. All of the probability tools live on the math calculators hub.
Common Mistakes
- Reading Sx instead of σx. For a probability distribution the right standard deviation is σx. Sx treats the probabilities as if they were sample frequencies and gives a larger number.
- Forgetting that probabilities must add to 1. A missing row, or a leftover weight typed in probability mode, makes E(X) wrong. Check sum(L2) on the calculator, or use Weights / frequencies here.
- Using DEL to clear a list on the TI-84. DEL hides L1 or L2. Arrow to the list name, press CLEAR, then ENTER.
- Treating E(X) as a value X must take. 1.7 and 3.5 are valid expected values even when they are not in the table.
- Computing a sample mean of the x values and ignoring P(x). The unweighted average of 0, 1, 2 and 3 is 1.5, not 1.7. The probabilities are the weights.
- Entering percents as 20 instead of 0.20. You can type 20% (with the percent sign) in this calculator. On the TI-84, enter 0.2 or 20/100.
Why This Expected Value Calculator Is Different
- A real probability table, not just a single formula. You see E(X), E(X²), both variance formulas, σ, the median, the mode, a bar chart with E(X) marked and a term-by-term table.
- Honest TI-84 keystrokes for 1-Var Stats L1, L2, including CLEAR (not DEL), the sum(L2) = 1 check, why n should be 1, and a reminder to use σx rather than Sx.
- Fractions, percents, weights and probabilities in the same tool, with a hard check that probabilities add up to 1.
- Optional probabilities from the same table (exactly, at most, at least or between), so a homework question that asks for E(X) and P(X ≥ 2) is answered in one pass.
- Checked against exact arithmetic on two hundred random tables plus the default 1.7 / 0.81 / 0.9 example, the fair-die 3.5 and 35/12 case, and the raffle ticket with E(X) = −0.5. It works in dark mode, makes share links and fits a phone screen.
Expected Value Calculator FAQ
TI 84 Calc PRO is not affiliated with or endorsed by Texas Instruments. TI-84 Plus CE is a trademark of Texas Instruments.
About this page