Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Expected Value Calculator - Direct Data

How to use Expected Value Calculator - Direct Data
  1. Type each outcome's Value and its Probability (between 00 and 11) in the table; the Contribution column shows value × probability. Learn more about the table
  2. Click + Add Outcome for another row, or × to remove one; Total Probability must read 1.00001.0000. Learn more about rows and the total
  3. The results update as you type: Expected Value E(X), Variance Var(X) and Standard Deviation σ appear once the probabilities add up to 11. Learn more about the results
  4. Use the tabs Probability Distribution, Calculation Breakdown and Contributions for a chart, the sum step by step, or each outcome's share. Learn more about the views
  5. The box under the calculator explains expected value, the reading of its sign and the spread measures. Learn more about the box
  6. A red message appears when the probabilities do not add up to 11 or a row is incomplete; there is no Calculate or Reset button. Learn more about messages


Expected Value Calculators

Expected Value Calculator - Direct Discrete Method

The expected value (also called expectation or mean) represents the average outcome you would expect if you repeated an experiment many times. It is calculated by multiplying each possible outcome by its probability and summing the results.

Enter Outcomes and Probabilities

ValueProbabilityContribution
25.0000
25.0000
-5.0000
Total Probability:1.0000
Expected Value E(X)
45.0000
Variance Var(X)
1825.0000
Standard Deviation σ
42.7200
Probability
E(X) = 45.00
0.25
-20
0.50
50
0.25
100
Outcome Value

Understanding Expected Value

What is Expected Value? Expected value represents the average outcome you would expect over many trials. It is a weighted average where each outcome is weighted by its probability of occurring.

Interpretation. Positive E(X): on average, you gain value. Negative E(X): on average, you lose value. E(X) = 0: a fair game, neither gain nor loss on average.

Common Applications. Games: determining if a game is favorable. Investments: comparing expected returns. Insurance: calculating fair premiums. Decision Making: choosing between uncertain options.

Variance and Standard Deviation. While expected value tells you the average outcome, variance and standard deviation measure how spread out the outcomes are. Low variance: outcomes are clustered near the expected value. High variance: outcomes are more spread out (higher risk). Standard deviation (σ): square root of variance, in the same units as the outcomes. Learn more about expected value




Calculate Expected Value

Use the calculator below to compute the expected value with step-by-step solutions and detailed explanations.



Entering Outcomes and Probabilities

DemoThe game table, a fourth row, a wrong total
Step 0 of 4
The table on the left holds one row per outcome. Type the outcome in the Value column (any number, negative for a loss) and its chance in the Probability column, a number from 00 to 11; a probability typed above 11 or below 00 is clamped to that range. The Contribution column shows value × probability for the row as soon as both boxes hold numbers, and a dash until then.

Click + Add Outcome for another row; it starts with value 00 and probability 00, so the total does not change until you type. The × at the end of a row removes it; the last remaining row cannot be removed. Total Probability under the table must read 1.00001.0000: a total of 1.20001.2000 shows the warning ⚠ Must equal 1.0 and the message that probabilities must sum to exactly 1.01.0, and the results area shows a placeholder until the total is fixed. A table with no usable rows shows "Please enter valid values and probabilities".

There is no Calculate button and no Reset button: everything recomputes as you type, and reloading the page restores the sample table (100100, 5050, −20-20 with 0.250.25, 0.50.5, 0.250.25). For the game that pays 00, 1010 or 5050 dollars with probabilities 0.50.5, 0.30.3 and 0.20.2, the three rows give the expected value 1313. Why the probabilities must add up to 11 is explained in expected value from a probability table.

Reading the Results and the Explanation Box

DemoThree cards, then a placeholder
Step 0 of 3
Once the total probability is 11, three cards appear on the right: Expected Value E(X), the sum of the contributions; Variance Var(X), the probability-weighted average of the squared distances from E(X)E(X); and Standard Deviation σ, the square root of the variance, in the same units as the values. All three show four decimals. For the sample table the cards read 45.000045.0000, 1825.00001825.0000 and 42.720042.7200; changing the third value from −20-20 to −40-40 moves them to 40.000040.0000, 2550.00002550.0000 and 50.497550.4975, because the loss row now pulls the mean down by 1010 instead of 55 and sits further from it.

If a probability is edited so that the total leaves 11, the cards disappear and the results area shows "Enter valid outcomes with probabilities that sum to 1.0 to see results" until the table is valid again. The sign of E(X)E(X) is the quick reading: positive means an average gain per play, negative an average loss, zero a fair game.

The box under the calculator, Understanding Expected Value, restates the definition, the reading of the sign, the common uses and the meaning of variance and standard deviation; its link opens the table section below. The formula itself is worked through in formula and worked example.

Switching Between the Three Views

DemoBreakdown, contributions, distribution
Step 0 of 3
Above the chart are three tabs; they change only what is drawn, not the numbers. Probability Distribution (the default) draws one bar per outcome, with height equal to its probability, on a value axis, and marks where E(X)E(X) falls among the bars: for the sample table the bars stand at −20-20, 5050 and 100100 and the mark at 4545. Calculation Breakdown lists the formula E(X)=Σ(value×probability)E(X) = Σ(\text{value} × \text{probability}) and one line per row, such as 100×0.25=25.0000100 × 0.25 = 25.0000, 50×0.5=25.000050 × 0.5 = 25.0000 and −20×0.25=−5.0000-20 × 0.25 = -5.0000, then the total 45.000045.0000. Contributions draws each row's product as a bar, so a large value with a small probability and a small value with a large probability can be compared directly.

Use the breakdown when checking homework by hand, the distribution to see how spread out the outcomes are, and the contributions to see which rows drive the result. Editing the table while a tab is open redraws that tab at once. The meaning of each product and of their sum is set out in formula and worked example.

Expected Value from a Probability Table

When the possible values of a random variable and their probabilities are known, the expected value is the probability-weighted average of those values. Each value contributes in proportion to how likely it is, so rare large values count less than common small ones.

A probability table is valid only when every probability lies between 00 and 11 and the probabilities add up to exactly 11. If they add up to something else, either a value is missing or a probability is wrong, and the result would not be a true expected value. The expected value does not have to be one of the listed values: a variable that takes only the values 00 and 11 can have an expected value of 0.30.3.

The weighted-average idea is developed in the intuition behind expected value and the table formula in expected value for discrete random variables; what a random variable is comes first, in what a random variable is.

Formula and Worked Example

For a discrete random variable with values x1,x2,…,xnx_1, x_2, \ldots, x_n and probabilities p1,p2,…,pnp_1, p_2, \ldots, p_n:

E[X]=∑i=1nxi piE[X] = \sum_{i=1}^{n} x_i \, p_i


Example: a game pays nothing with probability 0.50.5, 10 dollars with probability 0.30.3 and 50 dollars with probability 0.20.2. The probabilities add up to 11, so the table is valid. Then

E[X]=0(0.5)+10(0.3)+50(0.2)=0+3+10=13E[X] = 0(0.5) + 10(0.3) + 50(0.2) = 0 + 3 + 10 = 13


On average the game pays 13 dollars per play. If a ticket costs 15 dollars, a player loses 2 dollars per play in the long run.

The same steps are listed in how to calculate expected value, and more cases are worked in examples of expected value.

Where This Is Used

Probability tables appear wherever outcomes and their chances are known in advance. Insurers use them to price policies: the expected payout per policy sets the minimum premium. Games of chance are judged by their expected value per play, which shows whether the house has an edge. In business, expected profit compares options whose results are uncertain, such as launching a product that may sell well, average or poorly.

The same table also gives the variance, which measures how far the results spread around the expected value. Two games with the same expected value can carry very different risk.

The variance of a table is computed in variance for discrete random variables, its square root is compared with it in variance vs standard deviation, and the links to the other ideas of the subject are in relation to other probability concepts.