AI Grounds

Open AI Grounds on a desktop

These interactive lessons need a larger screen. Please continue on a desktop or laptop computer.

Guided discovery

Expected Value & Risk

Weight each payoff, then compare the average with the spread.

Two fictional bets with net payoffs. A random variable is the numerical payoff of one uncertain round. Change a probability or payoff to see its contribution to the average.

Bet A

Chance of the positive payoff on each round. Use arrow keys on the slider. Press Enter or leave the number field to apply an exact edit.

Net positive payoff on a winning round. Use arrow keys on the slider. Press Enter or leave the number field to apply an exact edit.

Net negative payoff on a losing round. Use arrow keys on the slider. Press Enter or leave the number field to apply an exact edit.

Two outcomes, one round

Win: 72%, +$35.00
Loss: 28%, −$18.00

EV = 0.72 × +$35.00 + 0.28 × (−$18.00)
+$25.20 + (−$5.04) = +$20.16

Bet B

Chance of the positive payoff on each round. Use arrow keys on the slider. Press Enter or leave the number field to apply an exact edit.

Net positive payoff on a winning round. Use arrow keys on the slider. Press Enter or leave the number field to apply an exact edit.

Net negative payoff on a losing round. Use arrow keys on the slider. Press Enter or leave the number field to apply an exact edit.

Two outcomes, one round

Win: 34%, +$125.00
Loss: 66%, −$38.00

EV = 0.34 × +$125.00 + 0.66 × (−$38.00)
+$42.50 + (−$25.08) = +$17.42

Compare the bets

Model values for one round; SD and break-even percentages are rounded.
BetEV ($)SD ($)Loss chanceBreak-even p
Bet A+$20.16≈ 23.8028%≈ 34%
Bet B+$17.42≈ 77.2166%≈ 23.3%

Scroll the comparison table horizontally to see all columns.

Standard deviation (SD) measures the spread of one round, in dollars. Loss chance measures how often the negative payoff occurs. Break-even p is the win probability making EV zero.

Bet A has the higher EV. Bet A has the smaller per-round SD. SD is one aspect of risk, not a complete decision rule.

How spread and break-even are calculated

Variance = p × (win − EV)² + (1 − p) × (loss − EV)², in dollars squared. SD = √variance, in dollars. Break-even p = −loss / (win − loss), found by setting EV to zero.

Bet A EV

Model average payoff per round.

+$20.16

p × win + (1 − p) × loss

Neither payoff needs to equal the average.

Bet B EV

Model average payoff per round.

+$17.42

p × win + (1 − p) × loss

Neither payoff needs to equal the average.

Running average

Each bet has a seeded pseudorandom sample illustrating independent rounds with unchanged probabilities. Longer runs extend the same outcome sequence. Payoff edits keep wins and losses fixed; probability edits change which draws count as wins.

Bet A · 42 wins, 18 losses
Sample average: +$19.10 · total: +$1146.00
125-100160 rounds

Solid: sample average. Dotted: model EV +$20.16. Vertical axis: average payoff in dollars; both charts use the same scale.

Bet A round-by-round values
Every outcome and its running average; displayed dollars rounded to cents.
RoundOutcomePayoff ($)Average ($)
1Loss−$18.00−$18.00
2Win+$35.00+$8.50
3Win+$35.00+$17.33
4Win+$35.00+$21.75
5Loss−$18.00+$13.80
6Win+$35.00+$17.33
7Win+$35.00+$19.86
8Loss−$18.00+$15.13
9Win+$35.00+$17.33
10Loss−$18.00+$13.80
11Loss−$18.00+$10.91
12Win+$35.00+$12.92
13Win+$35.00+$14.62
14Loss−$18.00+$12.29
15Loss−$18.00+$10.27
16Win+$35.00+$11.81
17Win+$35.00+$13.18
18Win+$35.00+$14.39
19Win+$35.00+$15.47
20Win+$35.00+$16.45
21Win+$35.00+$17.33
22Win+$35.00+$18.14
23Loss−$18.00+$16.57
24Win+$35.00+$17.33
25Win+$35.00+$18.04
26Win+$35.00+$18.69
27Win+$35.00+$19.30
28Win+$35.00+$19.86
29Win+$35.00+$20.38
30Win+$35.00+$20.87
31Win+$35.00+$21.32
32Win+$35.00+$21.75
33Win+$35.00+$22.15
34Win+$35.00+$22.53
35Win+$35.00+$22.89
36Win+$35.00+$23.22
37Loss−$18.00+$22.11
38Win+$35.00+$22.45
39Win+$35.00+$22.77
40Win+$35.00+$23.07
41Win+$35.00+$23.37
42Win+$35.00+$23.64
43Win+$35.00+$23.91
44Win+$35.00+$24.16
45Win+$35.00+$24.40
46Loss−$18.00+$23.48
47Loss−$18.00+$22.60
48Win+$35.00+$22.85
49Win+$35.00+$23.10
50Win+$35.00+$23.34
51Loss−$18.00+$22.53
52Win+$35.00+$22.77
53Loss−$18.00+$22.00
54Win+$35.00+$22.24
55Loss−$18.00+$21.51
56Loss−$18.00+$20.80
57Loss−$18.00+$20.12
58Win+$35.00+$20.38
59Loss−$18.00+$19.73
60Loss−$18.00+$19.10
Bet B · 20 wins, 40 losses
Sample average: +$16.33 · total: +$980.00
125-100160 rounds

Solid: sample average. Dotted: model EV +$17.42. Vertical axis: average payoff in dollars; both charts use the same scale.

Bet B round-by-round values
Every outcome and its running average; displayed dollars rounded to cents.
RoundOutcomePayoff ($)Average ($)
1Loss−$38.00−$38.00
2Win+$125.00+$43.50
3Loss−$38.00+$16.33
4Win+$125.00+$43.50
5Win+$125.00+$59.80
6Loss−$38.00+$43.50
7Win+$125.00+$55.14
8Loss−$38.00+$43.50
9Loss−$38.00+$34.44
10Win+$125.00+$43.50
11Win+$125.00+$50.91
12Loss−$38.00+$43.50
13Loss−$38.00+$37.23
14Win+$125.00+$43.50
15Loss−$38.00+$38.07
16Loss−$38.00+$33.31
17Loss−$38.00+$29.12
18Win+$125.00+$34.44
19Loss−$38.00+$30.63
20Loss−$38.00+$27.20
21Loss−$38.00+$24.10
22Loss−$38.00+$21.27
23Loss−$38.00+$18.70
24Loss−$38.00+$16.33
25Loss−$38.00+$14.16
26Loss−$38.00+$12.15
27Loss−$38.00+$10.30
28Loss−$38.00+$8.57
29Loss−$38.00+$6.97
30Loss−$38.00+$5.47
31Loss−$38.00+$4.06
32Loss−$38.00+$2.75
33Loss−$38.00+$1.52
34Loss−$38.00+$0.35
35Loss−$38.00−$0.74
36Win+$125.00+$2.75
37Win+$125.00+$6.05
38Loss−$38.00+$4.89
39Win+$125.00+$7.97
40Loss−$38.00+$6.83
41Win+$125.00+$9.71
42Loss−$38.00+$8.57
43Loss−$38.00+$7.49
44Win+$125.00+$10.16
45Loss−$38.00+$9.09
46Loss−$38.00+$8.07
47Win+$125.00+$10.55
48Win+$125.00+$12.94
49Win+$125.00+$15.22
50Loss−$38.00+$14.16
51Loss−$38.00+$13.14
52Loss−$38.00+$12.15
53Win+$125.00+$14.28
54Win+$125.00+$16.33
55Loss−$38.00+$15.35
56Loss−$38.00+$14.39
57Win+$125.00+$16.33
58Win+$125.00+$18.21
59Loss−$38.00+$17.25
60Loss−$38.00+$16.33

Under independent fixed-probability repeats, the sample average approaches EV in the long run. A finite run need not match it exactly, and adding rounds need not move closer every time.

Bet A: win 72%, EV +$20.16, SD about 23.80 dollars, 60-round sample average +$19.10. Bet B: win 34%, EV +$17.42, SD about 77.21 dollars, 60-round sample average +$16.33.