Tabellab

Expected Value of Games: a Die, a Reroll Option and a Card Draw

Lesson 1 of 20Lab

All lessons
  1. Expected Value of Games: a Die, a Reroll Option and a Card DrawLabFree
  2. Conditional Probability Puzzles: Bayes Tables for Coins and CardsLab Locked
  3. Expected Stopping Times: the Geometric Distribution and Two Wins in a RowLab Locked
  4. Variance and Kelly Sizing: How Much to Bet on an EdgeLab Locked
  5. Fair Value of Option Payoffs on Dice and Coins: Calls, Puts and ParityLab Locked
  6. Market Making: Quoting a Spread, Tracking Inventory and Marking the P&LLab Locked
  7. Estimation Questions (Fermi): Break It Down, Bound It, Round ItLab Locked
  8. Mental-Math Drills Checked by Formulas: Percentages, Compounding and a P&L ChartLab Locked
  9. Two-Dice Distributions: Ways to Roll a Sum, the Higher Die and the Double-Six QuestionLab Locked
  10. Linearity of Expectation: Distinct Faces, Collecting Every Face, Shared Birthdays and RunsLab Locked
  11. Random Walks to a Target: Reach-Before-Zero Probabilities and Expected DurationLab Locked
  12. Order Statistics: Expected Max and Min of Several Dice, Buying Extra Rolls and Ranked Uniform DrawsLab Locked
  13. Correlated Positions: Covariance, the Minimum-Variance Hedge Ratio and a Hedged Sharpe RatioLab Locked
  14. How Sure Is Your Edge? Binomial Tails, the Normal Approximation and Trades NeededLab Locked
  15. Optimal Stopping by Backward Induction: Up to Six Rolls, a Cost per Roll and the Value CurveLab Locked
  16. Replication and Multi-Step Trees: Delta, Cash Position and a Three-Step CallLab Locked
  17. Adverse Selection and Skew: Setting the Spread When Some Traders Know MoreLab Locked
  18. Arbitrage Checks: FX Triangles, Put-Call Parity Deviations and a Butterfly SpreadLab Locked
  19. Recursive Expectations: Roll Until a Six, Alternating Flips, a Coin Run and the Capped Doubling GameLab Locked
  20. Final Mock Interview Project: Price, Risk-Check and Sell a Two-Card GameLab Locked

You are not signed in — the lab works, but your progress is not saved. Sign up

Lesson 1 of 20 is free. Unlock all 20 hands-on labs, the final exam and your certificate.

Buy course — $9.90
Loading the spreadsheet…

Why expected value is the first thing to master for a trading interview

If you are preparing for interviews for quantitative trading, market-making or other probability-heavy roles, you will meet one idea again and again: expected value. Practice questions are often framed as small games. "I roll a die and pay you the number that comes up. What would you pay to play?" Then the game changes: you may roll again, or draw a card, or the interviewer names a price and asks whether you take the bet. Behind every version sits the same question: what is this game worth on average, and is the price above or below that?

This free first lesson is for students, career changers and anyone who wants a solid, calm method for these questions instead of guessing under pressure. You price three games in the lab above: one die roll, the same die with an option to reroll, and one card from a full deck that you are offered at a fixed price. This article walks through the same three games in more depth, shows the reasoning you would say out loud, and gives you the exact Excel formulas so you can check your mental math in seconds.

A word on scope: this course is independent practice. It is not affiliated with any firm, exchange, regulator or exam body, it does not describe how any particular company runs its interviews, and nothing here is investment advice. All games, prices and numbers are illustrative.

Expected value in plain words

The expected value (EV) of a game is the probability-weighted average payout. Multiply each possible payout by its probability and add the results. If you could play the game thousands of times, your average payout per play would settle close to the EV. That is why the EV is called the fair price: if you pay exactly the EV, you neither win nor lose on average.

Three consequences follow, and they are worth saying in an interview. First, if you can buy a game below its EV, you have a positive edge, and if you must pay more than the EV, you lose on average. Second, the EV is a long-run average, not a prediction of one play: a single die never shows 3.5. Third, EV is linear. The EV of a sum is the sum of the EVs, and 100 plays are worth 100 times one play. That last fact makes many puzzles much shorter than they first appear.

In formula form, EV = Σ payout × probability. In a spreadsheet the whole sum is one function: =SUMPRODUCT(payouts,probabilities). SUMPRODUCT multiplies the two ranges row by row and adds the products, which is exactly the definition of expected value.

For equally likely outcomes, the EV is just the average. For a fair die that is (1 + 6) ÷ 2 = 3.5, because the faces are evenly spaced. Saying "(1 + 6) / 2" is faster than adding six terms, and it shows the interviewer you think in structure.

Game 1: one fair die

You roll one fair die and are paid the number in USD. Each face from 1 to 6 has probability 1/6, so EV = (1 + 2 + 3 + 4 + 5 + 6) ÷ 6 = 21 ÷ 6 = 3.50. If someone offers you the game for USD 3, you would play: your expected profit is 0.50 per roll. At USD 4 you would decline, since you expect to lose 0.50 per roll.

The same logic gives you a quick feel for risk. The payout varies a lot around 3.5: the variance of one die is 35/12 ≈ 2.92 and the standard deviation about 1.71. You do not need that number today, but later in the course it comes back when you size bets, because an edge only helps you if you can survive the swings.

Game 2: the option to reroll

Now the interviewer adds a twist. After the first roll you may roll once more, but if you do, you must keep the second roll. What is the game worth now? The key is that you decide after seeing the first roll, and the second roll, if you take it, is worth 3.5 on average. So you compare each first roll with 3.5.

  • Roll 4, 5 or 6: these beat 3.5, so you keep them. Their average is 5.
  • Roll 1, 2 or 3: these are below 3.5, so you reroll and expect 3.5.
  • Each branch happens with probability 3/6 = 1/2.

EV = 1/2 × 5 + 1/2 × 3.5 = 2.5 + 1.75 = 4.25. The option to reroll is worth 4.25 − 3.50 = 0.75 per game. Notice that an option can never make a game worse: in every branch you take the better of two values, so the EV can only rise or stay the same.

Keep or reroll? First roll versus the value of rolling again01234567face 1face 2face 3face 4face 5face 6first roll (USD paid)keep: beats 3.5reroll: 3.5 or lessvalue of a reroll = 3.5EV with option = 4.25
Figure 1. The reroll rule: faces above the dashed line (the 3.5 you expect from rolling again) are kept, faces at or below it are rerolled. Averaging the value you end up with gives 4.25.

The table below lays out the full calculation. The fourth column is the Game 1 EV term by term, and the last column shows the value you end up with under the reroll rule: the face itself if you keep it, or 3.5 if you reroll.

FacePayout (USD)ProbabilityPayout × probabilityDecision in Game 2Value you end up with
11.001/6 = 0.16670.1667reroll3.50
22.001/6 = 0.16670.3333reroll3.50
33.001/6 = 0.16670.5000reroll3.50
44.001/6 = 0.16670.6667keep4.00
55.001/6 = 0.16670.8333keep5.00
66.001/6 = 0.16671.0000keep6.00
Total1.00003.5000 (Game 1)average 4.25 (Game 2)

Two follow-up questions are popular in practice sets, and the same idea answers both. "What if you could see both rolls and keep the higher one?" That is a different game: the expected maximum of two dice is 161/36 ≈ 4.47, higher than 4.25 because you have more information. "What if you may reroll twice?" Work backwards: with one reroll left the game is worth 4.25, so on the first roll you keep only 5 or 6. EV = 2/6 × 5.5 + 4/6 × 4.25 = 14/3 ≈ 4.67. This backward induction, solving the last decision first, is the backbone of many stopping problems.

A common wrong answer to Game 2 is 4.47, the expected maximum of two rolls. It assumes you can look at the second roll before choosing. In Game 2 you must decide on the first roll before the second exists, so the threshold rule and 4.25 are correct.

Game 3: one card from a full deck

You draw one card from a standard 52-card deck and are paid its value: ace pays 1, number cards pay their number, and the 10, jack, queen and king each pay 10. Every rank has four cards, so the probability of each rank is 4/52 = 1/13. But the payouts are not evenly spaced any more, because four ranks share the payout 10. That is why the plain average of 1 to 10 (5.5) is wrong.

Weight each rank by its number of cards: total value of the deck = 4 × (1 + 2 + … + 9) + 16 × 10 = 4 × 45 + 160 = 340. Divide by 52 cards: EV = 340 ÷ 52 ≈ 6.54. In the sheet, =SUMPRODUCT(B16:B28,C16:C28)/SUM(B16:B28) does exactly this, and it keeps working if you change the deck, for example by removing the face cards.

RankCardsPayout (USD)Cards × payout
Ace41.004
242.008
343.0012
444.0016
545.0020
646.0024
747.0028
848.0032
949.0036
10410.0040
Jack410.0040
Queen410.0040
King410.0040
Total52340 → 340 ÷ 52 = 6.54

Card draw: probability of each payout, fair value and price0%5%10%15%20%25%30%35%12345678910each 1/13 = 7.7%4/13 = 30.8%fair value 6.54price 7.00you lose 0.46 a drawpayout in USD (10, jack, queen and king all pay 10)
Figure 2. Probability of each payout for one card. The tall bar at 10 pulls the fair value up to 6.54, but the offered price of 7.00 is still above it.

The final step in the lab is the trading decision. You are offered the card game at USD 7 per draw. Expected profit per draw = EV − price = 6.54 − 7.00 ≈ −0.46. Over 100 draws, by linearity, the expected profit is 100 × (6.54 − 7.00) ≈ −46.15 USD. The answer is "do not play at 7", and a strong candidate would add: "I would pay up to about 6.50, and I would happily sell this game to someone at 7."

Fair value of each game in USD02468One die roll3.50Die, one reroll option4.25Best of two, seen together4.47Die, two reroll options4.67One card draw6.54Price offered per card7.00expected payout (USD)
Figure 3. Fair values side by side. Each extra option or piece of information adds value, and the card game is worth more than any die game, but less than the 7.00 asked for it.

The formulas behind the lab

Here are the four answers with the formulas the Coach accepts. Each one is a direct translation of the reasoning above.

CellWhat it calculatesFormulaResult
B10Fair price of one die roll=SUMPRODUCT(B3:B8,C3:C8)3.50
B12EV with one optional reroll=SUMPRODUCT((B3:B8>B10)*B3:B8*C3:C8)+SUMPRODUCT((B3:B8<=B10)*C3:C8)*B104.25
B30Fair price of one card draw=SUMPRODUCT(B16:B28,C16:C28)/SUM(B16:B28)6.54
B32Expected profit of 100 draws at the price in B31=100*(B30-B31)−46.15

The Game 2 formula looks long, but read it in two halves. The first SUMPRODUCT adds payout × probability only for faces above B10, because (B3:B8>B10) turns into 1 for kept faces and 0 for the others. The second SUMPRODUCT adds the probabilities of the faces you reroll and multiplies that by B10, the value of rolling again. Kept faces plus rerolled faces cover every outcome exactly once.

If the long formula feels fragile, use a helper column in your own copy: in D3 write =MAX(B3,$B$10), fill it down to D8, then =SUMPRODUCT(D3:D8,C3:C8) also returns 4.25. In Excel 365 you can skip the helper with =SUMPRODUCT(IF(B3:B8>B10,B3:B8,B10),C3:C8). All three versions give the same answer.

How to do it in Excel, step by step

You can follow these steps in the lab above or in any copy of Excel or Google Sheets.

  1. List the outcomes in one column and the payouts next to them (B3:B8 for the die). Put the probabilities in the next column. Type =1/6 rather than 0.1667, so the probabilities add up to exactly 1.
  2. Check the probabilities first: in an empty cell type =SUM(C3:C8). If it does not show 1, one probability is wrong.
  3. In B10 type =SUMPRODUCT(B3:B8,C3:C8) and press Enter. You should see 3.50.
  4. In B12 build the reroll value. Type =SUMPRODUCT((B3:B8>B10)*B3:B8*C3:C8), then add +SUMPRODUCT((B3:B8<=B10)*C3:C8)*B10. Press Enter: 4.25.
  5. To inspect the formula, select B12 and open Formulas › Formula Auditing › Evaluate Formula. Click Evaluate repeatedly to watch the 1s and 0s appear.
  6. For the deck, list the 13 ranks with 4 cards each in column B and the payouts in column C. In B30 type =SUMPRODUCT(B16:B28,C16:C28)/SUM(B16:B28): 6.54.
  7. In B32 type =100*(B30-B31). Format B10:B32 as currency with Home › Number Format › Currency (or Ctrl+Shift+4) so the negative profit is easy to read.
  8. Test your model: change B31 to 6 and the expected profit should turn positive (+53.85). Change the payout of the jack, queen and king to 11, 12 and 13 and the fair value should rise to 7.00. If both reactions make sense, your formulas are general.
Keep inputs and formulas visibly apart: inputs (payouts, probabilities, the price) in one colour, results in another. When an interviewer changes the game, you change one input and the whole sheet answers.

How to answer out loud

Many candidates know the math but lose points because the reasoning stays in their head. A clear spoken structure works for all three games:

  1. Define the payout and the probabilities. "The die pays 1 to 6, each with probability one sixth."
  2. Compute the EV with a shortcut. "Evenly spaced, so the average is (1 + 6) / 2 = 3.5."
  3. Handle decisions by comparing with the value of continuing. "If I may reroll, rolling again is worth 3.5, so I keep 4 and above."
  4. Compare with the price and state the action. "Fair value 6.54, price 7, so I lose about 46 cents a draw. I would not buy, but I would sell at 7."
  5. Sanity-check. "The option made the game worth more, not less, and the card value lies between 1 and 10, so the numbers are plausible."

Saying the threshold rule explicitly, keep when the current value beats the value of continuing, is the part that generalises. It is the same logic behind optimal stopping, option exercise and many market-making decisions later in the course.

Common mistakes and how to spot them

  • Adding payouts instead of weighting them. =SUM(B3:B8) gives 21, not 3.5. Spot it: the "price" is larger than the biggest payout. Fix it: multiply by the probabilities with SUMPRODUCT.
  • Using the expected maximum for the reroll game. 4.47 assumes you see both rolls. Spot it: your answer equals 161/36. Fix it: decide on the first roll by comparing it with 3.5.
  • Keeping a 3 because "3 is close to 3.5". Close does not matter, only above or below. A 3 is worth less than a reroll, so reroll it.
  • Averaging 1 to 10 for the card game. 5.5 ignores that four ranks pay 10. Spot it: your EV is below 6. Fix it: weight by the number of cards.
  • Forgetting to divide by the number of cards. =SUMPRODUCT(B16:B28,C16:C28) alone gives 340, the value of the whole deck.
  • Getting the sign of the profit backwards. Profit = what you expect to receive − what you pay. A positive answer at a price above fair value is a red flag.
  • Probabilities that do not add up to 1. Typing 0.17 six times gives 1.02 and a slightly wrong EV. Use fractions such as =1/6 and check with SUM.

Quant trading interview math course: expected value of dice and card games, probability puzzles and market making in Excel
The course turns classic probability and trading practice questions into spreadsheet labs, starting with the expected value of simple games.

Quick reference: functions and shortcuts used in this lesson

Everything in the three games needs only these building blocks.

Function / shortcutWhat it does hereExample
SUMPRODUCTMultiplies two ranges row by row and adds the results: the expected value=SUMPRODUCT(B3:B8,C3:C8)
(range>value)Turns a comparison into 1 (TRUE) and 0 (FALSE) inside SUMPRODUCT, so only some rows count=SUMPRODUCT((B3:B8>B10)*C3:C8)
SUMAdds a range, here the number of cards=SUM(B16:B28)
MAXPicks the better of two branches in a helper column=MAX(B3,$B$10)
AVERAGEQuick EV check when all outcomes are equally likely=AVERAGE(B3:B8)
SUMPRODUCT(...)/SUM(...)Weighted average with counts instead of probabilities=SUMPRODUCT(B16:B28,C16:C28)/SUM(B16:B28)
F4Toggles absolute references such as $B$10 while editing a formulaClick B10 in the formula bar, press F4
F9 (in the formula bar)Evaluates the selected part of a formula so you can check one pieceSelect (B3:B8>B10), press F9, then Esc
Ctrl+DFills a formula down a columnSelect D3:D8, press Ctrl+D
Formulas › Evaluate FormulaSteps through a long formula one calculation at a timeSelect B12

Real-world uses

  • Interview preparation. Pricing a game, then pricing it again with an added option, is a common practice format. Checking your mental answers against a sheet builds the confidence to answer quickly without a calculator.
  • Pricing any bet or promotion. A raffle, a "spin the wheel" discount or a bonus scheme is a game with payouts and probabilities. SUMPRODUCT tells you what it costs on average before you offer it.
  • Valuing a decision you can delay. The reroll is an option: you wait, see information, then choose. The same reasoning values a project you can abandon, a contract you can extend or a test you can repeat.
  • Comparing a quote with fair value. Whenever someone quotes a price for an uncertain payout, the first question is the same as in Game 3: what is the EV, and how far is the price from it?
  • Building intuition for later topics. Expected value is the input to Kelly sizing, option payoffs and market-making P&L. Getting it right on dice makes the harder lessons much easier.

What you will build in the rest of this course

This first lesson is free. The remaining 19 lessons are part of the paid course (USD 9.90, one-time) and each one is a hands-on lab with the same Coach that checks your formulas, gives hints and explains typical mistakes.

Conditional Probability Puzzles: Bayes Tables for Coins and Cards. You solve two classic puzzles with a Bayes table: which coin did you draw after five heads in a row, and what is on the hidden side of a card? The table turns a confusing puzzle into a few multiplications and one division.

Expected Stopping Times: the Geometric Distribution and Two Wins in a Row. You build the step table of the geometric distribution, read off the chance of a win within k rolls and work out the expected wait for a six, and for two sixes in a row, which is longer than most people guess.

Variance and Kelly Sizing: How Much to Bet on an Edge. You measure the edge and the risk of a 2-to-1 bet, size it with the Kelly criterion and see in a growth table why betting twice Kelly earns almost nothing and betting more loses money.

Fair Value of Option Payoffs on Dice and Coins: Calls, Puts and Parity. You price a call and a put on a die roll, check put-call parity and value a call on a two-flip coin tree, building directly on the max-of-two-branches idea from today.

Market Making: Quoting a Spread, Tracking Inventory and Marking the P&L. You replay twelve customer trades against your two-sided quote and track the fill prices, your running inventory, cash and marked-to-market P&L, plus a chart of the inventory you had to carry.

Estimation Questions (Fermi): Break It Down, Bound It, Round It. You turn an estimation question into a chain of factors with low, base and high cases, find the midpoint on a log scale, round to a power of ten and size the revenue.

Mental-Math Drills Checked by Formulas: Percentages, Compounding and a P&L Chart. You check mental-math answers for percentage changes, compounding against the rule of 72 and a cumulative P&L, and chart the P&L path of a simulated strategy.

Summary

Expected value is the probability-weighted average payout and the fair price of a game. For a fair die it is 3.5. An option to reroll is valued by comparing each first roll with the value of continuing, which lifts the game to 4.25. A card draw needs weights by number of cards and is worth about 6.54, so paying 7 per draw costs about 46 dollars over 100 draws. In Excel, SUMPRODUCT does the weighting in one step, and a comparison inside SUMPRODUCT handles the decision rule.

Now scroll up to the lab and price the three games yourself. The Coach checks every cell, also with changed payouts and prices, so you know your formulas really work and not just for these numbers.

Frequently asked questions

How do you calculate the expected value of a die roll?

Multiply each face by its probability of 1/6 and add the results, which gives 3.5 for a fair six-sided die. Because the faces are evenly spaced, the shortcut (1 + 6) / 2 gives the same answer.

What is the expected value of a die if you can reroll once?

Keep the first roll if it is 4, 5 or 6 and reroll 1, 2 or 3, because a reroll is worth 3.5 on average. The expected value is 1/2 × 5 + 1/2 × 3.5 = 4.25.

What is the expected value of drawing one card if face cards count as 10?

The deck is worth 4 × (1 + 2 + ... + 9) + 16 × 10 = 340 in total, so one card is worth 340 / 52 ≈ 6.54 on average. The plain average of 1 to 10 is wrong because four ranks pay 10.

How do I calculate expected value in Excel?

Put the payouts in one column and the probabilities in the next, then use =SUMPRODUCT(payouts,probabilities). If you have counts instead of probabilities, divide by the total count: =SUMPRODUCT(counts,payouts)/SUM(counts).

Why is expected value called the fair price of a game?

If you paid exactly the expected value for every play, your average profit over many plays would be zero. Paying less gives you a positive edge on average and paying more gives a negative one.

What is the difference between rerolling a die and keeping the best of two rolls?

With a reroll you must decide before you see the second roll, so the game is worth 4.25. If you can see both rolls and keep the higher one, you have more information and the game is worth 161/36 ≈ 4.47.

Keep going: Quant Trading Interview Math: Expected Value, Probability Puzzles & Market Making

This free lab is lesson 1 of 20. Unlock the other 19 hands-on labs, the final exam and your certificate for a one-time $9.90.

  1. Conditional Probability Puzzles: Bayes Tables for Coins and Cards
  2. Expected Stopping Times: the Geometric Distribution and Two Wins in a Row
  3. Variance and Kelly Sizing: How Much to Bet on an Edge
  4. Fair Value of Option Payoffs on Dice and Coins: Calls, Puts and Parity
  5. Market Making: Quoting a Spread, Tracking Inventory and Marking the P&L
  6. Estimation Questions (Fermi): Break It Down, Bound It, Round It
  7. Mental-Math Drills Checked by Formulas: Percentages, Compounding and a P&L Chart
  8. Two-Dice Distributions: Ways to Roll a Sum, the Higher Die and the Double-Six Question
  9. Linearity of Expectation: Distinct Faces, Collecting Every Face, Shared Birthdays and Runs
  10. Random Walks to a Target: Reach-Before-Zero Probabilities and Expected Duration
  11. Order Statistics: Expected Max and Min of Several Dice, Buying Extra Rolls and Ranked Uniform Draws
  12. Correlated Positions: Covariance, the Minimum-Variance Hedge Ratio and a Hedged Sharpe Ratio
  13. How Sure Is Your Edge? Binomial Tails, the Normal Approximation and Trades Needed
  14. Optimal Stopping by Backward Induction: Up to Six Rolls, a Cost per Roll and the Value Curve
  15. Replication and Multi-Step Trees: Delta, Cash Position and a Three-Step Call
  16. Adverse Selection and Skew: Setting the Spread When Some Traders Know More
  17. Arbitrage Checks: FX Triangles, Put-Call Parity Deviations and a Butterfly Spread
  18. Recursive Expectations: Roll Until a Six, Alternating Flips, a Coin Run and the Capped Doubling Game
  19. Final Mock Interview Project: Price, Risk-Check and Sell a Two-Card Game

Buy course — $9.90 See the full course