Quant puzzles, solved step by step
- Puzzles
- 100
- Traced to a firm
- 71
- Topics
- 12
- Hard
- 30
007You roll a fair six-sided die six times. What is the expected number of different faces that appear?Quant tradingProp trading firms
Try it first
Your estimate before any working?
Show the worked solution
About 3.99. Give each face an indicator that equals 1 if that face appears at least once. A given face is missed on all six rolls with probability (5/6) to the 6th, about 0.335, so it appears with probability 0.665. The expected count of distinct faces is the sum of the six indicators' expectations: 6 x 0.665 = 3.99. No case listing is needed.
Why not list the cases?
You could work out the chance of exactly one, two, up to six distinct faces and average them. It works, but it needs Stirling numbersCounts of the ways to split a set of items into a given number of non-empty groups; they appear when counting surjections. or a lot of careful counting, and it is easy to slip. Linearity of expectation lets you ignore how the faces interact: the expected total of several indicators is the sum of their expectations, whether or not they are independent. Here the six indicators are clearly dependent, since seeing many faces leaves fewer rolls for the others, and it does not matter at all.
Each of the six faces appears at least once with probability 66.5%, so the expected number of distinct faces is six times that, 3.99; the exact distribution peaks at four distinct faces and has all six only 1.5% of the time. How does the indicator trick work step by step?
Think of a teacher counting how many of six friends turn up to a party. Instead of listing every guest list, she asks for each friend separately how likely that friend is to come, then adds. Write the count as I1 + I2 + ... + I6, where I_k is 1 if face k appears; take expectations; each E[I_k] is just the probability face k appears. Face k is missed on one roll with probability 5/6, on all six with (5/6) to the 6th, 0.335. So each indicator averages 0.665 and the total averages 3.99.
The relationshipD the number of distinct faces seen in six rolls (5/6)^6 the chance a given face never appears in six rolls What it says in wordsThe expected number of distinct faces is six times the chance that any one face appears.Where does this pattern reappear?
The same shape answers how many distinct birthdays a group of n people has, how many of n hash buckets get used, and how many different stocks a random sample of trades touches. For n faces and n rolls, the expected share of faces seen is 1 - (1 - 1/n) to the n, which tends to 1 - 1/e, about 63.2%, as n grows. Six faces give 66.5%, already close. The exact enumeration of all 46,656 rolls gives a mean of 3.9906, the same number.
Where candidates lose it
The instinctive answer is 6, or something close to it, because six rolls over six faces feels like one of each. In reality repeats are the norm, and all six different faces happen in under 2% of runs.
The costlier trap is starting to enumerate cases under time pressure. Candidates who try to list exactly four distinct faces lose minutes. Say indicator variables and linearity in the first sentence.
What the interviewer asks next
- What is the expected number of faces that appear exactly once?
- How many rolls do you need, on average, to see all six faces?
- What is the variance of the number of distinct faces?
008Z1 and Z2 are independent standard normal random variables. What are the mean and variance of Z1 squared + Z2 squared, and what is the probability that it exceeds 2?Quant researchQuant trading
Try it first
What is P(Z1 squared + Z2 squared > 2)?
Show the worked solution
Mean 2, variance 4, and the probability of exceeding 2 is e to the -1, about 36.8%. Each Z squared has mean 1 and variance 2, so the sum has mean 2 and variance 4. The sum is a chi-squared with two degrees of freedom, which happens to be exactly an exponential with mean 2. Its tail beyond t is e to the -t/2, so beyond 2 it is e to the -1.
How do you get the mean and variance without the distribution?
E[Z squared] is the variance of Z, which is 1. For the variance of Z squared you need the fourth moment: E[Z to the 4] is 3 for a standard normal. So Var(Z squared) = 3 - 1 = 2, and because Z1 and Z2 are independent the variances add, giving a mean of 2 and a variance of 4. Say the fourth moment of 3 aloud; it is the number interviewers check you know, and it is why normal kurtosis is quoted as 3.
The sum of two squared standard normals has density one half times e to the minus x over 2, an exponential with mean 2 and variance 4, and the area beyond 2 is exactly e to the minus 1, about 36.8%. Why is this particular sum exponential?
Think of a dart thrown at a board where both the horizontal and vertical errors are independent standard normals. The joint density depends only on the distance from the centre, so the dart's direction is uniform and all the information is in the radiusThe distance of the point (Z1, Z2) from the origin, the square root of Z1 squared plus Z2 squared.. Switching to polar coordinates, the chance that the squared distance exceeds t is e to the -t/2, which is the tail of an exponential with mean 2. At t = 2 the answer is e to the -1.
The relationshipr the distance of (Z1, Z2) from the origin \frac{1}{2\pi} e^{-r^2/2} the joint density of two independent standard normals e^{-t/2} the tail of an exponential distribution with mean 2 What it says in wordsIn polar coordinates the angle integrates out and the radius gives an exponential tail.Why is 50% the tempting wrong answer?
Because 2 is the mean and people read the mean as the middle. For a right-skewed distribution the mean sits above the median, so less than half the mass lies beyond it; here the median is 2 ln 2, about 1.39. A simulation of 200,000 pairs gives a mean of 1.997, a variance of 3.96 and a tail share of 0.368, matching the exact results. The same polar trick is what powers the Box-Muller method for generating normal random numbers.
Where candidates lose it
The common wrong answer is 50%, from treating the mean as the median. Chi-squared variables are skewed to the right, and the skew is largest with few degrees of freedom.
The second trap is the variance. Candidates who say the variance of Z squared is 1 have confused it with the variance of Z. The fourth moment of 3 is the step, and missing it gives a variance of 2 for the sum instead of 4.
What the interviewer asks next
- What is the distribution of the square root of Z1 squared + Z2 squared?
- How would you use this to generate normal random numbers from uniforms?
- What are the mean and variance of a chi-squared with k degrees of freedom?
009A stock trades at 100 and in one period will be either 120 or 80. Interest rates are zero. Price a call option struck at 100 by building a portfolio of shares and borrowing that copies it, and explain why the real-world probability of the up move does not appear in the price.Options market makingQuant trading
Try it first
If you believe the stock goes up with probability 90%, what is the call worth?
Show the worked solution
The call is worth 10. It pays 20 if the stock goes to 120 and 0 at 80. Half a share pays 60 or 40, so half a share with a loan of 40 pays 20 or 0, exactly the call. That portfolio costs 50 - 40 = 10 today. If the call traded at any other price, you could buy the cheap one and sell the dear one for a riskless profit, so no probability is needed.
How do you build the copy?
Match the swing first. The call's payoff moves by 20 between the two states while the stock moves by 40, so the copy needs 20/40 = 0.5 of a share: that ratio is the option's deltaHow much an option's value changes for a one-unit change in the underlying price; here, the number of shares that copies the option.. Half a share is worth 60 or 40 at the end, which is 40 more than the call in both states. Borrow 40 today, repay 40 at the end with zero interest, and the copy pays exactly 20 or 0.
A call struck at 100 on a stock that moves to 120 or 80 is copied by half a share and a loan of 40, which pays 20 or 0 exactly as the call does and costs 10 today, so the call is worth 10 with no probability used. Why does the chance of the up move not matter?
Think of a shop selling a bundle of two items that you can also buy separately. The bundle's price is pinned by the parts, whatever you think about how useful the items are. The call is a bundle of half a share and a loan; the share price already reflects everyone's views about the up move, so the option inherits them and adds none of its own. A 90% view is a reason to hold the stock itself, not a reason to pay more for the call than its parts cost.
The relationship\Delta shares held in the copy B the amount borrowed, 0.5 x 80 - 0 = 40 q the risk-neutral weight on the up state, fixed by the prices, not by beliefs What it says in wordsThe copy's cost gives the price, and the same price is an average of the payoffs using weights set by today's stock price.What would you do if the call traded at 12?
Sell the dear thing and buy the cheap one. Sell the call for 12, buy half a share for 50 and borrow 40, a net cash inflow of 2 today; at the end the portfolio pays exactly what you owe on the call in either state. The 2 is kept whatever happens. The weight q = 0.5 that reproduces the price is called the risk-neutral probability, but it is a pricing weight backed out of the stock price, not a forecast. Say that distinction; interviewers listen for it.
Where candidates lose it
The trap is pricing the call as an expected payoff under your own view: 90% of 20 is 18. That price can be arbitraged against the stock, so nobody could trade it for long, and the interviewer wants to hear that the copying portfolio pins the price.
The second loss is getting 10 by assuming a 50% chance. The number is right by coincidence of the symmetric tree; ask yourself what happens with an up move to 130, and the risk-neutral weight changes to 1/2.5 = 0.4.
What the interviewer asks next
- Price the put struck at 100 and check put-call parity.
- What changes if interest rates are 5% for the period?
- The stock can go to 130 or 80 instead. Price the call again.
011An urn starts with one red ball and one blue ball. Each turn you draw a ball at random, put it back, and add another ball of the same colour. After ten draws, what is the probability that exactly five of the draws were red?Quant researchQuant trading
Try it first
Your first instinct for P(exactly five reds)?
Show the worked solution
1/11, about 9.1%. Any particular sequence with five reds and five blues has probability 5! x 5! / 11!, whatever the order, because the numerators just count up the reds and blues separately. There are 10 choose 5 = 252 such sequences, and 252 x 5! x 5! / 11! = 1/11. The same algebra gives 1/11 for every count from 0 to 10.
Why is this not ten coin flips?
Think of a new café and its first customers. If the first few visitors like it and bring friends, it fills up; if they do not, it stays empty. Early luck compounds. In this urn each red draw adds a red ball, so it raises the chance of the next red: the draws reinforce each other, and runs that start lopsided tend to stay lopsided. That spreads the count of reds far more widely than independent coin flips, which bunch around five.
After ten draws from an urn that starts with one red and one blue ball and adds a ball of the drawn colour each time, every count of reds from 0 to 10 has probability 1/11, a flat line, while ten fair coin flips would pile up at five with 24.6%. Why does the order of the draws not matter?
Write out one sequence, say five reds then five blues. The chances are 1/2, 2/3, 3/4, 4/5, 5/6 for the reds, then 1/7, 2/8, 3/9, 4/10, 5/11 for the blues. Shuffle the order and the denominators are still 2 up to 11, while the red numerators still run 1 to 5 and the blue ones 1 to 5, so every arrangement of five reds and five blues has the same probability, 5! x 5! / 11!. Draws whose joint probability ignores order are called exchangeableA sequence of random variables whose joint distribution does not change when you reorder them, even though they need not be independent., and that is the property doing the work.
The relationship\binom{n}{k} the number of orders in which k reds can appear k!(n-k)!/(n+1)! the probability of any one such order What it says in wordsThe number of orders times the probability of each order is always one over n plus one.Is there a picture that makes 1/11 obvious?
Yes. This urn behaves exactly as if nature first picked a hidden red probability p uniformly between 0 and 1, and then flipped ten independent coins with that p. Averaging a binomial over a uniform p gives every count the same weight, 1/(n + 1). The urn is also a small model of momentum and of market share: an early lead makes further gains more likely, so the final split is highly uncertain, even though each step looks like a fair draw.
Where candidates lose it
The fast wrong answer is 252/1024, about 24.6%, from treating the draws as independent coin flips. The reinforcement is the whole question, and it spreads the outcomes out rather than pulling them to the middle.
The second trap is trying to add up paths through a tree of ten levels. Spot that every order of a given mix has the same probability, and the problem collapses to one line.
What the interviewer asks next
- What is the probability the eleventh draw is red, given that five of the first ten were red?
- What if the urn starts with two red and one blue ball?
- As the number of draws grows, what does the fraction of red balls converge to?
015You roll three fair dice. Is a total of 9 or a total of 10 more likely, given that each can be written as exactly six unordered combinations of three faces?Quant tradingProp trading firms
Try it first
Which total is more likely?
Show the worked solution
10 is more likely: 27 ways out of 216 against 25. The equally likely outcomes are the 216 ordered rolls, not the unordered combinations. A combination of three different faces covers six ordered rolls, one with a pair covers three, and a triple covers one. Total 9 includes 3 + 3 + 3, which counts once, and one fewer all-different combination, so it loses two orderings to 10.
Why are combinations the wrong thing to count?
Think of dealing two cards and asking whether a pair of kings or a king with a queen is more likely. There is one combination of each, but king and queen can arrive in either order while two kings are just two kings. Probability comes from counting outcomes that are equally likely, and with dice those are the ordered rolls: first die, second die, third die, 6 x 6 x 6 = 216 of them. Unordered combinations bundle different numbers of those outcomes, so counting combinations gives the wrong weights.
Totals of 9 and 10 each have six unordered combinations, but weighting each combination by its number of orderings gives 27 of 216 rolls for 10 against 25 for 9, mostly because 9 includes the triple 3, 3, 3, which happens only one way. How do you count the orderings fast?
Classify each combination by its repeats. Three different faces give 3! = 6 orders, a pair gives 3 orders, one for each position of the odd die, and a triple gives 1. For 9: 1 2 6, 1 3 5 and 2 3 4 are all different, 18; 1 4 4 and 2 2 5 are pairs, 6; 3 3 3 is a triple, 1; total 25. For 10: 1 3 6, 1 4 5 and 2 3 5 give 18; 2 2 6, 2 4 4 and 3 3 4 give 9; total 27. So 10 comes up 12.5% of the time and 9 only 11.6%.
The relationship6, 3, 1 the orderings of an all-different, a pair and a triple combination 216 the ordered outcomes of three dice What it says in wordsWeight each combination by its orderings and 10 beats 9 by two rolls in 216.Is there a shortcut that avoids listing?
Yes: symmetry. Replacing each face x by 7 - x maps a total of t to 21 - t, so the distribution of three dice is symmetric about 10.5, and 10 and 11 are the two most likely totals, each 27/216. Anything further from 10.5, including 9, must be less likely or equal; a quick count confirms it is 25. Historically this is the question gamblers put to Galileo, who answered it by counting ordered outcomes, which is still the method.
Where candidates lose it
The trap is the question's own framing: six combinations each invites the answer that the totals are equally likely. The interviewer wants you to reject the framing, not accept it.
The second loss is listing all 216 rolls, or writing out every ordering. Classifying by repeats, six, three or one, gets both totals in under a minute.
What the interviewer asks next
- What is the most likely total with four dice, and its probability?
- What is P(total is 9) with two dice, and why does 9 behave differently?
- How many ordered outcomes of three dice sum to 7?
040Game: roll a fair die and receive its face in rupees; whenever you roll a six you also roll again and add the next result, with no limit on repeats. What is the expected payout of the game?Quant tradingOptions market making
Try it first
What is the game worth?
Show the worked solution
Rs 4.20. Every roll pays its face, averaging 3.5, and with probability 1/6 the game then starts again, worth the same V. So V = 3.5 + V/6, which gives (5/6)V = 3.5 and V = 4.2. A second route agrees: the number of rolls averages 1/(5/6) = 1.2, and each averages 3.5, so 1.2 x 3.5 = 4.2.
Why write the game in terms of itself?
A pass that gets a free renewal each time you use it on a lucky day is worth its first use plus, on lucky days, another pass exactly like it. When a game can repeat with no memory, the value after the repeat is the value of the whole game, so one equation replaces an infinite sum. Here, after a six you are paid 6 and then face precisely the game you started with, worth V.
Faces 1 to 5 end the game, and a six pays 6 and restarts the same game, so V = (5/6) x 3 + (1/6) x (6 + V), which solves to V = 4.2; the number of rolls averages 1.2, and 1.2 x 3.5 gives the same 4.2. How do you set up the equation without slipping?
Condition on the first roll. With probability 5/6 it shows 1 to 5, averaging 3, and you stop. With probability 1/6 it shows 6: you collect 6 and then expect V more. So V = (5/6) x 3 + (1/6) x (6 + V), which simplifies to V = 3.5 + V/6, and V = 3.5 x 6/5 = 4.2. The form 3.5 + V/6 is worth saying: every roll pays 3.5 on average, and one time in six you get another go at the whole game.
The relationshipV expected payout of the game, in rupees 3 average of faces 1 to 5 6 + V payout after a six: the six itself plus a fresh game What it says in wordsThe game's value is one roll's average plus a one-in-six chance of the whole game again.Check by counting rolls. The chance a roll triggers another is 1/6, so the number of rolls averages 1/(1 - 1/6) = 1.2, and each roll averages 3.5 whatever came before, giving 1.2 x 3.5 = 4.2. Summing the series directly, k sixes and then a stop, also lands on 4.2, but the recursion gets there in two lines. The limitation to name if asked to price it: 4.2 is a fair value for one play; the payout has a long right tail, since two sixes in a row, one time in 36, already pay at least 13.
Where candidates lose it
The usual loss is capping the chain: adding one re-roll, 3.5 + 3.5/6 = 4.08, and stopping. The re-roll can be a six too, and the question says there is no limit.
The second is writing V = 3.5 + V without the 1/6, which has no solution, or forgetting the six itself is paid before the restart. Condition on the first roll and write each branch in full.
What the interviewer asks next
- What would you pay to play if a six pays nothing but gives a re-roll?
- What is the probability the payout exceeds 12?
- Now a one ends the game with zero payout. What is the game worth?
046I offer you an even-money bet on either of two events. Which is more likely: at least one six in four rolls of one die, or at least one double six in 24 rolls of a pair of dice? Which side do you take, and what is your edge per rupee?Quant tradingProp trading firms
Try it first
Which event is more likely?
Show the worked solution
At least one six in four rolls is more likely, 51.8% against 49.1%, so take that side. The chance of no six in four rolls is (5/6)^4 = 625/1296, and the chance of no double six in 24 rolls is (35/36)^24. At even money the six earns about 3.5 paise per rupee staked; the double six loses about 1.7 paise and needs 25 rolls to become favourable.
Why does the obvious 2/3 come out the same for both bets?
The old gamblers' shortcut, sometimes called the rule of proportion, says that if one try succeeds with chance p, then n tries succeed with chance n times p. Four rolls at 1/6 gives 4/6, and 24 rolls at 1/36 gives 24/36, the same 2/3. This puzzle is the one the Chevalier de Mere is said to have brought to Pascal, because his winnings disagreed with the shortcut. Adding chances only works for events that cannot happen together, and two sixes in four rolls can. The shortcut counts a hand with two sixes twice, and that is why it breaks down completely after seven rolls, where it would claim 7/6.
A family checking the weather forecast makes the same slip: three days at a 40% chance of rain do not make a 120% chance of a wet weekend. The right question is the chance that it stays dry on all three days, 0.6 cubed, about 22%, so rain on at least one day is about 78%.
At least one six in four rolls of a die happens 51.8% of the time and at least one double six in 24 rolls of two dice happens 49.1% of the time, so the first bet clears even money and the second does not, although the rule of proportion gives two thirds for both. How do you compute each chance in your head?
Go through the complement. At least one success is one minus the chance that every try fails, and independent failures multiply. No six in four rolls is (5/6)^4 = 625/1296, which is just under one half, so the six wins 671/1296, or 0.5177. For the double six, use the approximation that (1 - 1/36)^24 is close to e to the power -24/36, which is e^(-2/3), about 0.513; the exact figure is 0.5086, so the double six comes up only 0.4914 of the time.
The relationship5/6 the chance one roll is not a six 35/36 the chance one roll of two dice is not a double six e^{-24/36} the approximation (1 - 1/n)^m close to e^{-m/n} when 1/n is small What it says in wordsThe chance of at least one success is one minus the chance of failing every time.What edge does each side carry at even money?
At even money you win a rupee with probability p and lose a rupee otherwise, so the expected gain per rupee is p - (1 - p) = 2p - 1. The six gives 2 x 0.5177 - 1 = +0.0355, about 3.5 paise per rupee, while the double six gives -0.0172. That is a thin edge: over 100 bets of Rs 1 the expected profit is about Rs 3.55 with a standard deviation near Rs 10, so it takes thousands of bets before the edge shows reliably. The break-even for the double six is the smallest n with (35/36)^n below one half, which is 25 rolls, giving 0.5055. The limitation: the dice must be fair and independent; any bias in the dice swamps an edge this size.
Where candidates lose it
The common loss is multiplying tries by chance and declaring the two bets equal at 2/3. The interviewer is waiting to see whether you notice that the formula can exceed one, which proves it is wrong, and switch to the complement.
The second is getting the probabilities right and then picking a side without stating the edge. On a trading desk the question is not only which side but how much it is worth: about 3.5 paise per rupee for the six, and a loss of about 1.7 paise for the double six.
What the interviewer asks next
- How many rolls of three dice do you need before at least one triple six is better than even money?
- I offer you 11 to 10 on the double six in 24 rolls. Do you take it?
- How much of your bankroll would you stake per bet on the single six?
049Which is larger, e to the power pi or pi to the power e? Prove it without a calculator.Quant researchQuant trading
Try it first
Which way does it go?
Show the worked solution
e^pi is larger: about 23.14 against 22.46 for pi^e. Take logs of both and divide by e x pi, which turns the question into comparing ln e / e with ln pi / pi. The function ln x / x rises up to x = e and falls after it, so its value at e beats its value at any other number, pi included. Undo the steps and the order holds.
How do you turn two awkward powers into one comparison?
When two people race on different tracks, you compare them by converting to the same distance. Here the base and the exponent both differ, so convert each number into a common form. Take logarithms and divide by e x pi: e^pi against pi^e becomes ln e / e against ln pi / pi, the same function evaluated at two points. Logs and division by a positive number both preserve order, so whichever side wins the new comparison wins the original.
The relationship? the unknown direction of the inequality, the same at every step \ln x / x the function whose largest value settles the question What it says in wordsTaking logs and dividing by e times pi turns the question into one function compared at e and at pi.Why is ln x / x largest at e?
Differentiate: the derivative of ln x / x is (1 - ln x) / x squared. It is positive while ln x is below 1 and negative once ln x passes 1, so the function climbs until x = e and falls after. Its largest value, 1/e, occurs only at x = e, so ln pi / pi must be smaller, and therefore e^pi beats pi^e. Equivalently, x^(1/x) peaks at e with value 1.4447, while pi^(1/pi) is 1.4396.
The curve x to the power 1/x reaches its maximum of 1.4447 at x = e and has already fallen to 1.4396 at x = pi, so raising both values to the power e times pi gives e^pi = 23.14, larger than pi^e = 22.46. There is a second proof that needs no calculus beyond one inequality. For any x other than zero, e^x is greater than 1 + x, because the exponential curve lies above its tangent line at zero. Put x = pi/e - 1, about 0.156: then e^(pi/e - 1) is greater than pi/e, so e^(pi/e) is greater than pi, and raising both to the power e gives e^pi greater than pi^e. Give that one if the interviewer asks for a proof without derivatives.
Notice how close the race is: the two values of x^(1/x) differ by only 0.0050, because pi sits near the flat top of the curve. That is why rough estimation is risky here and a proof is needed: 23.14 and 22.46 differ by about 3%. The same argument settles a whole family: for any two numbers a and b with e at most a, and a less than b, a^b is greater than b^a, which is why 3^4 = 81 beats 4^3 = 64.
Where candidates lose it
The common loss is answering pi^e because pi is the bigger base, or trying to estimate both numbers to a decimal and getting lost in the arithmetic. The gap is only about 3%, so mental estimates can land either way.
The second is proving it backwards: assuming the answer and manipulating until something true appears, without checking each step preserves the inequality. Say out loud that taking logs and dividing by the positive e x pi keep the order.
What the interviewer asks next
- Which is larger, 2^3 or 3^2, and why does the argument not apply to 2 and 4?
- Find all pairs of distinct positive integers with a^b = b^a.
- Which is larger, 99^100 or 100^99?
052You roll a fair die repeatedly until the first six appears. What is the expected sum of all the rolls before the six, not counting the six itself?Quant tradingProp trading firms
Try it first
Pick your answer before working it.
Show the worked solution
15. The first six takes 6 rolls on average, so 5 rolls come before it. Each of those rolls is known not to be a six, so it is uniform on 1 to 5 and averages 3. Expected count times expected size gives 5 x 3 = 15. The check: all rolls including the six average 6 x 3.5 = 21, and taking off the final six leaves 15.
How many rolls come before the six?
Picture waiting at a stop where each minute a bus arrives with chance 1 in 6. On average you wait 6 minutes, and the sixth is the one where it comes. The number of rolls up to and including the first six is geometric with mean 1/p = 6, so the number strictly before it is 5. That is the first factor. Most candidates get this far; the loss comes in the second factor.
A typical game has five non-six rolls before the stopping six, and each of those rolls averages 3 because it is known not to be a six, so the expected sum is 5 x 3 = 15; the full-sum check of 6 x 3.5 less the final 6 also gives 15. Why is each of those rolls worth 3 and not 3.5?
Because you are told something about them. Every roll before the stopping six is, by definition, not a six, so its distribution is the die conditioned on 1 to 5, which averages exactly 3. Using 3.5 gives 17.5, the most common wrong answer. It is the same slip as averaging the income of people who did not win a prize with everyone's income, prize winners included.
The relationshipN the number of rolls before the first six, mean 5 X | X not 6 a roll known not to be a six, uniform on 1 to 5 E the expected sum from any fresh start What it says in wordsExpected count times the expected size of each piece gives 15, and the one-step recursion confirms it.How do you check 15 a second way in the room?
Two checks, both fast. The recursion: with chance 5/6 the next roll is not a six, adds 3 on average and you are back where you started, so E = (5/6)(3 + E), which solves to 15. The full sum: Wald's identityFor a stopping time N that does not look into the future, the expected sum of N independent identical draws equals E[N] times the mean of one draw. applied to every roll including the six gives 6 x 3.5 = 21, and the last roll is always exactly 6, so the rest must average 15. Say both; the second one shows you understand why the conditional mean is 3.
Where candidates lose it
The trap is 17.5: the right count, 5, multiplied by the unconditional mean of a die. The interviewer set the question up so that the rolls you sum are selected, not random, and wants to see whether you notice.
The second trap is multiplying 6 rolls by 3.5 and stopping at 21, which includes the six the question told you to exclude. Say what is counted before you multiply.
What the interviewer asks next
- What is the expected sum if you do count the six?
- What is the expected sum of the rolls before the first time you roll a 1 or a 2?
- What is the expected number of rolls until two sixes in a row?
057Z is a standard normal random variable. What is the expected value of max(Z, 0), and what does that number tell you about the price of an at-the-money option?Quant researchQuant trading
Try it first
Roughly what is E[max(Z, 0)]?
Show the worked solution
1/sqrt(2 pi), about 0.399. Only the positive half contributes, and there you integrate z times the normal density. Because the derivative of the density is minus z times the density, the integral is simply the density's height at zero. So an at-the-money call on a normally distributed move is worth about 0.4 standard deviations of that move: roughly 0.4 x S x volatility x the square root of time.
Why is the answer not zero, and not one half?
Think of a shop that keeps the profit on good days and closes, losing nothing, on bad days. Its average day is better than the average of all days, because the bad days have been floored. max(Z, 0) throws away every negative outcome and keeps every positive one at its full size, so its mean is the positive half's contribution alone: the integral of z times the density from zero to infinity. That is not one half, which is only the chance of being positive; the size of each positive draw matters too.
The shaded area under z times the normal density on the positive side is exactly 0.399, the same as the density's peak height, so an at-the-money call on a normal move of one standard deviation is worth about 0.4, which for a Rs 1,000 stock at 20% volatility over three months is about Rs 40. How do you do the integral in one line?
Notice what differentiating the density gives. The derivative of e to the minus z squared over 2 is minus z times itself, so z times the density is the negative derivative of the density, and its integral from 0 to infinity is the density at 0 minus the density at infinity. The density at infinity is zero, and at zero it is 1/sqrt(2 pi). No tables, no substitution: the answer is 0.3989. Doubling it gives E[|Z|], about 0.798, which is the at-the-money straddle.
The relationshipphi(z) the standard normal density, e^(-z^2/2) / sqrt(2 pi) phi(0) the height of the density at its peak What it says in wordsThe expected positive part of a standard normal equals the height of the bell at its centre.What does it say about an at-the-money option?
If the stock's move to expiry is roughly normal with standard deviation S x vol x sqrt(T), an at-the-money call pays the positive part of that move. So its value is about 0.4 x S x vol x sqrt(T), the rule of thumb option traders use to price at-the-money options in their heads. For a Rs 1,000 stock at 20% volatility and three months, sqrt(T) is 0.5 and the call is about 0.399 x 1,000 x 0.2 x 0.5 = Rs 39.9; the Black-Scholes value with zero rates is Rs 39.88. The rule loosens for long maturities and high volatilities, where the lognormal skew matters.
Where candidates lose it
The two fast wrong answers are 0, from averaging Z itself, and 0.5, from confusing the probability of a positive draw with its expected size. Both come from answering before writing down what is being averaged.
The second loss is getting 0.399 and not connecting it to options, which is why the question is asked on a trading desk. Say the 0.4 rule in the same breath.
What the interviewer asks next
- What is E[max(Z, 1)]?
- What is the variance of max(Z, 0)?
- Using the rule, what is an at-the-money straddle worth on a Rs 500 stock at 30% volatility for one month?
