পরিমাণগত অর্থায়ন · বই 19 · ক্যারিয়ার

Interviews II: Markets, Trading Games and the Final Round

এই বইটি শুধু ইংরেজিতে পাওয়া যায়।

Interviews II: Markets, Trading Games and the Final Round · ক্যারিয়ার

2Making a Market

Giving a bid and an ask on anything, at once, and moving them for the right reason: the value, the distribution, who is on the other side, what their trade just told you and what you already hold. In every question a bid is the price at which you buy and an ask the price at which you sell. The stem fixes the width of your quote and what the other side does, so each has one answer you can check. The early questions take a couple of minutes, and the last ones are derivations.

Question 2.1 ★ QT, Trader, QR • market maker, hedge fund, crypto • junior

I roll three fair dice, and a contract pays their sum in dollars. Quote a bid and an ask exactly 1 apart, in steps of 0.5. A customer who has seen nothing then buys or sells one lot at your prices, choosing the side on a coin toss. What do you quote, and what do you expect to earn? Would a quote of 11 bid, 12 asked earn less on average?

Answer

Answer to Question 2.1.

Quote 10 bid, 11 asked, and expect to earn 0.5. A quote of 11 bid, 12 asked also earns 0.5 on average.

Each die averages 3.5, so the sum is worth 10.5. If the customer sells to you at 10, you gain 0.5 on average, and if they buy at 11, you gain 0.5. At 11 and 12, buying at 11 loses 0.5 and selling at 12 gains 1.5, and the average of the two is again 0.5. A customer whose side is a coin toss pays you half your width wherever the quote sits.

Classic wrong answer. Concluding that the position of a quote does not matter. It does not matter only because this customer ignores it. Someone who has worked out 10.5 would sell to you at 11 every time, and you would lose 0.5 on each trade.

Follow-up. How much risk are you taking for that 0.5? The sum has a standard deviation of 35/4≈2.96\sqrt{35/4} \approx 2.96, about six times your edge. One trade proves nothing. The edge shows up only over many trades.

Why it matters. Width pays you for uninformed flow, and the centre protects you against everyone else. Say both when you give a quote.

Question 2.2 ★ QT, Trader, QR • market maker, hedge fund • junior

I draw one card from a shuffled 52-card deck and look at it. A contract pays its rank, from ace at 1 to king at 13. Quote a bid and an ask exactly 2 apart, in steps of 0.5. I sell you one lot at your bid if the rank is below it, buy one lot at your ask if the rank is above it, and otherwise pass. Which quote loses the least on average, and how much does it lose? If you may choose any whole-number width, what is the narrowest that loses less than 1?

Answer

Answer to Question 2.2.

Quote 6 bid, 8 asked, and lose 30/13≈2.3130/13 \approx 2.31 on average. The narrowest whole-number width that loses less than 1 is 6, at 4 bid, 10 asked, which loses 12/13≈0.9212/13 \approx 0.92.

The ranks are equally likely and centred on 7, so the symmetric quote is best. At 6 and 8, the ranks 1 to 5 sell to you and lose you 5, 4, 3, 2 and 1, and the ranks 9 to 13 buy from you and lose you 1 to 5. That totals 30 over 13 ranks. The best quote at each width loses:

Width245612
Average loss2.311.541.230.920

Classic wrong answer. Looking for a quote that makes money. Someone who knows the rank trades only when you are wrong, so you can never profit. Only at 1 bid, 13 asked do you stop losing, and there nobody trades. Width is a price you set on being picked off.

Why it matters. This is the extreme case of adverse selection. When you suspect the other side knows, the question stops being “what is it worth?” and becomes “how much am I willing to pay to find out?”

Question 2.3 ★ QT, Trader, QR • market maker, hedge fund, crypto • junior

A fair die is rolled, and a contract pays the square of the result. Quote a bid and an ask exactly 2 apart, in steps of 0.5. A customer who has not seen the die buys or sells one lot, choosing the side on a coin toss. What do you quote?

Answer

Answer to Question 2.3.

Quote 14 bid, 16 asked. The contract is worth 91/6≈15.1791/6 \approx 15.17, not 3.52=12.253.5^2 = 12.25.

The expected value is (1+4+9+16+25+36)/6=91/6(1 + 4 + 9 + 16 + 25 + 36)/6 = 91/6. Of the half-steps, a mid of 15 is the nearest to 15.17 that fits a width of 2, so the quote is 14 to 16. The customer’s side is a coin toss, so the edge is 1 on average.

Classic wrong answer. Squaring the average die. The expectation of a square is the square of the expectation plus the variance, and the die’s variance is 35/12≈2.9235/12 \approx 2.92, which is exactly the gap between 12.25 and 15.17. This is Jensen’s inequality: a convex payoff is worth more than the payoff at the average.

Follow-up. What about a contract paying 1 divided by the die? It is also convex in the die, so again the average payoff beats the payoff at the average: 49/120≈0.4149/120 \approx 0.41 against 1/3.5≈0.291/3.5 \approx 0.29.

Question 2.4 ★ QT, Trader • market maker, hedge fund • junior

In a 52-card deck, count an ace as 1, number cards at face value, a jack as 11, a queen as 12 and a king as 13. Ten cards have been turned face up, and they total 100. One contract pays the value of the next card, and another pays the sum of all 42 cards still face down. You quote each one 1 wide, in steps of 0.25. Your counterparty sees the same ten cards. They buy at your ask if it is below the contract’s expected value, sell at your bid if it is above, and otherwise pass. What are your two quotes? Which contract carries more risk for you?

Answer

Answer to Question 2.4.

Quote the next card 5.75 bid, 6.75 asked, and the sum of the rest 263.5 bid, 264.5 asked. The first carries real risk, and the second carries none.

Each rank from 1 to 13 appears four times, so the whole deck totals 4×91=3644 \times 91 = 364. With 100 showing, the 42 unseen cards total exactly 264. Each is equally likely to be next, so the next card is worth 264/42=44/7≈6.29264/42 = 44/7 \approx 6.29, and the nearest quarter gives a mid of 6.25. Your counterparty’s value lies inside both quotes, so they pass.

Classic wrong answer. Treating the sum as uncertain because it adds 42 random cards. Those cards are not independent. The total is fixed, so the sum’s variance is zero. Averaging 42×7=29442 \times 7 = 294 ignores what you have seen.

Follow-up. What would you do if someone offered to sell you the sum at 263? Buy as much as they will sell, because you make 1 on each lot for certain. Anyone who can count the deck will not offer it.

Question 2.5 ★ QT, Trader, QR • market maker, crypto • junior

A die will be rolled. Contract AA pays 1 dollar if the result is 4, 5 or 6, and contract BB pays 1 dollar if it is 1, 2 or 3. You show AA at 0.55 bid, 0.60 asked and BB at 0.50 bid, 0.52 asked, and your counterparty takes any combination of one-lot trades that locks in a sure profit. What do they do, and how much do they make? What must your four prices satisfy so that no such combination exists?

Answer

Answer to Question 2.5.

They sell you both AA at 0.55 and BB at 0.50, collecting 1.05 and owing exactly 1, for a sure profit of 0.05. To rule this out, the two bids must add up to at most 1, and the two asks must add up to at least 1.

Exactly one of AA and BB pays, because the two events cover every result of the die with no overlap, so a pair of one lot each is worth exactly 1 whatever happens. A pair sold to you for more than 1 is free money for the other side. A pair bought from you for less than 1 is free money too. Your asks here add up to 1.12, so that side is safe.

Follow-up. Is 0.40 to 0.45 on both safe? No. The asks total 0.90, so they buy both from you for 0.90 and receive 1, making 0.10 for sure.

Question 2.6 ★ QT, Trader • market maker, hedge fund, crypto • junior

Two fair dice are rolled one after the other, and a contract pays the higher of the two. Quote a bid and an ask exactly 1 apart, in steps of 0.25, before either die is rolled. A customer who has seen nothing buys or sells one lot on a coin toss. Then the first die shows a 3, and you quote again on the same terms. What are your two quotes? What would your second quote have been if the first die had shown a 6?

Answer

Answer to Question 2.6.

Quote 4 bid, 5 asked before the rolls, and 3.5 bid, 4.5 asked after the 3. After a 6, the contract is worth exactly 6, so you would show 5.5 bid, 6.5 asked.

The higher of two dice equals kk in 2k−12k - 1 of the 36 outcomes, so the value is ∑k(2k−1)/36=161/36≈4.47\sum k(2k - 1)/36 = 161/36 \approx 4.47. Given a first die of 3, the second die gives a maximum of 3 in three cases, and otherwise 4, 5 or 6, so the value is (3+3+3+4+5+6)/6=4(3 + 3 + 3 + 4 + 5 + 6)/6 = 4.

After the first die the values are:

First die123456
Value3.503.674.004.505.176.00

Follow-up. Why would you ever keep a width after the 6? You need none for risk, because nothing is uncertain. The stem makes you show one, and the customer’s coin toss pays you for it. A real customer would not trade at 6.5 for something worth 6.

Question 2.7 ★ QT, Trader, QR • market maker, hedge fund • junior

Make a market on how many prime numbers there are below 1,000, with no calculator. A contract pays that number in dollars. Your bid and ask must be exactly 20 apart, in whole numbers. I know the answer: I sell you one lot at your bid if the true number is below it, buy one lot at your ask if it is above, and otherwise pass. What do you quote, and how did you get it?

Answer

Answer to Question 2.7.

Quote about 159 bid, 179 asked. There are 168 primes below 1,000, so that quote passes.

The prime number theorem says the count of primes up to nn is about n/ln⁡nn/\ln n, and a sharper form is about n/(ln⁡n−1)n/(\ln n - 1). With ln⁡1000=3×2.303≈6.91\ln 1000 = 3 \times 2.303 \approx 6.91, the sharper form gives 1000/5.91≈1691000/5.91 \approx 169. The centre of the quote is 169, and 20 wide makes it 159 to 179.

If you do not recall the theorem, sieve. About 1000×12×23×45×67≈2291000 \times \tfrac12 \times \tfrac23 \times \tfrac45 \times \tfrac67 \approx 229 numbers have no factor of 2, 3, 5 or 7, and the exact count is 228. Those still include composites such as 11×1111 \times 11, so the answer is well below 229.

Classic wrong answer. Using n/ln⁡n≈145n/\ln n \approx 145 as it stands. The quote 135 to 155 then loses 168−155=13168 - 155 = 13 when the interviewer buys at 155. The plain form runs low for small nn.

Question 2.8 ★★ QT, Trader, QR • market maker, hedge fund, crypto • junior

You roll a fair die until the first six appears, and a contract pays the number of rolls in dollars. Quote a bid and an ask exactly 2 apart, in whole numbers. A customer who knows nothing buys or sells one lot on a coin toss. What do you quote? Compare the two ways the trade can go: on each, what do you expect to earn, how likely are you to lose money, and how much can you lose?

Answer

Answer to Question 2.8.

Quote 5 bid, 7 asked. Both sides earn 1 on average, and they differ completely in shape. If you are long at 5, you lose money with probability 1−(5/6)4≈52%1 - (5/6)^4 \approx 52\%, and at most 4. If you are short at 7, you lose with probability (5/6)7≈28%(5/6)^7 \approx 28\%, and the loss has no limit.

The number of rolls is geometric with mean 6 and variance 30, so the standard deviation is about 5.5. Its median is 4, since 1−(5/6)31 - (5/6)^3 is below one half and 1−(5/6)41 - (5/6)^4 is above. Most results are below the mean, and a few are far above it.

So a long position usually loses a little and sometimes wins a lot, and a short position usually wins a little and sometimes loses a lot. It takes 20 rolls or more about 3% of the time, and then a short loses at least 13.

Classic wrong answer. Centring on the median because “most outcomes are below 6”. The contract pays the number of rolls, so the mean is what breaks even over many trades.

Follow-up. Which side would you rather have at the same average profit? It depends on your limits. A short has a small chance of a very large loss, so it needs a limit, more edge, or both. Say that before you say which you prefer.

Why it matters. Selling a skewed payoff at a fair average is how selling options looks. A position may have a good expected value and still be one you cannot afford to hold.

Question 2.9 ★★ QT, Trader, QR • market maker, hedge fund • junior

A contract pays the number of red cards among the top 10 of a shuffled 52-card deck. Quote a bid and an ask exactly 2 apart, in steps of 0.5. A customer who has not seen the cards buys or sells one lot on a coin toss. What do you quote, and how likely is the final number to land outside your quote? The first card is then turned over and is red. Where do you quote now, on the same terms?

Answer

Answer to Question 2.9.

Quote 4 bid, 6 asked. The result lands outside the quote with probability about 29%. After a first red card, the value is 92/17≈5.4192/17 \approx 5.41, and you quote 4.5 bid, 6.5 asked.

By symmetry each card is red with probability one half, so the expected number of reds is 5 whatever the dependence between cards. The count is hypergeometric, with variance

10⋅12⋅12⋅52−1052−1=3517,10 \cdot \tfrac12 \cdot \tfrac12 \cdot \tfrac{52 - 10}{52 - 1} = \tfrac{35}{17},

so the standard deviation is 1.43, below the 1.58 of ten independent coin tosses. Drawing without replacement pulls the count towards the middle. Summing the exact probabilities of 4, 5 and 6 gives 0.71.

After a red, the other nine cards come from 25 red in 51, so the value is 1+9⋅25/511 + 9 \cdot 25/51. The first card was worth 0.5 and is now worth 1, a gain of 0.5. The other nine fall from 4.5 to 4.41, because a red has left the deck. Together the value rises by 0.41.

Classic wrong answer. Moving up by 1, or by 0.5. A rise of 1 forgets that the first card already counted for 0.5. A rise of 0.5 forgets that the other nine cards depend on the first.

Question 2.10 ★★ QT, Trader, QR • market maker, hedge fund • junior, experienced

You believe an unknown quantity XX is normally distributed with mean μ\mu and standard deviation σ\sigma. You quote a bid of μ−h\mu - h and an ask of μ+h\mu + h, and a contract settles at XX. Your counterparty knows XX: they sell one lot at your bid if XX is below it, buy one lot at your ask if XX is above it, and otherwise pass. Find your expected loss as a function of hh. How much do you lose if your quote is your 90% confidence interval? What width keeps the loss under 5% of σ\sigma?

Answer

Answer to Question 2.10.

With k=h/σk = h/\sigma, the expected loss is 2σ[φ(k)−k Φ(−k)]2\sigma\left[\varphi(k) - k\,\Phi(-k)\right], where φ\varphi and Φ\Phi are the standard normal density and distribution function. A 90% interval, k=1.645k = 1.645, loses 0.042 σ0.042\,\sigma. To lose less than 0.05 σ0.05\,\sigma, you need k≥1.57k \ge 1.57, a width of about 3.1 σ3.1\,\sigma.

The counterparty buys when X>μ+hX > \mu + h, costing you X−μ−hX - \mu - h, and sells in the mirror case. So the loss is

2 E[(X−μ−h)+]=2σ∫k∞(z−k) φ(z) dz=2σ[φ(k)−k Φ(−k)].2\,\mathbb{E}\left[(X - \mu - h)^+\right] = 2\sigma\int_k^\infty (z - k)\,\varphi(z)\,dz = 2\sigma\left[\varphi(k) - k\,\Phi(-k)\right].

This is the normal loss function. At k=0k = 0 it is 0.80 σ0.80\,\sigma, and at k=1k = 1 it is 0.167 σ0.167\,\sigma.

Classic wrong answer. Thinking a 90% interval loses 10% of something. You trade 10% of the time, but those trades lose only a small amount on average, because the tail is thin just beyond the interval.

Follow-up. Why not quote very wide, then? Against this counterparty you should. But you also want the uninformed flow, and it stops trading if you are wide. How wide you go is a balance between those two, not just a statement of your uncertainty.

Question 2.11 ★★ QT, Trader, QR • market maker, hedge fund • junior, experienced

A contract pays, in dollars, the number of piano tuners in a city of five million. Your rough reasoning gives a best guess of 200 and leaves you unsure by about a factor of 2. Take that to mean the natural logarithm of the number is normal, with its mean at ln⁡200\ln 200 and standard deviation ln⁡2\ln 2. You may quote any prices, and a customer who knows nothing buys or sells one lot on a coin toss. Around which number do you centre your quote, and why not 200? How likely is the true number to exceed your centre? What range holds the true number with 90% probability?

Answer

Answer to Question 2.11.

Centre on about 254. The contract pays the number, so the fair value is the mean, and for a lognormal the mean is the median times eσ2/2e^{\sigma^2/2}. Here σ=ln⁡2\sigma = \ln 2, so the factor is e0.24≈1.27e^{0.24} \approx 1.27.

So 200×1.27≈254200 \times 1.27 \approx 254. The true number exceeds 254 with probability Φ(−σ/2)=Φ(−0.35)≈36%\Phi(-\sigma/2) = \Phi(-0.35) \approx 36\%. The 90% range is 200⋅2±1.645200 \cdot 2^{\pm 1.645}, about 64 to 625.

Classic wrong answer. Centring on the best guess of 200. Half the time the number is above 200, but it can be far above, while it can only be a little below in absolute terms. If you sell at 200 again and again, you lose 54 a lot on average. A quote centred on the median gets the shape wrong as well: the range is not symmetric around the centre.

Follow-up. How did you get a factor of 2? A Fermi estimate is a product of factors, and logs of a product add. Three factors each unsure by a factor of 1.5 give a log standard deviation of 3ln⁡1.5\sqrt3 \ln 1.5, which is a factor of about 2.0 in all.

Why it matters. Unknown quantities are usually products, so their uncertainty is multiplicative. Your bid can be far nearer zero than your ask is to your centre, and saying so is a mark of someone who has thought about it.

Question 2.12 ★★ QT, Trader, QR • market maker, hedge fund, crypto • junior

A contract is worth either 80 or 120, equally likely. You quote one bid and one ask, at any prices, and one trader arrives and trades one lot. With probability 30% the trader knows the true value, and buys if it is 120 and sells if it is 80. Otherwise they know nothing, and buy or sell on a coin toss. At what bid and ask do you exactly break even on average, whichever side they take?

Answer

Answer to Question 2.12.

Quote 94 bid, 106 asked. The break-even ask is the expected value given that someone buys, and the break-even bid is the expected value given that someone sells.

Use Bayes. If the value is 120, a buy comes with probability 0.30+0.70⋅12=0.650.30 + 0.70 \cdot \tfrac12 = 0.65. If it is 80, a buy comes only from the coin toss, 0.70⋅12=0.350.70 \cdot \tfrac12 = 0.35. So given a buy, the chance of 120 is 0.65/(0.65+0.35)=0.650.65/(0.65 + 0.35) = 0.65, and the ask is 80+40×0.65=10680 + 40 \times 0.65 = 106. The bid is the mirror image, 94.

So the width is the share of knowing traders times the range, 0.30×40=120.30 \times 40 = 12. This is the Glosten-Milgrom quote. Uninformed traders pay exactly what the informed ones take from you.

Classic wrong answer. Quoting around 100 with a width picked by feel. What matters is the value given that someone buys. There is a quick route here: 30% of buyers know and pay for 120, and the rest pay for an average of 100, so the ask is 0.3×120+0.7×100=1060.3 \times 120 + 0.7 \times 100 = 106. It works only because the prior is one half. With any other prior, the share of knowers among buyers differs from 30%.

Follow-up. What if everyone knows, or nobody does? With everyone knowing, the quote is 80 and 120, and the trader gains nothing at those prices. With nobody knowing, it is 100 and 100, with no width at all, as there is nothing to protect against in this model.

Question 2.13 ★★ QT, Trader, QR • market maker, hedge fund, crypto • junior, experienced

A contract is worth either 0 or 100, equally likely. Traders arrive one at a time, and each is a new person. Each trades one lot: with probability 20% they know the value, and buy if it is 100 and sell if it is 0. Otherwise they buy or sell on a coin toss. Before each trader you quote the bid and the ask at which you break even on average, at any prices. The first four trades are buy, buy, sell, buy. What is your quote before each of the first five traders? If the same four trades had come in another order, would your final quote change?

Answer

Answer to Question 2.13.

The quotes before the five traders are below, and the order does not matter, because each purchase multiplies the odds of 100 by 1.5, and each sale divides them by 1.5.

Trader12345
Trades so farnoneBBBBBSBBSB
Bid40.0050.0060.0050.0060.00
Ask60.0069.2377.1469.2377.14

If the value is 100, a buy has probability 0.20+0.40=0.600.20 + 0.40 = 0.60, and if it is 0, it has probability 0.400.40. The likelihood ratio is 1.5, and a sale gives its reciprocal. So with nn net purchases the odds of 100 are 1.5n1.5^n. The ask is the value given one more purchase, at odds 1.5n+11.5^{n+1}, and the bid is the value given one more sale, at odds 1.5n−11.5^{n-1}. With n=1n = 1 the ask is 2.25/3.252.25/3.25 of 100, which is 69.23. The final odds are 1.521.5^2, so the chance of 100 is 9/139/13.

Follow-up. What if uninformed traders buy 70% of the time? A buy now has probability 0.760.76 or 0.560.56, a ratio of 1.36, and a sale has ratio 0.24/0.44=0.550.24/0.44 = 0.55. Since 1/1.36=0.741/1.36 = 0.74, a sale moves you more than a buy: the rarer trade says more. Order still does not matter, but the net count is no longer enough, and you need both counts.

Question 2.14 ★★ QT, Trader, QR • market maker, hedge fund • junior

A fair die has been rolled out of your sight, and a contract pays its value. You quote 3 bid, 4 asked. Your counterparty has looked at the die with probability one half. If they have, they sell one lot at your bid if the value is strictly below it, buy one lot at your ask if it is strictly above, and otherwise pass. If they have not, they buy or sell on a coin toss. You do not know which it is. They sell to you. What is the contract worth now? Where do you quote next, 1 wide and centred on your new value, in steps of 0.1? What is it worth if they had passed instead?

Answer

Answer to Question 2.14.

The contract is worth 2.7 after the sale, and you quote 2.2 bid, 3.2 asked. After a pass, it is worth 3.5.

Weigh each value by the probability of a sale. For values 1 and 2 the looker sells, so that is 12+12⋅12=34\tfrac12 + \tfrac12 \cdot \tfrac12 = \tfrac34. For values 3 to 6 only the coin toss can sell, so 14\tfrac14. The weights sum to 52\tfrac52, so the posterior is 0.3,0.3,0.1,0.1,0.1,0.10.3, 0.3, 0.1, 0.1, 0.1, 0.1, and the mean is 2.7.

A pass can come only from a looker, and a looker passes only on 3 or 4. So the value is one of those two, with mean 3.5. Note that this leaves the mid where it was, while the range has shrunk to a single unit.

As a check, use the law of total expectation. A sale and a purchase each have probability 512\tfrac{5}{12} and a pass 16\tfrac16, and the purchase value is 4.3 by symmetry. Then 512⋅2.7+512⋅4.3+16⋅3.5=3.5\tfrac{5}{12} \cdot 2.7 + \tfrac{5}{12} \cdot 4.3 + \tfrac16 \cdot 3.5 = 3.5, the original value.

Classic wrong answer. Assuming the seller surely looked, which gives 1.5. The seller may well be uninformed, and that is what stops the update from going so far.

Question 2.15 ★★ QT, Trader • market maker, hedge fund • junior, experienced

A contract is worth 90 or 110, equally likely. One trader arrives. With probability 10% they know the value, and buy if it is 110 and sell if it is 90. Otherwise they buy or sell on a coin toss. A trader who knows the value trades 100 lots with probability 80% and 1 lot otherwise. A trader who does not trades 100 lots with probability 5% and 1 lot otherwise. You see the size and side, and you may name a different price for each size. At what ask do you break even on average for a 1-lot buyer, and for a 100-lot buyer? If you must show one ask for both sizes, what is it?

Answer

Answer to Question 2.15.

Ask about 100.23 for one lot and 106.40 for 100 lots. A single ask for both sizes is about 106.0.

The value is 110 if the buyer knows, and it averages 100 if the buyer does not. So the ask is 100+10×100 + 10 \times the probability that the buyer knows, given the size. Size is the signal, and Bayes gives

Pr⁡(knows∣100)=0.1⋅0.80.1⋅0.8+0.9⋅0.05=0.64,Pr⁡(knows∣1)=0.1⋅0.20.1⋅0.2+0.9⋅0.95≈0.023.\Pr(\text{knows} \mid 100) = \frac{0.1 \cdot 0.8}{0.1 \cdot 0.8 + 0.9 \cdot 0.05} = 0.64, \qquad \Pr(\text{knows} \mid 1) = \frac{0.1 \cdot 0.2}{0.1 \cdot 0.2 + 0.9 \cdot 0.95} \approx 0.023.

A single ask must break even across lots traded, not across traders. Knowing traders send 0.1(0.2+80)=8.020.1(0.2 + 80) = 8.02 lots per arrival and the others send 0.9(0.95+5)=5.3550.9(0.95 + 5) = 5.355, so knowing traders send 60% of the lots, and the ask is about 106.0.

Classic wrong answer. Averaging across traders. Most traders send one lot and are not informed, but most of the lots are. Those are the lots that cost you money.

Follow-up. What does the single ask do to small customers? They pay 106 for something worth little over 100, so they leave. And a knowing trader who is priced by size will split into small orders, which is why the signal weakens over time.

Why it matters. Showing less size near the mid and more further away follows from this calculation.

Question 2.16 ★★ QT, Trader, QR • market maker, hedge fund, crypto • junior, experienced

A contract’s fair value is 100 and will not change before it settles at 100. You are long 40 lots, and your score at the end is your profit minus 0.010.01 times your final position squared. A customer may buy one lot at your ask or sell one lot at your bid, and may also do neither. What is the lowest ask and the highest bid at which a trade would not lower your score? Your quote must be exactly 2 wide, centred between those two prices: what do you show? What do you show if you are short 40? How far does your centre move after each trade?

Answer

Answer to Question 2.16.

The lowest ask is 99.21 and the highest bid is 99.19, so the centre is 99.20, and you show 98.20 bid, 100.20 asked. Short 40, you show 99.80 bid, 101.80 asked. The centre moves by 0.02 against each trade.

Selling one lot at aa from long 40 changes your score by a−100+0.01(402−392)=a−100+0.79a - 100 + 0.01(40^2 - 39^2) = a - 100 + 0.79, so you accept any a≥99.21a \ge 99.21. Buying one lot at bb changes your score by 100−b−0.01(412−402)=100−b−0.81100 - b - 0.01(41^2 - 40^2) = 100 - b - 0.81, so you accept any b≤99.19b \le 99.19.

With position qq the centre is 100−2×0.01×q100 - 2 \times 0.01 \times q. The prices at which you are indifferent are that centre plus or minus 0.01. A purchase takes qq up by 1, and the centre down by 0.02. This shifting of both sides together is an inventory skew.

Classic wrong answer. Lowering only the bid. You want to reduce the position in both ways: to be less likely to buy more, and more likely to sell. Moving both sides keeps your width and shows the same skew.

Follow-up. Why would a score have a squared position? It is the cost of carrying risk. A position of qq on a price with variance σ2\sigma^2 has a variance of q2σ2q^2\sigma^2, and a risk-averse holder charges in proportion to that.

Why it matters. Many interviewers ask this straight after a trade: “you are now long, quote me again.” A candidate who moves the fair value is confusing what they own with what the thing is worth.

Question 2.17 ★★ QT, Trader • market maker, crypto • junior

A contract’s fair value is fixed at 100, and you always quote 99 bid, 101 asked. Each round, exactly one customer arrives and buys or sells one lot on a coin toss. Your position must stay between −3-3 and +3+3 lots: at +3+3 you take your bid down, and at −3-3 you take your ask down, so a customer on that side goes away with no trade. You start flat, and any final position is marked at 100. What is your expected profit over 10 rounds? What is it per round in the long run? What is it per round in the long run with a limit of ±L\pm L lots?

Answer

Answer to Question 2.17.

You expect to earn 9.125 over 10 rounds, against 10 with no limit. In the long run you earn 6/7≈0.866/7 \approx 0.86 per round. With a limit of ±L\pm L, it is 2L/(2L+1)2L/(2L + 1) per round.

Each trade earns 1, so the question is how many customers you turn away. A position at a limit turns away half of them. Starting from flat, you can first turn someone away in round 4, and stepping the position’s probabilities forward exactly gives 73/873/8 trades in 10 rounds.

For the long run, the position is a random walk that stays put when it would cross a limit. Every row and every column of its transition matrix sums to 1, so its stationary distribution is uniform on the 2L+12L + 1 positions. So you are at a limit with probability 2/(2L+1)2/(2L + 1), and you turn away half the customers then, a share of 1/(2L+1)1/(2L + 1). For L=3L = 3, that is one customer in seven.

Classic wrong answer. Assuming the limit does not bite, as “we are only at the limit 2 times in 7”. It costs one seventh of your income, and this is with flow that is entirely two-sided.

Follow-up. How would you do better? Skew before you reach a limit, so that flow brings you back to flat. Here the customers ignore the price, so skew does nothing. Real customers do not.

Question 2.18 ★★ QT, Trader, QD • market maker, bank, crypto • junior

A contract SS pays the sum of three fair dice. Another dealer quotes a contract on each single die at 3.4 bid, 3.6 asked, in any size, and will keep doing so. You must show a quote on SS. Your counterparty takes any trades that lock in a sure profit against you and that dealer. For which bids and which asks can they do so? A separate customer, who knows nothing, then buys one lot of SS from you at your ask of 10.7. What do you make if you hedge at once with the single dice, and what if you do not hedge?

Answer

Answer to Question 2.18.

They can lock in a profit if your bid is above 10.8 or your ask is below 10.2. If you hedge the sale at 10.7, you lock in a loss of 0.1. If you do not hedge, you earn 0.2 on average, with a standard deviation of about 2.96.

Three single-die contracts together pay exactly the same as SS. So they cost 10.8 to buy and fetch 10.2 to sell. If you bid above 10.8, for example 10.9, the counterparty buys the three pieces at 10.8 and sells to you at 10.9, making 0.1 for sure. If you ask below 10.2, they do the reverse. Anywhere from 10.2 to 10.8 is safe from them.

A customer lifts your 10.7, and fair value is 10.5, so you have 0.2 of edge. Buying the pieces at 10.8 gives that up and costs 0.1 more. So a quote inside the pieces’ own bid and ask can make money only by carrying the risk for a while: you hold until a customer on the other side arrives, or you decide the risk is worth 0.2.

Classic wrong answer. Assuming that a hedge is always the right thing. A hedge has a price. Compare what it costs with the risk it removes.

Follow-up. Where would you quote if you must hedge every trade at once? At or outside 10.2 and 10.8. Then a trade locks in zero or better.

Question 2.19 ★★ QT, Trader, QR • market maker, hedge fund • junior, experienced

Three fair dice XX, YY and ZZ are rolled out of your sight. Contract AA pays X+YX + Y and contract BB pays X+ZX + Z, and you quote each one at 6.5 bid, 7.5 asked. Your counterparty knows the sum X+YX + Y and nothing else. They buy one lot of AA at your ask if that sum is above it, sell at your bid if it is below, and otherwise pass. They buy AA from you. What is each contract worth now? Given what you now know, how many lots of BB, fractions allowed, should you buy to make the variance of your position as small as possible, and how much of it does that remove?

Answer

Answer to Question 2.19.

AA is now worth 28/3≈9.3328/3 \approx 9.33 and BB is worth 49/6≈8.1749/6 \approx 8.17. The best hedge is only 4/23≈0.174/23 \approx 0.17 of a lot of BB, and it removes about 8.7% of the variance.

They buy when X+YX + Y is at least 8, which has probability 15/3615/36. Then E[X+Y]=140/15=9.33\mathbb{E}[X + Y] = 140/15 = 9.33. By symmetry XX takes half of the excess over 7, so BB rises by half as much as AA: it goes from 7 to 8.17. The cross-update is the slope of BB on AA, which is 12\tfrac12.

For the hedge, compute given what you now know. You are short AA, and given X+Y≥8X + Y \ge 8, the variance of AA is 14/9≈1.5614/9 \approx 1.56, the variance of BB is 161/36≈4.47161/36 \approx 4.47, and their covariance is 7/97/9. The variance-minimising amount of BB is (7/9)/(161/36)=4/23(7/9)/(161/36) = 4/23. It removes (7/9)2/(149⋅16136)≈8.7%(7/9)^2/\left(\tfrac{14}{9} \cdot \tfrac{161}{36}\right) \approx 8.7\%.

Classic wrong answer. Using the unconditional ratio of 12\tfrac12. Before any trade that is right, and it removes 25% of AA’s variance. Now AA is already pinned down to a narrow range, and BB still carries all of the noise in ZZ. A hedge of 12\tfrac12 here raises the variance from 1.56 to 1.90.

Follow-up. What if they had known only YY? Then BB does not move at all. How far one quote should move when another trades depends on what the trader knows, and you have to guess at that.

Question 2.20 ★★ QT, Trader, QD, LLE • market maker, crypto • junior, experienced

You quote a contract at its fair value plus and minus hh. Between one piece of news and the next, 10 uninformed customers trade one lot each with you, and each earns you hh. The next piece of news then moves the fair value by 2, up or down. With probability 80% a fast trader hits your old quote on the side that is now wrong, for one lot, before you can move it. Otherwise you move in time. What hh makes you break even? What is it if a faster system of yours cuts that 80% to 50%, and what if there are only 5 customers?

Answer

Answer to Question 2.20.

h=1.6/10.8≈0.148h = 1.6/10.8 \approx 0.148. With a 50% chance of being hit, h≈0.095h \approx 0.095. With 5 customers, h≈0.276h \approx 0.276.

Over one cycle you earn 10h10h from customers. If the fast trader gets you, you sell at f+hf + h something now worth f+2f + 2, or buy in the mirror image, and either way you lose 2−h2 - h. So break-even requires

nh−p(M−h)=0,h=pMn+p,n h - p (M - h) = 0, \qquad h = \frac{p M}{n + p},

with n=10n = 10 customers, p=0.8p = 0.8 and a move of M=2M = 2. Each customer ends up paying for your share of the news: about pM/npM/n when nn is large.

Classic wrong answer. Comparing hh only with the move of 2, and concluding that you need a width of 2. You are not hit on every customer, only once per piece of news. Width is that one hit spread across all the customers.

Follow-up. What does this say about speed? It is worth money, and you can price it. Cutting pp from 0.8 to 0.5 lowers the break-even half-width by 0.053. So you can quote tighter, take more customers, or keep the difference. It is also why a slower dealer widens, or quotes less, before scheduled news.

Why it matters. This is the plainest model of being picked off when your quote is stale, a cost that any quoting desk has to cover.

Question 2.21 ★★ QT, Trader, QR • market maker, crypto • junior, experienced

A contract is worth 98 or 102, equally likely. Each trader trades one lot: 10% of them know the value and buy if it is 102 and sell if it is 98, and the rest buy or sell on a coin toss. A rival shows 99 bid, 101 asked. You may join at the same prices, in which case every trade is split equally between you. Or you may show 100−h100 - h bid, 100+h100 + h asked for some hh below 1, in steps of 0.1, and take every trade. What do you earn per trader in each case, and which hh is best if the rival stays put? Where do quotes end up if the rival also moves, one step at a time?

Answer

Answer to Question 2.21.

Joining earns 0.40 per trader. Posting inside at half-width hh earns h−0.2h - 0.2, so h=0.5h = 0.5 earns 0.30, and h=0.9h = 0.9 earns 0.70. If the rival stays put, 0.9 is best. If the rival also moves, quotes fall to a half-width of 0.3 to 0.4, just above the break-even half-width of 0.2.

Per trade at half-width hh, an uninformed trader pays you hh, and a knowing trader costs you 2−h2 - h. Together, 0.9h−0.1(2−h)=h−0.20.9h - 0.1(2 - h) = h - 0.2. At 99 and 101 that is 0.8 per trade, and sharing gives 0.40. Posting inside beats joining when h−0.2>0.4h - 0.2 > 0.4, which is h>0.6h > 0.6, so small improvements win.

When both move, one step takes the whole flow rather than half. At a shared half-width hh, you earn (h−0.2)/2(h - 0.2)/2, and undercutting by 0.1 earns h−0.3h - 0.3. Undercutting pays when h>0.4h > 0.4. It ties at 0.4, and at 0.3 it loses. So the race stops there, one or two steps above break-even, because of the step size. At break-even, width is 2×0.2=0.42 \times 0.2 = 0.4, which is the knowing share times the range, 0.1×40.1 \times 4.

Follow-up. What if a rule lets the first in the queue take the whole trade? Then joining is worth less, or nothing if you join behind. Being early in the queue has a value of its own, as it does on a real exchange with price-time priority.

Question 2.22 ★★ QT, Trader, QR • market maker, hedge fund • junior, experienced

A contract pays the sum of three fair dice, and you quote 10.5−h10.5 - h bid, 10.5+h10.5 + h asked. With probability one half your counterparty has looked at one die. They then work out the expected sum, sell one lot if it is below your bid, buy one lot if it is above your ask, and otherwise pass. Otherwise they have seen nothing and buy or sell on a coin toss. What hh makes you break even on average? What is it if they look with probability one quarter, or three quarters?

Answer

Answer to Question 2.22.

h=0.8h = 0.8, a width of 1.6. With one quarter, h=0.375h = 0.375. With three quarters, h=4/3≈1.33h = 4/3 \approx 1.33.

Someone who has seen a die dd values the sum at d+7d + 7, so 8 to 13, or ±0.5,±1.5,±2.5\pm 0.5, \pm 1.5, \pm 2.5 around 10.5. They trade only when that is outside your quote, and on average they then take the amount by which it exceeds hh. For hh between 0.5 and 1.5, those amounts are 0, 1.5−h1.5 - h and 2.5−h2.5 - h, each twice out of six, so the average loss to them is (4−2h)/3(4 - 2h)/3.

The coin toss pays you hh on average, so breaking even means

(1−α) h=α⋅4−2h3.(1 - \alpha)\, h = \alpha \cdot \frac{4 - 2h}{3}.

With α=12\alpha = \tfrac12, this gives h=0.8h = 0.8, and that lies in the range assumed. The other two cases solve the same way, each with its own range: α=14\alpha = \tfrac14 gives hh below 0.5, where the loss is (4.5−3h)/3(4.5 - 3h)/3, and α=34\alpha = \tfrac34 again uses the range from 0.5 to 1.5.

Classic wrong answer. Using the sum’s standard deviation of 2.96. A single seen die tells them much less than that, and their value ranges only ±2.5\pm 2.5, so the width needed is much smaller.

Question 2.23 ★★★ QT, Trader, QR • market maker, hedge fund, crypto • junior, experienced

A contract is worth 0 or 100, equally likely. Traders arrive one at a time, and each is a new person. Half of them know the value, and buy if it is 100 and sell if it is 0. The other half buy or sell on a coin toss. Before each trader you quote the bid and the ask at which you break even on average, at any prices. Every trader so far has sold. What is your quote before the first five traders? When does your width first fall below 5? How does the width behave as the sales go on, and why? How likely is a run of four sales if the value is really 100?

Answer

Answer to Question 2.23.

The quotes are below. The width first falls below 5 after four sales. It narrows as you learn, although you might expect it to grow as you take more losses. A run of four sales has probability 1/2561/256, about 0.4%, if the value is really 100.

Sales so far01234
Bid25.0010.003.571.220.41
Ask75.0050.0025.0010.003.57
Width50.0040.0021.438.783.16

A sale has probability 0.750.75 if the value is 0 and 0.250.25 if it is 100, so each sale divides the odds of 100 by 3. After nn sales the odds are 3−n3^{-n}. The ask is the value given one more purchase, at odds 31−n3^{1-n}, and the bid is the value given one more sale, at odds 3−n−13^{-n-1}. So the ask after nn sales equals the bid after n−2n - 2.

Width reflects how much a single trade can still tell you. At the start, the value is entirely unknown. After four sales, you are nearly sure, so a trade has little left to reveal.

Classic wrong answer. Thinking width grows when flow is one-sided. Your bid falls fast, which is painful, but the width is a separate thing. What widens a real market is new uncertainty, and that is not in this model.

Follow-up. And if the value is 0? Then the same run has probability (3/4)4≈32%(3/4)^4 \approx 32\%, so it is an ordinary thing to see. That ratio is why you believe it.

Why it matters. After a sharp fall with steady selling, a candidate who widens automatically has confused pain with uncertainty.

Question 2.24 ★★★ QT, QR • market maker, hedge fund • junior, experienced

A contract’s value VV is uniform on 0 to 100. One trader arrives and trades one lot. With probability α\alpha they know VV: they buy at your ask if VV is above it, sell at your bid if VV is below it, and otherwise pass. With probability 1−α1 - \alpha they know nothing, and buy or sell on a coin toss. Find the ask at which a purchase makes you break even on average, and the bid at which a sale does, as functions of α\alpha. Evaluate them at α=0.5\alpha = 0.5. What happens as α\alpha approaches 1?

Answer

Answer to Question 2.24.

On a scale of 0 to 1, the ask is a=(1+α)−1−α22αa = \dfrac{(1 + \alpha) - \sqrt{1 - \alpha^2}}{2\alpha}, and the bid is 1−a1 - a. At α=0.5\alpha = 0.5, the quote is 36.6 bid, 63.4 asked. As α\alpha approaches 1, the ask rises to 100 and the bid falls to 0, so no trade happens: the market breaks down.

The ask equals the expected value given a purchase. A purchase comes from a knowing trader when V>aV > a, and from the coin toss at any VV. So

a=α∫a1v dv+1−α2∫01v dvα(1−a)+1−α2=α2(1−a2)+1−α4α(1−a)+1−α2.a = \frac{\alpha \int_a^1 v\,dv + \frac{1 - \alpha}{2} \int_0^1 v\,dv}{\alpha (1 - a) + \frac{1 - \alpha}{2}} = \frac{\frac{\alpha}{2}(1 - a^2) + \frac{1 - \alpha}{4}}{\alpha(1 - a) + \frac{1 - \alpha}{2}}.

Clearing the fractions gives αa2−(1+α)a+1+α2=0\alpha a^2 - (1 + \alpha)a + \frac{1 + \alpha}{2} = 0, and the smaller root is the one in [0,1][0, 1].

Small α\alpha gives a≈12+α4a \approx \frac12 + \frac{\alpha}{4}, so the ask is about 50+25α50 + 25\alpha. For example, α=0.1\alpha = 0.1 gives 52.5, and α=0.99\alpha = 0.99 gives 93.4.

Follow-up. Why does the market break down only at α=1\alpha = 1 here? Because any uninformed flow at all pays for a quote wide enough. With a continuum of values, a knowing trader’s profit shrinks as the ask nears 100, while the flow keeps its fee. With real costs, it can break down sooner.

Why it matters. Liquidity vanishes when informed trading is feared, as it does around a large unknown announcement. This is the simplest model that shows it.

Question 2.25 ★★★ QT, Trader, QR • market maker, hedge fund • experienced

A contract’s value VV is uniform on 0 to 100, and you quote 50−h50 - h bid, 50+h50 + h asked. One trader arrives. With probability 20% they know VV: they buy one lot at your ask if VV is above it, sell one lot at your bid if VV is below it, and otherwise pass. With probability 80% they know nothing: they pick a side on a coin toss and trade one lot with probability 1−h/201 - h/20, and not at all if hh is 20 or more. Which hh maximises your expected profit, and what is that profit? At which smaller hh do you only break even? Above what share of knowing traders is no quote profitable?

Answer

Answer to Question 2.25.

The best half-width is h=250/21≈11.9h = 250/21 \approx 11.9, and it earns about 0.95 per trader. You only break even at h=50/7≈7.14h = 50/7 \approx 7.14. Above a knowing share of 25%, no quote is profitable.

A knowing trader takes (V−50−h)+(V - 50 - h)^+ on the upside, and the same on the downside, so with VV uniform that averages (50−h)2/100(50 - h)^2/100. An uninformed trader trades with probability 1−h/201 - h/20 and pays hh on average. With share α\alpha,

π(h)=(1−α) h(1−h20)−α (50−h)2100.\pi(h) = (1 - \alpha)\, h \left(1 - \frac{h}{20}\right) - \alpha\, \frac{(50 - h)^2}{100}.

Setting the derivative to zero gives h=1/(1−α10+α50)h = 1\big/\left(\frac{1 - \alpha}{10} + \frac{\alpha}{50}\right). At α=0.2\alpha = 0.2, this is 1/0.084≈11.91/0.084 \approx 11.9. Setting π(h)=0\pi(h) = 0 gives h=50/7h = 50/7 for the smaller root.

So the two quotes tell different stories. A market maker with no competition takes 11.9. Competition pushes the half-width down to 7.14, where profit is zero. At α=14\alpha = \tfrac14, the best half-width is 12.5, and it earns exactly zero, so at any larger share you should not quote at all.

Classic wrong answer. Assuming wider is always better. It is better against knowing traders, but you lose customers, and that sets the limit.

Follow-up. Why does the market not break down gradually? Because the uninformed flow’s fee has a ceiling while the knowing traders’ take grows. When the most you can make crosses zero, you stop, and you stop all at once.

Question 2.26 ★★★ QT, Trader, QR • market maker, crypto • junior, experienced

A contract’s fair value is 100 and stays there until it settles. Your score is your profit minus 0.010.01 times your final position squared. Exactly one customer comes, wanting to buy or sell one lot on a coin toss. A seller takes your bid with probability e−2δe^{-2\delta}, where δ\delta is how far your bid sits below 100. A buyer takes your ask with probability e−2δe^{-2\delta}, with δ\delta measured above 100. A bid above 100 or an ask below 100 is taken for certain. Which bid and ask maximise your expected score when you are flat, and when you are long 40? From what position does your ask reach 100?

Answer

Answer to Question 2.26.

Flat, you show 99.49 bid, 100.51 asked. Long 40, you show 98.69 bid, 100.00 asked. The ask reaches 100 from a position of 26.

The customer’s side is a coin toss, so choose each price separately. If a trade changes your penalty by cc, you maximise (δ−c) e−2δ(\delta - c)\,e^{-2\delta}, whose derivative vanishes at δ=12+c\delta = \tfrac12 + c.

Flat, either trade costs 0.01 in penalty, so δ=0.51\delta = 0.51. Long 40, a purchase costs 0.01(412−402)=0.810.01(41^2 - 40^2) = 0.81, so the bid depth is 1.311.31. A sale saves 0.790.79, so c=−0.79c = -0.79, and the formula says δ=−0.29\delta = -0.29. But an ask through 100 gets no more fills than an ask at 100, and only lowers the price. So you stop at δ=0\delta = 0, and earn 0.79. This is the corner of the problem.

Your ask reaches 100 when 0.01(2q−1)≥120.01(2q - 1) \ge \tfrac12, so at q=26q = 26. Your expected score from the trade is about 0.41, against about 0.18 for the flat quote at the same position.

Classic wrong answer. Printing the negative depth: quoting below fair value is giving money away, once the probability of a fill has reached one.

Follow-up. What is the 12\tfrac12? With no inventory cost, you maximise δe−kδ\delta e^{-k\delta}, which gives 1/k1/k. It is the markup that a seller facing that demand curve would charge.

Question 2.27 ★★★ QT, Trader, QR • market maker, hedge fund • junior, experienced

A contract is worth 90 or 110, equally likely. One trader arrives: with probability 30% they know the value, and buy if it is 110 and sell if it is 90, and otherwise they buy or sell on a coin toss. What break-even bid and ask do you quote? Now you also see a public signal, seen by everyone, which names the true value correctly with probability 80%. It says 110. What break-even quote do you show now? Compare the two widths. What width does the signal leave if it is correct only 60% of the time?

Answer

Answer to Question 2.27.

With no signal, quote 97 bid, 103 asked. With the signal saying 110, quote about 103.66 bid, 107.63 asked, a width of 3.97 against 6. A signal correct only 60% of the time leaves about 98.94 to 104.72, a width of 5.78.

A public signal changes your prior, and the same Bayes step then gives the quote. Start with the signal, so the chance of 110 is 0.8, and treat a buy as a further observation with likelihoods 0.650.65 and 0.350.35. Then

Pr⁡(110∣buy)=0.8⋅0.650.8⋅0.65+0.2⋅0.35≈0.881,\Pr(110 \mid \text{buy}) = \frac{0.8 \cdot 0.65}{0.8 \cdot 0.65 + 0.2 \cdot 0.35} \approx 0.881,

which gives an ask of 90+20×0.881=107.6390 + 20 \times 0.881 = 107.63. A sale reverses the likelihoods, and that gives 103.66.

Note that the quote is not centred on the new fair value, which is 0.8×110+0.2×90=1060.8 \times 110 + 0.2 \times 90 = 106. The mid is at 105.64, because a trade can move you further towards 90 than towards 110.

Classic wrong answer. Thinking the share of knowing traders has fallen. It has not. But public knowledge shrinks what they know beyond you, so each of their trades takes less.

Follow-up. What would a perfect signal do? It would take the width to zero, as no one knows anything you do not. The value of a signal to a market maker is lower adverse selection, which means tighter quotes and more flow.

Question 2.28 ★★★ QT, Trader, QR • market maker, hedge fund, crypto • junior, experienced

A contract pays the sum of two fair dice. You see only the first die, and a rival dealer sees only the second. Each of you offers to sell one lot at your own die plus 3.5 plus a markup mm, the same mm for both, and you both know this rule. A customer always buys one lot from the lower ask, and if the asks are equal you each sell half a lot. What is your expected profit at m=0.5m = 0.5? What mm makes you break even? With three dealers and three dice, each seeing one die and asking their own die plus 7 plus mm, the lowest asks sharing the sale equally, what mm breaks even?

Answer

Answer to Question 2.28.

At m=0.5m = 0.5 you lose about 0.236 per deal. Break-even is m=35/36≈0.97m = 35/36 \approx 0.97. With three dealers, it is 35/24≈1.4635/24 \approx 1.46.

You sell only when your own die is the lower one. Your ask is d1+3.5+md_1 + 3.5 + m, and the contract pays d1+d2d_1 + d_2, so your profit on a sale is 3.5+m−d23.5 + m - d_2, and winning selects a high d2d_2. If your die is lower you win everything, and if they tie you win half. So given d2d_2, your share is (d2−12)/6(d_2 - \tfrac12)/6, and

profit=136∑d2=16(3.5+m−d2)(d2−12)=18m−17.536.\text{profit} = \frac{1}{36} \sum_{d_2 = 1}^6 \left(3.5 + m - d_2\right) \left(d_2 - \tfrac12\right) = \frac{18m - 17.5}{36}.

This vanishes at m=35/36m = 35/36. Among the deals where your die is strictly lower, the rival’s die averages 14/314/3, not 3.5. This is the winner’s curse: you win the trade when you have underestimated.

With three dealers, the same count over 216 outcomes gives m=35/24m = 35/24. More rivals make it worse, because winning says more.

Classic wrong answer. Using the sum’s unconditional value and adding a small edge. That edge is entirely eaten by the fact that you only sell when the other die is high.

Follow-up. Is this the same as adverse selection from a customer? It has the same structure, but the customer here knows nothing. The information comes from your rival, through the customer’s choice between you.

Question 2.29 ★★★ QT, Trader, QR • market maker, hedge fund • junior, experienced

A contract is worth 0 or 100, equally likely. One person trades with you every round, one lot at a time. With probability one half this person knows the value, and always buys if it is 100 and always sells if it is 0. Otherwise they know nothing and choose each side on a new coin toss. Before each round you quote the bid and the ask at which you break even on average for that round, at any prices. What do you quote in round 1? What after they have bought once, and after they have bought and then sold? Compare with a new person arriving each round, half of them knowing the value.

Answer

Answer to Question 2.29.

Quote 25 bid, 75 asked in round 1. After a purchase, quote 50 bid, 83.33 asked. After a purchase and then a sale, quote 50 bid, 50 asked. With a new person each round, the same three quotes are 25 to 75, 50 to 90, and 25 to 75.

There are four states: knows or does not, and 0 or 100, each of probability 14\tfrac14. A purchase has likelihood 1 from a knower at 100, 0 from a knower at 0, and 12\tfrac12 otherwise. So after one purchase the states have probabilities: knower at 100, 12\tfrac12; no knowledge at 100, 14\tfrac14; no knowledge at 0, 14\tfrac14. The value is 75.

The next ask is the value given a second purchase, which reweights those to 12:18:18\tfrac12 : \tfrac18 : \tfrac18, giving 100×5/86/8=83.33100 \times \tfrac{5/8}{6/8} = 83.33. The next bid is the value given a sale. A knower who has just bought cannot sell, so a sale proves they know nothing, and the value goes back to exactly 50. Since a person who reverses is uninformed and their trades now say nothing, you need no width at all.

Classic wrong answer. Treating one person as a new draw every round. A second trade by the same person is much less informative than a trade by someone new, so the ask is lower than 90, and a reversal is decisive.

Follow-up. What happens to the bid if they keep buying? It stays at 50. The ask rises from 83.33 to 90, then towards 100, since each purchase makes it likelier they know.

Question 2.30 ★★★ QT, Trader, QR • market maker, hedge fund • experienced

Ten cards numbered 1 to 10 are shuffled and three are dealt face down. A contract pays the highest of the three. Your counterparty has looked at one of the three and calculates perfectly: they work out the contract’s expected value given that card, sell one lot at your bid if your bid is above it, buy one lot at your ask if your ask is below it, and otherwise pass. Quote a bid and an ask exactly 2 apart, in steps of 0.25. What is the unconditional value? Which quote loses the least on average, and is it centred on that value? What is the contract worth after each thing they can do?

Answer

Answer to Question 2.30.

The unconditional value is 33/4=8.2533/4 = 8.25. The best quote is 7.5 bid, 9.5 asked, which loses 0.05 on average. It is centred on 8.5, above the value. If they buy, the contract is worth 10, and if they pass, it is worth 145/18≈8.06145/18 \approx 8.06. They never sell.

Their value depends only on the card they saw:

Card12345678910
Value7.677.677.677.697.787.948.228.649.2210.00

Low cards barely matter, because one of the other two is usually higher. The values are bunched at the bottom and spread at the top.

A quote centred on 8.25, at 7.25 to 9.25, has no seller either, but sells to card 10 at 9.25, losing 0.75/10=0.0750.75/10 = 0.075. Moving up to 7.5 to 9.5 cuts that to 0.05. At 7.75 to 9.75, cards 1 to 4 begin to sell to you, and the loss returns to about 0.056. With a skewed distribution of their value, the best quote is not centred on the mean. As a check, 0.9×145/18+0.1×10=8.250.9 \times 145/18 + 0.1 \times 10 = 8.25.

Classic wrong answer. Centring on the value by habit. A quote protects you against the other side’s value, so it should sit around the distribution of that value, which is not symmetric here.

Question 2.31 ★★★ QT, Trader, QR • market maker, hedge fund • experienced

Two fair dice PP and QQ are rolled out of your sight. Contract SS pays P+QP + Q, and contract DD pays P−Q+7P - Q + 7. You quote both at 6.5 bid, 7.5 asked. Your counterparty has looked at exactly one die, chosen by a coin toss, and you do not know which. For each contract they work out its expected value given that die, sell one lot if that value is below your bid, buy one lot if it is above your ask, and otherwise pass. If you see only that they bought SS, what is each contract worth? What is each contract worth if you see them buy both, or buy SS and sell DD? What is your average loss per deal?

Answer

Answer to Question 2.31.

If they bought SS, then SS is worth 9, and DD stays at 7. If they buy both, both are worth 9, and they saw PP. If they buy SS and sell DD, then SS is worth 9 and DD is worth 5, and they saw QQ. You lose 2 on average per deal.

Seeing P=pP = p, they value both contracts at p+3.5p + 3.5. Seeing Q=qQ = q, they value SS at q+3.5q + 3.5 and DD at 10.5−q10.5 - q. Either way they buy SS when the seen die is 5 or 6. So a purchase of SS raises its value by 5.5−3.5=25.5 - 3.5 = 2, whichever die it was. For DD, it is up 2 or down 2 with equal chance, so unchanged on average.

Their trade on DD then tells you which die. Buying both means PP was the seen die, so DD rises to 9. Buying SS and selling DD means it was QQ, so DD falls to 5.

If the seen die is 3 or 4, they pass on both, which happens with probability 13\tfrac13. Otherwise you lose 1.5 on each of two trades, and 23×3=2\tfrac23 \times 3 = 2.

Classic wrong answer. Moving DD with SS because they are related. Their covariance is zero, as they have equal variance from PP and QQ with opposite signs on QQ, so one trade in SS alone tells you nothing about DD on average.

Follow-up. So how should you update on DD after seeing only the SS trade? Keep the mid, but widen: DD will now be 5 or 9, and you do not yet know which. Your uncertainty about it has grown though your best guess has not moved.

Question 2.32 ★★★ QT, Trader, QR • market maker, hedge fund • junior, experienced

A whole number from 1 to 10 has been chosen at random, and a contract pays it. You must quote, round after round, a bid and an ask exactly 1 apart, both whole numbers. Your counterparty knows the number. Each round they sell one lot at your bid if the number is below it, buy one lot at your ask if it is above it, and otherwise pass. How do you quote to make your expected total loss as small as possible, however many rounds the game lasts, and what is that loss? What does it become with the numbers 1 to 16? What does starting at 1 bid, 2 asked and walking upwards cost?

Answer

Answer to Question 2.32.

Quote through the middle each time, which is a binary search: start at 5 bid, 6 asked, then split what remains. The expected total loss is 24/10=2.424/10 = 2.4. With numbers 1 to 16, it is 4.754.75. Walking up from 1 bid, 2 asked costs 7.

Start at 5 and 6. If they pass, the number is 5 or 6, and you never lose again, so you show 5 bid, 6 asked forever. If they sell, the number is from 1 to 4, and you have lost 5−x5 - x. Next quote 2 bid, 3 asked. If the number is 1, they sell again and you lose 1, and then you know it. If it is 4, they buy, and you lose 1. So the total losses for the numbers 1 to 10 are:

Number12345678910
Total loss5322002235

That sums to 24. The first quote costs 2.0 on average, and the second only 0.4 more. A dynamic program over all sets of remaining numbers confirms that no other quoting does better, and that more rounds cost nothing once you have the number.

Walking upwards loses far more. If the number is 10, you lose 8, then 6, 4 and 2, for a total of 20, and the average over all numbers is 7. Every quote is on the wrong side of the same number.

Follow-up. What would you pay to be told the number? Up to 2.4, because that is what the information costs you to find out by quoting.

Why it matters. After a trade against you, an aggressive move of the quote costs less in total than a slow walk. A candidate who moves by a little each time pays the most.

Question 2.33 ★★★★ QT, Trader, QR • market maker, hedge fund, crypto • experienced

A contract’s fair value is fixed at 100, and you always quote 99 bid, 101 asked, or take down one side. Each of 10 rounds, one customer arrives and buys or sells one lot on a coin toss, and trades if that side of your quote is up. You start flat. Your final score is your profit, with the final position marked at 100, minus 0.20.2 times your final position squared. When should you take a side down? Give the largest position you are willing to reach with 1, 2 and 3 rounds left by reasoning, then the whole policy. What is the best expected score? Compare it with never taking a side down, and with the best fixed limit.

Answer

Answer to Question 2.33.

Take a side down when one more lot would add more penalty than it can repay. The largest position you will go to, by rounds left from 1 to 10, is 2, 3, 3, 4, 4, 5, 5, 5, 6, 6. The best expected score is 8.41, against 8.00 for never taking a side down, and 8.35 for the best fixed limit, which is ±3\pm 3.

Work back from the end by backward induction. With one round left, a purchase at position qq gains 1−0.2(2q+1)1 - 0.2(2q + 1), which is positive for q=1q = 1 and exactly zero for q=2q = 2. So you buy up to 2 and no further. With two rounds left, compute the value of each position with one round left, and compare again. A purchase now is worth more than it would be at the end, because one more trade may take you back down. So you buy up to 3.

Each step back adds time for flow to return you towards flat, so the allowed position grows with the rounds left.

Never taking a side down earns one per round, or 10, minus 0.2×E[q2]=0.2×100.2 \times \mathbb{E}[q^2] = 0.2 \times 10, so 8.00. A fixed limit of ±3\pm 3 gets most of the gain but is too tight early and too loose at the end.

Classic wrong answer. Treating a limit as one fixed number. It should depend on how long you have to work out of the position. A position with a day to unwind is not the same as one at the close.

Follow-up. What if the customers respond to price? You can then skew your quote instead of refusing trades. Taking a side down is an extreme skew, and a price does the same job more smoothly.

Question 2.34 ★★★★ QR, QT • market maker, hedge fund • experienced

A stock’s true value VV is normal with mean 100 and standard deviation 2. Uninformed customers send a net order uu, normal with mean 0 and standard deviation 100 shares, independent of VV. One insider knows VV and, without seeing uu, sends an order of xx shares to maximise expected profit. You see only the total y=x+uy = x + u, and you fill it all at a price that makes you break even given yy. Assume the insider’s order is linear in VV and your price is 100+λy100 + \lambda y. Find λ\lambda, the insider’s order and expected profit, and how much of the variance of VV remains after the price is set.

Answer

Answer to Question 2.34.

λ=σv/(2σu)=0.01\lambda = \sigma_v/(2\sigma_u) = 0.01 per share. The insider’s order is x=(σu/σv)(V−100)=50(V−100)x = (\sigma_u/\sigma_v)(V - 100) = 50(V - 100), and the expected profit is σvσu/2=100\sigma_v\sigma_u/2 = 100. After the price is set, half the variance of VV remains, so 2 out of 4. This is the one-period Kyle model.

The insider chooses xx to maximise x(V−100−λx)x(V - 100 - \lambda x), since the noise averages to zero. That gives x=β(V−100)x = \beta(V - 100) with β=1/(2λ)\beta = 1/(2\lambda). You set the price to the expected value given the flow, so λ\lambda is the regression slope of VV on yy:

λ=Cov(V,y)Var(y)=βσv2β2σv2+σu2.\lambda = \frac{\mathrm{Cov}(V, y)}{\mathrm{Var}(y)} = \frac{\beta \sigma_v^2}{\beta^2 \sigma_v^2 + \sigma_u^2}.

Substituting β=1/(2λ)\beta = 1/(2\lambda) gives 4λ2σu2=σv24\lambda^2\sigma_u^2 = \sigma_v^2, which is the result.

The insider’s order has the same variance as the noise, because βσv=σu\beta\sigma_v = \sigma_u. It hides in the crowd exactly. So half of the variance of yy is signal, and the price moves half of the way to the truth. The insider’s expected profit is E[β(V−100)2]/2=50×4/2=100\mathbb{E}\left[\beta (V-100)^2\right]/2 = 50 \times 4/2 = 100, and the noise traders pay for it: each order uu moves the price against itself by λu\lambda u, which costs them λσu2=100\lambda\sigma_u^2 = 100 on average.

Classic wrong answer. Having the insider trade until the price reaches the true value. The order moves the price, so the best size is only half of the one that would remove the edge.

Follow-up. What happens if noise doubles? λ\lambda halves, the insider’s order and profit double, and the price becomes no less informative. More noise pays the insider and does not change the variance left.

Question 2.35 ★★★★ QR, QT • market maker, crypto • experienced

A stock trades at a mid of 100. You hold 2 shares, and at the end of the period the mid will be normal with mean 100 and variance 4. You have exponential utility of final wealth, with risk aversion 0.1, so the utility of wealth ww is −e−0.1w-e^{-0.1 w}. You post one bid and one ask. Exactly one customer comes, wanting to buy or to sell one share on a coin toss. A seller takes a bid δ\delta below 100, and a buyer takes an ask δ\delta above 100, with probability e−1.5δe^{-1.5\delta}, for δ≥0\delta \ge 0. Derive the bid and ask that maximise your expected utility. What are they? How do they split into a shift caused by your position and a width? What happens as the risk aversion goes to 0?

Answer

Answer to Question 2.35.

The bid is about 98.35, and the ask is about 100.05. The width is γσ2+2γln⁡(1+γk)≈0.40+1.29=1.69\gamma\sigma^2 + \frac{2}{\gamma}\ln\left(1 + \frac{\gamma}{k}\right) \approx 0.40 + 1.29 = 1.69, and the centre is 100−γσ2q=99.2100 - \gamma\sigma^2 q = 99.2, with γ=0.1\gamma = 0.1, σ2=4\sigma^2 = 4, k=1.5k = 1.5 and q=2q = 2. As γ\gamma goes to 0, each side goes to 1/k1/k from 100, so about 99.33 to 100.67.

With no fill, exponential utility of a normal gives U0=−exp⁡(−γ(x+100q)+12γ2σ2q2)U_0 = -\exp\left(-\gamma(x + 100q) + \tfrac12\gamma^2\sigma^2 q^2\right), where xx is your cash. If your bid at depth δ\delta is taken, you pay 100−δ100 - \delta and hold q+1q + 1, so

U=U0exp⁡(−γ(δ−db)),db=12γσ2(2q+1).U = U_0 \exp\left(-\gamma(\delta - d_b)\right), \qquad d_b = \tfrac12\gamma\sigma^2(2q + 1).

Here dbd_b is the inventory cost of that purchase. Expected utility on that side is

U0[1+e−kδ(e−γ(δ−db)−1)].U_0\left[1 + e^{-k\delta}\left(e^{-\gamma(\delta - d_b)} - 1\right)\right].

Since U0U_0 is negative, you want the bracket small. Setting u=δ−dbu = \delta - d_b, the first-order condition gives e−γu=k/(k+γ)e^{-\gamma u} = k/(k + \gamma), which is

δ=db+1γln⁡(1+γk).\delta = d_b + \frac{1}{\gamma}\ln\left(1 + \frac{\gamma}{k}\right).

For the ask, the same steps give da=12γσ2(1−2q)d_a = \tfrac12\gamma\sigma^2(1 - 2q). So δb=1.0+0.645\delta_b = 1.0 + 0.645 and δa=−0.6+0.645=0.045\delta_a = -0.6 + 0.645 = 0.045. Holding 2 shares, you barely charge to sell, and you charge a lot to buy.

This is the one-period form of the Avellaneda-Stoikov quote. The shift depends on your position and the risk, and the width on the risk and the customers’ sensitivity to price.

Classic wrong answer. Adding the inventory term to one side only. It moves both sides, and db+da=γσ2d_b + d_a = \gamma\sigma^2 is the part it adds to the width.