Gradient

Courses

∇\nabla∇The maths behind AI0/72
π\piπMaths0/84
⋆\star⋆AI for everyone0/10
Γ\GammaΓGame theory0/49
py\texttt{py}pyPython for AI0/15
y^\hat{y}y^​Build your own AI0/15
All courses

Tuition

My tuitionOlympiad trackCompetitions

Practice

ProjectsAsk a questionTrain on a GPUExplorationsMaths StoriesUnsolved problemsPlaygroundScience labsMock testsOlympiad

Reference

GlossaryBlogDiscoveries
Explorations › Odds in real life › lesson 3 of 6

Expected value: the long-run average

Multiply each outcome by its chance and add. That number tells you what happens on average over many tries.

Some choices are worth doing again and again; others quietly cost you over time. Expected value is how you tell them apart.

Score × chance, added up

Pick A fair die. Each score 1 to 6 has a chance of 16\frac{1}{6}61​, so the expected value is

E=1⋅16+2⋅16+3⋅16+4⋅16+5⋅16+6⋅16=3.5E = 1·\tfrac16 + 2·\tfrac16 + 3·\tfrac16 + 4·\tfrac16 + 5·\tfrac16 + 6·\tfrac16 = 3.5E=1⋅61​+2⋅61​+3⋅61​+4⋅61​+5⋅61​+6⋅61​=3.5

You can never roll 3.5. But spin 5,000 times and the blue line, the average so far, lies right on the yellow line at 3.5.

One big prize

Pick One big prize: 20 points with chance 110\frac{1}{10}101​, otherwise nothing. Expected value: 20×0.1=220 × 0.1 = 220×0.1=2 points per spin. Most spins give 0, a few give 20, and the long-run average is 2.

Imagine a game that charges 3 points to spin this wheel. Every spin costs 3 and returns 2 on average, so after 1,000 spins you are about 1,000 points down, however lucky the first few felt. This is how every game of chance that someone runs for profit is built: the expected value is set slightly against the player.

Covering a rare loss

Expected value also explains insurance. Suppose a phone has a 1-in-50 chance of breaking this year, and fixing it costs 10,000 points. The expected cost is 10,000÷50=20010{,}000 ÷ 50 = 20010,000÷50=200. Cover that costs 300 is worse on average, but many people still choose it, because a sure small cost is easier to live with than a rare large one. Expected value is the average; it is not the whole story.

What to remember

  • Expected value = sum of (outcome × its chance).
  • It is the long-run average over many repeats, not what you get on one try.
  • When the expected value of a game is negative for you, playing more loses more.
  • People sometimes accept a worse average to avoid a rare large loss.
How rare is rare?Next