量化金融 · 第 18 册 · 职业发展

Interviews I: Maths, Probability and Speed

本书暂未推出简体中文版。现有版本:English, Français。

Interviews I: Maths, Probability and Speed · 职业发展

2Mental Technique

The methods behind fast arithmetic: why a shortcut works, when it fails and how to check its answer. Interviewers ask about these directly, and they also expect them along the way in longer questions. The chapter starts with products and percentages, moves to compounding, logs and roots, and ends with estimates that combine them. No calculator, and say each step aloud.

Question 2.1 ★ QT, Trader, Analyst • any • junior

In your head, what is 97 times 103? What makes it quick, and when does the same idea work?

Answer

Answer to Question 2.1.

The product is 9991.

Use the difference of squares. The two numbers sit 3 either side of 100, so 97×103=(100−3)(100+3)=1002−32=999197 \times 103 = (100 - 3)(100 + 3) = 100^2 - 3^2 = 9991.

The idea works whenever the two numbers have an even sum and their average is easy to square. For 47×5347 \times 53 the average is 50, which gives 2500−9=24912500 - 9 = 2491. For 96×10896 \times 108 the average is 102 and each number is 6 away from it, which gives 10 404−36=10 36810\,404 - 36 = 10\,368.

Follow-up. And if the sum is odd, as in 47×5447 \times 54? Peel off one copy first: 47×54=47×53+47=2491+47=253847 \times 54 = 47 \times 53 + 47 = 2491 + 47 = 2538.

Classic wrong answer. Saying “about 10 000”. That is a good size check, but an interviewer asking for the product wants the 9 taken off. The correction is a single small square, so it costs nothing.

Question 2.2 ★ QT, Trader • market maker, bank • junior

What is 85 squared? There is a quick rule for squaring any number that ends in 5: state it and prove it.

Answer

Answer to Question 2.2.

852=722585^2 = 7225. The rule: multiply the leading part by one more than itself, and then write 25.

For 85 the leading part is 8, and 8×9=728 \times 9 = 72, so the answer is 72 followed by 25. To prove it, write the number as 10a+510a + 5:

(10a+5)2=100a2+100a+25=100 a(a+1)+25.(10a + 5)^2 = 100a^2 + 100a + 25 = 100\,a(a + 1) + 25.

The rule holds for any aa, not only one digit: 1152115^2 has a=11a = 11, and 11×12=13211 \times 12 = 132 gives 13 22513\,225.

Follow-up. Is there a similar rule near 50? Yes. (50+d)2=2500+100d+d2(50 + d)^2 = 2500 + 100d + d^2, so add dd to 25 for the hundreds and write d2d^2 in the last two places. 532=280953^2 = 2809, and with d=−3d = -3, 472=220947^2 = 2209.

Follow-up. How do you square any other two-digit number? Move to the nearest round number and correct: n2=(n+d)(n−d)+d2n^2 = (n + d)(n - d) + d^2. So 672=70×64+9=448967^2 = 70 \times 64 + 9 = 4489.

Question 2.3 ★ QT, Trader • market maker • junior

Both 97 and 96 are just below 100. Show how to multiply them using only how far each one is from 100, and explain why your method works.

Answer

Answer to Question 2.3.

The product is 9312. Take 3 from 96, or equally 4 from 97, to get the 93. Then multiply the distances from 100, 3×4=123 \times 4 = 12, and write it in the last two places.

To see why, let the distances be aa and bb:

(100−a)(100−b)=100 (100−a−b)+ab.(100 - a)(100 - b) = 100\,(100 - a - b) + ab.

The first term is the left part of the answer, and abab is the right part. The same algebra handles numbers above 100, where the distances add: 103×106=100×109+18=10 918103 \times 106 = 100 \times 109 + 18 = 10\,918.

Classic wrong answer. Treating the right part as two digits no matter what. If abab reaches 100 it carries. For 88×8588 \times 85 the distances are 12 and 15, so the left part is 73 and ab=180ab = 180, and the answer is 7300+180=74807300 + 180 = 7480.

Follow-up. Does this need 100 as the base? No. Any easy base works. Near 50, 48×47=50×45+6=225648 \times 47 = 50 \times 45 + 6 = 2256.

Question 2.4 ★ QT, Trader, Analyst • any • junior

What is 368 times 125, in your head? What general trick are you using, and which other multipliers does it cover?

Answer

Answer to Question 2.4.

The product is 46 00046\,000.

Since 125=1000/8125 = 1000/8, multiply by 1000 and divide by 8. In practice do the division first, because it keeps the numbers small: 368/8=46368 / 8 = 46, and then attach three zeros.

The trick is to replace a hard multiplier by an easy fraction of a power of ten. The set worth knowing is 5=10/25 = 10/2, 25=100/425 = 100/4, 125=1000/8125 = 1000/8, 12.5=100/812.5 = 100/8 and 75=300/475 = 300/4. If the division does not come out whole, keep going in decimals: 372/8=46.5372 / 8 = 46.5, so 372×125=46 500372 \times 125 = 46\,500.

Follow-up. What about 368×375368 \times 375? 375=3×125375 = 3 \times 125, so three times the answer above: 138 000138\,000.

Follow-up. And dividing by 125? Do the opposite: multiply by 8 and divide by 1000. 3500/125=28 000/1000=283500 / 125 = 28\,000 / 1000 = 28.

Question 2.5 ★ QT, Trader • market maker, bank • junior

There is a trick for multiplying by 11 by adding neighbouring digits. Use it on 486 times 11, including the carries, and explain why it works.

Answer

Answer to Question 2.5.

The product is 5346.

Write the first digit, then the sum of each pair of neighbours, then the last digit, working from the right so that you can carry. For 486 the columns are 66, then 8+6=148 + 6 = 14, then 4+8=124 + 8 = 12, then 44. Going from the right: write 6; write 4 and carry 1; 12+1=1312 + 1 = 13, so write 3 and carry 1; 4+1=54 + 1 = 5. The result is 5346.

It works because 11n=10n+n11n = 10n + n. Writing nn shifted one place above nn itself puts each digit in a column with its neighbour, and column addition then gives exactly those sums:

4860+486=5346.4860 + 486 = 5346.

Classic wrong answer. Forgetting the carry and running the column sums together, which gives something like 4 12 14 6. Doing the two-line sum is safer until the carries are automatic.

Follow-up. What is the matching trick for 101? Writing the number twice with a two-place shift: 486×101=48 600+486=49 086486 \times 101 = 48\,600 + 486 = 49\,086.

Question 2.6 ★ QT, Trader, Analyst, Risk • any • junior

What is 16% of 25? Why can you swap the two numbers in a question like this? Use the same idea on 18% of 50, and on 4% of 175.

Answer

Answer to Question 2.6.

16%16\% of 25 is 4. The same holds for 25% of 16, which is what you actually compute.

The swap is legal because both are the same product over 100: p%p\% of nn is pn/100pn/100, and multiplication does not care about the order. So choose whichever way round has an easy percentage. Thus 18% of 50 is 50% of 18, which is 9, and 4% of 175 is 175% of 4, which is 7.

Classic wrong answer. Treating this as a party trick that only works with round numbers. It always holds. It only helps when one of the two numbers is an easy percentage: 25, 50, 75, 125, or a multiple of 10. For 37% of 41, neither way round is easy.

Follow-up. What is 36% of 25, and 12.5% of 64? 36% of 25 is 25% of 36, which is 9. And 12.5% is one eighth, so 12.5% of 64 is 8.

Question 2.7 ★ QT, Trader, Analyst, Risk • any • junior

A price of 384 includes 20% tax on the pre-tax price. How much of the 384 is tax? Give the quickest method.

Answer

Answer to Question 2.7.

The tax is 64, and the pre-tax price is 320.

The price including tax is 120% of the pre-tax price, so the tax is 20/12020/120 of it, which is one sixth, and 384/6=64384 / 6 = 64. In general, a tax of rate rr on the net makes up r/(1+r)r/(1 + r) of the gross.

Classic wrong answer. Taking 20% of 384, which gives 76.8. The 20% applies to the pre-tax price, not to the amount that already includes the tax.

Follow-up. What share of the gross is a 25% markup, and an 8% one? A 25% markup is one fifth of the gross, since 25/125=1/525/125 = 1/5. An 8% markup is 8/108=2/278/108 = 2/27, or about 7.4%7.4\%.

Follow-up. You paid 384 after a 20% discount. What was the list price? You paid 80% of the list price, so it was 384/0.8=480384 / 0.8 = 480. The discount of 96 is a quarter of what you paid, and that is the same reverse step.

Question 2.8 ★ QT, Trader, Analyst, Risk • any • junior

An investment falls 20%. What percentage rise brings it back to where it started? Give the general formula for a fall of any size, and use it for a fall of 37.5%.

Answer

Answer to Question 2.8.

A rise of 25% is needed. In general, after a fall of dd, the rise needed is d/(1−d)d/(1 - d). A fall of 37.5% needs a rise of 60%.

After the fall you hold 1−d1 - d of the start, and the rise must bring it back to 1, so it must be 11−d−1=d1−d\frac{1}{1 - d} - 1 = \frac{d}{1 - d}. Fractions make this quick: a fall of one fifth leaves four fifths, and you need to gain one quarter. A fall of 37.5%=3/837.5\% = 3/8 leaves 5/85/8, and you need to gain 3/53/5. A fall of one half needs a rise of 100%.

Classic wrong answer. Saying 20%. The rise is taken on a smaller base, so it must be larger in percentage terms.

Why it matters. A strategy that is 20% below its high must earn 25% to recover, and one that is 50% below must double. So drawdowns cost more than they look, and the cost grows quickly with their size.

Question 2.9 ★ QT, Trader, Analyst • any • junior

Which is larger, 7/97/9 or 11/1411/14, and by how much? Answer without turning either into a decimal.

Answer

Answer to Question 2.9.

11/1411/14 is larger, by 1/1261/126.

Cross-multiply: a/ba/b and c/dc/d compare in the same way as adad and bcbc, as long as the denominators are positive. Here 7×14=987 \times 14 = 98 and 9×11=999 \times 11 = 99, so the second is larger. The difference is the gap in cross products over the product of denominators:

1114−79=99−9814×9=1126.\frac{11}{14} - \frac{7}{9} = \frac{99 - 98}{14 \times 9} = \frac{1}{126}.

A second route compares the distances from 1: 2/9≈0.2222/9 \approx 0.222 and 3/14≈0.2143/14 \approx 0.214, and the smaller gap belongs to the larger fraction.

Classic wrong answer. Saying the fraction with the larger numbers must be larger. It says nothing: 1/21/2 exceeds 11/3011/30.

Follow-up. Which is larger, 13/1713/17 or 23/3023/30? 13×30=39013 \times 30 = 390 and 17×23=39117 \times 23 = 391, so 23/3023/30 is larger, by 1/5101/510.

Question 2.10 ★ QT, Trader • market maker • junior

You know that 1/7=0.142857142857…1/7 = 0.142857142857\dots, with those six digits repeating. How do you write 3/73/7 and 5/75/7 as decimals without dividing, and why does your method work?

Answer

Answer to Question 2.10.

3/7=0.428571…3/7 = 0.428571\dots and 5/7=0.714285…5/7 = 0.714285\dots. Keep the same six digits in the same cyclic order, and start from whichever digit gives the right size.

For 3/73/7, you know it is about 0.430.43, so the cycle must start at 4: 428571. For 5/75/7, about 0.710.71, it starts at 7: 714285.

The reason is long division. Dividing 1 by 7 passes through the remainders 1,3,2,6,4,51, 3, 2, 6, 4, 5 and back to 1, which is every possible nonzero remainder. Starting the division from 3 instead of 1 only means joining that same loop at a different point, so you read the same digits from a different place.

Follow-up. Does every fraction behave this way? No. It needs the remainders to form one loop. For 13 the remainders split into two loops, so 1/13=0.076923…1/13 = 0.076923\dots and 3/13=0.230769…3/13 = 0.230769\dots share a cycle, but 2/13=0.153846…2/13 = 0.153846\dots does not.

Question 2.11 ★ QT, Trader, Analyst • any • junior

You buy 300 shares at 80 and 500 shares at 88. What is your average price? Find it without working out either total cost, and say what rule you are using.

Answer

Answer to Question 2.11.

The average price is 85.

Use deviations from a base. Take 80 as the base. The 500 shares at 88 stand 8 above it, and they make up 5/85/8 of the total, so the average sits 5/85/8 of the way from 80 to 88. That is 80+5=8580 + 5 = 85.

A weighted average of two numbers always lies between them, at a distance proportional to the other side’s weight. So you need only the ratio of the weights, never the totals.

Follow-up. You hold 400 at 101.5101.5, 100 at 102 and 500 at 101. What is your average? Use a base of 101. The deviations are 0.50.5, 1 and 0, with weights 0.40.4, 0.10.1 and 0.50.5. Their weighted sum is 0.2+0.1=0.30.2 + 0.1 = 0.3, so the average is 101.3101.3.

Classic wrong answer. Averaging the prices without weights: (80+88)/2=84(80 + 88)/2 = 84. The larger order pulls the average towards its own price, so the answer must be above 84.

Question 2.12 ★ QT, Trader, Analyst, Risk • any • junior

By the rule of 72, how long does money take to double at 8% a year, compounded yearly? How close is that to the exact answer, and why does a rule like this work at all?

Answer

Answer to Question 2.12.

The rule gives 9 years, and the exact answer is 9.0069.006 years. It is that close at 8%.

Solve (1+r)t=2(1 + r)^t = 2, which gives t=ln⁡2/ln⁡(1+r)t = \ln 2 / \ln(1 + r). For small rr, ln⁡(1+r)≈r\ln(1 + r) \approx r, so t≈0.693/rt \approx 0.693/r, or 69.369.3 divided by the rate in percent. Then ln⁡(1+r)\ln(1 + r) is a little below rr, which pushes the numerator up: at 8% the exact numerator is about 72.0572.05. The number 72 is also chosen because it divides by 2, 3, 4, 6, 8, 9 and 12.

Classic wrong answer. Using simple interest: 100/8=12.5100/8 = 12.5 years. That ignores interest on the interest, which is the whole point of doubling rules.

Follow-up. How long does it take to triple at 8%? Use ln⁡3≈1.1\ln 3 \approx 1.1 in the same way. At this rate the numerator rises to about 114, so the answer is about 114/8=14.25114/8 = 14.25 years. The exact value is 14.2714.27.

Question 2.13 ★ QT, Trader, Risk • any • junior

A stock has an annual volatility of 32%, meaning that its yearly return has a standard deviation of 32%. There are 252 trading days in a year, and daily returns are independent. What is the standard deviation of one day’s return? What quick number do you divide by?

Answer

Answer to Question 2.13.

About 2% a day. The quick number is 16.

Variances of independent returns add, so the standard deviation grows like the square root of time. Annual volatility is therefore daily volatility times 252≈15.87\sqrt{252} \approx 15.87. Using 16 is about 1% off, which is far better than any estimate of volatility itself. So 32%/16=2%32\% / 16 = 2\%; the exact figure is 2.02%2.02\%.

The other two numbers worth knowing are 52≈7.2\sqrt{52} \approx 7.2 for weeks and 12≈3.46\sqrt{12} \approx 3.46 for months. At 32% annual volatility a week’s return has a standard deviation of about 4.4%4.4\%, and a month’s about 9.2%9.2\%.

Classic wrong answer. Dividing by 252, which gives 0.13%0.13\%. That treats volatility as if it added up over time as a return does. Variance adds, not volatility.

Why it matters. This is the reflex behind every daily risk figure. Seeing a stock move 4% in a day at 32% annual volatility, you know at once that it is a two-standard-deviation day.

Question 2.14 ★ QR, QT, Trader • any • junior

You are told only that log⁡102≈0.301\log_{10} 2 \approx 0.301 and log⁡103≈0.477\log_{10} 3 \approx 0.477. Find log⁡1072\log_{10} 72 and log⁡100.0072\log_{10} 0.0072 without a calculator.

Answer

Answer to Question 2.14.

log⁡1072≈1.857\log_{10} 72 \approx 1.857 and log⁡100.0072≈−2.143\log_{10} 0.0072 \approx -2.143.

Factor the number into primes you know, and turn the product into a sum. Since 72=23×3272 = 2^3 \times 3^2,

log⁡1072=3(0.301)+2(0.477)=0.903+0.954=1.857.\log_{10} 72 = 3(0.301) + 2(0.477) = 0.903 + 0.954 = 1.857.

The exact value is 1.85731.8573. For the second, 0.0072=72×10−40.0072 = 72 \times 10^{-4}, so subtract 4 and get −2.143-2.143.

You also have log⁡105\log_{10} 5 for free: 5=10/25 = 10/2, so it is 1−0.301=0.6991 - 0.301 = 0.699. These three, with powers of 10, cover every number made of the primes 2, 3 and 5. That is why the pair is worth memorising.

Follow-up. What is log⁡101.5\log_{10} 1.5? 1.5=3/21.5 = 3/2, so it is 0.477−0.301=0.1760.477 - 0.301 = 0.176.

Classic wrong answer. Trying to take the log of 0.00720.0072 as a positive number between 0 and 1. A number below 1 has a negative log, so a sign check catches this at once.

Question 2.15 ★ QT, QD, Dev, LLE • any • junior

Without a calculator, roughly how large is 2302^{30}, and how many doublings take you from 1 to one trillion? How far off is your first estimate, and what fact are you using?

Answer

Answer to Question 2.15.

2302^{30} is about 10910^9, a billion. One trillion takes about 40 doublings. The first estimate is about 7% low.

The fact is that 210=1024≈1032^{10} = 1024 \approx 10^3. So 230=(210)3≈1092^{30} = (2^{10})^3 \approx 10^9, and 240≈10122^{40} \approx 10^{12}. The true 2302^{30} is 1 073 741 8241\,073\,741\,824, or 1.0243≈1.0741.024^3 \approx 1.074 billion. The error compounds at about 2.4%2.4\% per factor of 1024, so it matters more for high powers: 21002^{100} is about 1.27×10301.27 \times 10^{30} rather than 103010^{30}.

Follow-up. How large is 2642^{64}? 260≈1.15×10182^{60} \approx 1.15 \times 10^{18}, using 1.0246≈1.151.024^6 \approx 1.15, and 24=162^4 = 16, so about 1.8×10191.8 \times 10^{19}.

Why it matters. Developers read sizes this way all the time. A table with a billion keys needs about 30 bits per key to tell them apart, and it runs out of a 32-bit range quickly.

Question 2.16 ★ QR, QT, Trader • any • junior

Estimate 50\sqrt{50} to three decimal places with one step of mental work. Is your estimate too high or too low, and why is it always on that side?

Answer

Answer to Question 2.16.

50≈7.071\sqrt{50} \approx 7.071. The estimate 7+1/14=7.07147 + 1/14 = 7.0714 is slightly too high, and the true value is 7.071077.07107.

Take the nearest easy square, a2=49a^2 = 49, with d=50−49=1d = 50 - 49 = 1, and use

a2+d≈a+d2a.\sqrt{a^2 + d} \approx a + \frac{d}{2a}.

This is one step of Newton’s method. Squaring the estimate shows why it always overshoots: (a+d/2a)2=a2+d+(d/2a)2(a + d/2a)^2 = a^2 + d + (d/2a)^2, which is above the target by a positive amount, for either sign of dd. So one more correction, always downward, brings it far closer, and it still stays just above the true value.

Follow-up. Estimate 3 200 000\sqrt{3\,200\,000}. Write it as 10003.21000 \sqrt{3.2}. Since 1.82=3.241.8^2 = 3.24, take a=1.8a = 1.8 and d=−0.04d = -0.04. That gives 1.8−0.04/3.6=1.7891.8 - 0.04/3.6 = 1.789, so about 1789. The true value is 1788.91788.9.

Classic wrong answer. Interpolating linearly between 49\sqrt{49} and 64\sqrt{64}, which gives 7+1/157 + 1/15. It uses a slope that is too flat for this part of the curve, and so it comes out low by about 0.0040.004.

Question 2.17 ★ QT, Trader, Analyst, Risk • bank, hedge fund • junior

One basis point is one hundredth of one percent. What is 10 basis points of $3.5 million? A loan of $250 million pays an extra one basis point a year: what is that in dollars over three months? Give the quick method.

Answer

Answer to Question 2.17.

10 basis points of $3.5 million is $3500, and the extra interest over three months is $6250.

Remember one fixed point: one basis point of $1 million is $100. So nn basis points of mm million dollars is 100 nm100\,nm dollars: 100×10×3.5=3500100 \times 10 \times 3.5 = 3500. For the loan, one basis point of $250 million is $25 000 a year, and three months is a quarter of that, or $6250.

Classic wrong answer. Confusing a basis point with 0.010.01, which is a whole percent. As a decimal, one basis point is 0.00010.0001. If your answer for the loan looks like $625 000, you have made this error.

Follow-up. One eighth of a percent is how many basis points? 12.5, since 1% is 100 basis points.

Why it matters. Interest, spreads and fees are all quoted in basis points, and the conversion to dollars has to come without thinking.

Question 2.18 ★ QT, Trader, Risk • bank, hedge fund • junior

A bond price is quoted in 32nds of a point, so that 99-17 means 99 and 17/3217/32. What is 99-17 as a decimal, and how do you get it without dividing by 32?

Answer

Answer to Question 2.18.

99-17 is 99.5312599.53125.

Know that 1/32=0.031251/32 = 0.03125, by halving down from one half: 0.50.5, 0.250.25, 0.1250.125, 0.06250.0625, 0.031250.03125. Then build the fraction from pieces: 17/32=16/32+1/32=0.5+0.03125=0.5312517/32 = 16/32 + 1/32 = 0.5 + 0.03125 = 0.53125.

Follow-up. Going the other way, how would 101.40625101.40625 be quoted? The fractional part is 0.406250.40625. Take away 0.3750.375, which is 12/3212/32, and 0.031250.03125 is left, which is 1/321/32. So it is 13/3213/32, or 101-13.

Follow-up. What is the dollar value of a price move of one 32nd on $10 million of face value? Price is per 100 of face, so a 32nd is 0.031250.03125 per 100, or 0.03125%0.03125\% of face, which is $3125.

Classic wrong answer. Reading 99-17 as 99.1799.17. The digits after the hyphen count 32nds, not hundredths, so it is more than half a point above 99 and not about a sixth.

Question 2.19 ★★ QR, QT, Trader • any • junior

Without working out either product in full, which is larger, 37×4337 \times 43 or 38×4238 \times 42, and by exactly how much? What is the general rule?

Answer

Answer to Question 2.19.

38×4238 \times 42 is larger, by exactly 5.

Both pairs add to 80, so both have average 40. Write each as 4040 plus or minus its half-gap:

37×43=402−32=1591,38×42=402−22=1596.37 \times 43 = 40^2 - 3^2 = 1591, \qquad 38 \times 42 = 40^2 - 2^2 = 1596.

The general rule: with the sum fixed, the product is the square of the average minus the square of the half-gap. So the closer the numbers are together, the larger their product. It is largest when they are equal, and each step apart costs the square of the half-gap, not a fixed amount.

Follow-up. Two numbers add to 100. What is the largest possible product? Fifty each gives 2500. Gaps of 2, 10 and 20 give 2499, 2475 and 2400, so the loss is small near the top and quickly larger away from it.

Follow-up. Does the rule extend to more factors? Yes. With the sum fixed, the product of positive numbers is largest when they are equal. This is the inequality between the arithmetic and geometric means.

Question 2.20 ★★ QT, Trader, Risk • any • junior

Work out 1.02×0.971.02 \times 0.97 to four decimal places, in your head. Which part of the calculation may you drop when you only need a rough answer, and how large is the error?

Answer

Answer to Question 2.20.

1.02×0.97=0.98941.02 \times 0.97 = 0.9894. For a rough answer drop the cross term, which leaves 0.990.99, with an error of 0.00060.0006.

Expand with a=0.02a = 0.02 and b=−0.03b = -0.03:

(1+a)(1+b)=1+a+b+ab=1+0.02−0.03−0.0006=0.9894.(1 + a)(1 + b) = 1 + a + b + ab = 1 + 0.02 - 0.03 - 0.0006 = 0.9894.

The first-order part, 1+a+b1 + a + b, is the sum of the two moves. The cross term abab is the product of two small numbers, so it is much smaller, and its sign is the product of their signs.

Classic wrong answer. Getting the sign of the cross term wrong and answering 0.99060.9906. With one move up and one down, the cross term is negative.

Follow-up. And 1.02×1.03×0.961.02 \times 1.03 \times 0.96? First order: 1+0.02+0.03−0.04=1.011 + 0.02 + 0.03 - 0.04 = 1.01. The pairwise products are 0.0006−0.0008−0.0012=−0.00140.0006 - 0.0008 - 0.0012 = -0.0014, and the triple product is about −0.00002-0.00002. That gives 1.008581.00858, and the exact value is 1.0085761.008576.

Why it matters. Returns over a few periods add to first order. This tells you how large a mistake that is.

Question 2.21 ★★ QR, QT, Trader, QD, Dev • any • junior

Someone tells you that 3847×26=100 1223847 \times 26 = 100\,122. Show that this is wrong without doing the multiplication. Which quick checks does it pass, and which does it fail?

Answer

Answer to Question 2.21.

It is wrong, because it fails the digit-sum check. It passes the checks on the last digit and on the size. The true product is 100 022100\,022.

Last digit: 7×6=427 \times 6 = 42 ends in 2, and so does the claim. Size: 3850×26=100 1003850 \times 26 = 100\,100 is very close to the claim. So neither helps.

Casting out nines: a number has the same remainder modulo 9 as the sum of its digits, because 10≡110 \equiv 1 modulo 9. Here 3847 has digit sum 22, which reduces to 4. And 26 reduces to 8. So the product must reduce to 4×8=324 \times 8 = 32, which reduces to 5. The claim’s digits add to 6, not 5, so it is wrong.

Follow-up. If the check passes, is the product right? No. A pass only says that the error is a multiple of 9, which a random error is about one time in nine. The check can prove a product wrong, but not right.

Why it matters. This takes a few seconds and catches most slips, including one wrong digit, which is the usual error. Use it on your own sums before you say them.

Question 2.22 ★★ QT, Trader • market maker • junior

What is 73×6873 \times 68: 4964, 4954, 5064 or 4864? All four end in the right digit and have about the right size. How do you pick the answer without multiplying?

Answer

Answer to Question 2.22.

It is 4964, chosen by casting out nines.

Every option ends in 4, as it must, since 3×8=243 \times 8 = 24. So the last digit does not help. Size does not settle it easily either, since 70×70=490070 \times 70 = 4900 only tells you that the answer is in the region. So compare remainders modulo 9. 73 has digit sum 10, which reduces to 1, and 68 has digit sum 14, which reduces to 5. So the product must reduce to 5. The options reduce to 4964→23→54964 \to 23 \to 5, 4954→22→44954 \to 22 \to 4, 5064→15→65064 \to 15 \to 6 and 4864→22→44864 \to 22 \to 4. Only the first fits.

To check it directly, the difference of squares works with half-integers: the average is 70.570.5 and the half-gap is 2.52.5, so 70.52−2.52=4970.25−6.25=496470.5^2 - 2.5^2 = 4970.25 - 6.25 = 4964.

Classic wrong answer. Choosing the option nearest to 70×70=490070 \times 70 = 4900. That picks 4864, which is wrong. A rounded product says where the answer lies, not which of several close options it is.

Question 2.23 ★★ QR, QT, QD • any • junior

Someone writes 71×88=642871 \times 88 = 6428. Adding up the digits and comparing modulo 9 does not catch this error. Why not, and what quick check does catch it?

Answer

Answer to Question 2.23.

A digit-sum check cannot see this error because 6428 is 6248 with two digits swapped, and swapping digits leaves the sum alone. Use a check modulo 11, or the fact that 8 divides 88. The true product is 6248.

The digit sums agree: 71 reduces to 8, 88 reduces to 7, and 8×7=568 \times 7 = 56 reduces to 2; and 6428 has digit sum 20, which reduces to 2. So nines pass.

For eleven, 10≡−110 \equiv -1 modulo 11, so a number has the same remainder as the alternating sum of its digits from the right. Since 88=8×1188 = 8 \times 11, the product must leave remainder 0. But 8−2+4−6=48 - 2 + 4 - 6 = 4, so 6428 fails. The true 6248 has 8−4+2−6=08 - 4 + 2 - 6 = 0. The factor 8 also catches it, as 428/8428 / 8 is not whole, while 248/8=31248 / 8 = 31.

Follow-up. Why does eleven catch swaps? Swapping neighbours moves each digit to a place of opposite sign, so the alternating sum changes by twice their difference, and that is not a multiple of 11 unless the digits are equal.

Question 2.24 ★★ QT, Trader, Analyst, Risk • any • junior

A price rises 20% and then falls 15%. What is the net change, and does the order matter? Give a rule for combining two percentage moves in your head.

Answer

Answer to Question 2.24.

The net change is +2%+2\%, and the order does not matter.

Multiply the factors: 1.2×0.85=1.021.2 \times 0.85 = 1.02. Multiplication does not care about the order. The rule for combining two moves is a+b+aba + b + ab:

0.20−0.15+(0.20)(−0.15)=0.05−0.03=0.02.0.20 - 0.15 + (0.20)(-0.15) = 0.05 - 0.03 = 0.02.

So add the two moves, and then add their product, watching its sign. The product is always of the two moves together, so it is negative when they have opposite signs.

Classic wrong answer. Saying +5%+5\%, from adding the two percentages. From 100 the rise adds 20, and the fall, taken on the higher base of 120, removes 18 rather than 15.

Follow-up. And rising 10% and then falling 10%? −1%-1\%: the moves cancel and only the cross term is left. In the same way, +50%+50\% and −50%-50\% leave you 25%25\% down.

Question 2.25 ★★ QR, QT, Trader • any • junior

Estimate 1/0.971/0.97 and 1/1.031/1.03 to four decimal places without dividing. What approximation do you use, and when does it stop working?

Answer

Answer to Question 2.25.

1/0.97≈1.03091/0.97 \approx 1.0309 and 1/1.03≈0.97091/1.03 \approx 0.9709.

Use the geometric series: for small xx,

11−x=1+x+x2+…,11+x=1−x+x2−… .\frac{1}{1 - x} = 1 + x + x^2 + \dots, \qquad \frac{1}{1 + x} = 1 - x + x^2 - \dots.

With x=0.03x = 0.03 the terms are 0.030.03, 0.00090.0009 and 0.0000270.000027, so 1/0.97≈1.0309271/0.97 \approx 1.030927 and 1/1.03≈0.9708731/1.03 \approx 0.970873. The next term is below 10−610^{-6}, so three terms are good to about six decimal places.

The method stops working as xx grows: each term is only xx times the last, so for x=0.2x = 0.2 you need many terms. Switch to fractions there: 1/0.8=5/4=1.251/0.8 = 5/4 = 1.25.

Classic wrong answer. Saying 1/0.97≈1.031/0.97 \approx 1.03 and stopping. That is right to two decimal places, but the question asks for four, and the square term supplies them.

Why it matters. This is how to invert an exchange rate or a discount factor on the spot. A rate of 0.970.97 in one direction is 1.03091.0309 in the other, not 1.031.03. On a large order those missing 0.00090.0009 are 9 basis points.

Question 2.26 ★★ QR, QT, Trader, Risk • any • junior

Estimate 1.05101.05^{10} to two decimal places, in your head, in two different ways.

Answer

Answer to Question 2.26.

1.0510≈1.631.05^{10} \approx 1.63. The exact value is 1.628891.62889.

First way, repeated squaring: 1.052=1.10251.05^2 = 1.1025. Squaring gives 1.054≈1.21551.05^4 \approx 1.2155. Multiply by 1.051.05 to get 1.055≈1.27631.05^5 \approx 1.2763. Squaring that gives 1.6291.629. The squares look hard but are easy: 1.10252≈1+2(0.1025)+0.10252≈1.21551.1025^2 \approx 1 + 2(0.1025) + 0.1025^2 \approx 1.2155.

Second way, logs: ln⁡1.05≈0.05−0.00125+0.00004=0.04879\ln 1.05 \approx 0.05 - 0.00125 + 0.00004 = 0.04879, so ten of them give 0.48790.4879. Then e0.4879=e0.5e−0.0121≈1.6487×0.988≈1.629e^{0.4879} = e^{0.5} e^{-0.0121} \approx 1.6487 \times 0.988 \approx 1.629.

Classic wrong answer. Saying e0.5≈1.65e^{0.5} \approx 1.65, using ln⁡(1+x)≈x\ln(1 + x) \approx x. Since ln⁡(1+x)\ln(1 + x) is below xx, this always comes out too high. The other wrong answer is the simple 1.501.50, which ignores compounding.

Follow-up. What does the rule of 72 say? Doubling takes 72/5=14.472/5 = 14.4 years, so ten years gives 210/14.4=20.694≈1.622^{10/14.4} = 2^{0.694} \approx 1.62. That is rougher, but it takes only seconds.

Follow-up. How can you check it? Use the binomial expansion: 1+10(0.05)+45(0.0025)+120(0.000125)+210(0.00000625)≈1.62881 + 10(0.05) + 45(0.0025) + 120(0.000125) + 210(0.00000625) \approx 1.6288. The terms fall quickly, so five are enough.

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

Estimate 0.991000.99^{100} to three decimal places without a calculator. You may use 1/e≈0.3681/e \approx 0.368. Why is 1/e1/e alone not good enough?

Answer

Answer to Question 2.27.

0.99100≈0.3660.99^{100} \approx 0.366. The exact value is 0.366030.36603.

Take logs: ln⁡0.99=−0.01−0.00005−⋯≈−0.01005\ln 0.99 = -0.01 - 0.00005 - \dots \approx -0.01005. So 100ln⁡0.99≈−1.005100 \ln 0.99 \approx -1.005, and

0.99100≈e−1e−0.005≈0.3679×0.995≈0.366.0.99^{100} \approx e^{-1} e^{-0.005} \approx 0.3679 \times 0.995 \approx 0.366.

The answer 1/e≈0.3681/e \approx 0.368 uses ln⁡(1−x)≈−x\ln(1 - x) \approx -x and misses the next term of the series, −x2/2-x^2/2. Over 100 periods the missing piece is −100×0.00005=−0.005-100 \times 0.00005 = -0.005, which is a half-percent change and shows up in the third decimal.

Follow-up. What is 1.011001.01^{100}? The same way, 100ln⁡1.01≈0.995100 \ln 1.01 \approx 0.995, so e×0.995≈2.705e \times 0.995 \approx 2.705. The exact value is 2.704812.70481. Note that 0.991000.99^{100} and 1/1.01100=0.369711/1.01^{100} = 0.36971 are different numbers, and both differ from 1/e1/e.

Why it matters. This is the chance of no event in 100 independent tries at 1% each. So 100 tries at 1% give at least one event with probability about 63.4%63.4\%, not 100%.

Question 2.28 ★★ QR, QT, Trader • any • junior

The rule of 72 says that money doubles in about 72/r72/r years at rr percent a year, compounded yearly. How wrong is it at r=1r = 1 and at r=36r = 36? Near which rate is it exact? What simple correction fixes it at all these rates?

Answer

Answer to Question 2.28.

At r=1r = 1 the rule gives 72 years against an exact 69.6669.66, which is 3.4%3.4\% too long. At r=36r = 36 it gives 2 years against an exact 2.252.25, which is 11%11\% too short. It is exact near r=7.85r = 7.85. A good fix is a numerator of 69.3+r/369.3 + r/3.

The exact doubling time is ln⁡2/ln⁡(1+r/100)\ln 2 / \ln(1 + r/100). Writing it as a numerator over rr, the numerator is rln⁡2/ln⁡(1+r/100)r \ln 2 / \ln(1 + r/100), which is not constant: it rises with rr from 69.369.3. Its values are about 69.6669.66 at r=1r = 1, 72.0572.05 at r=8r = 8 and 81.281.2 at r=36r = 36.

Expanding ln⁡(1+x)\ln(1 + x) to second order gives 69.3 (1+x/2)69.3\,(1 + x/2) with x=r/100x = r/100, a slope of 0.350.35 per percentage point. A slope of 1/31/3 is easier to use. At r=36r = 36 it gives 81.3/36=2.2681.3/36 = 2.26, and at r=1r = 1 it gives 69.669.6.

Classic wrong answer. Thinking that 72 is the theoretical constant. The theoretical constant is 69.369.3. The 72 is a convenient number that happens to fit near typical rates.

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

Your account grows by 10 basis points every day for 252 days, where one basis point is 0.01%. Estimate the total return in your head to one decimal place of a percent. What is the simple answer, and why is it too low?

Answer

Answer to Question 2.29.

A total return of about 28.6%28.6\%. The simple answer is 25.2%25.2\%, and it is too low because it ignores compounding.

Convert to a continuous rate. ln⁡1.001≈0.001−0.0000005=0.0009995\ln 1.001 \approx 0.001 - 0.0000005 = 0.0009995, and 252252 of these give 0.25190.2519. Then

e0.2519≈1+0.2519+12(0.2519)2+16(0.2519)3≈1.2863,e^{0.2519} \approx 1 + 0.2519 + \tfrac12 (0.2519)^2 + \tfrac16 (0.2519)^3 \approx 1.2863,

and the next term of the series adds 0.000170.00017. The exact value of 1.0012521.001^{252} is 1.286431.28643, so the return is 28.6%28.6\%.

Follow-up. What if you lose 10 basis points a day instead? 0.999252≈e−0.2521≈0.7770.999^{252} \approx e^{-0.2521} \approx 0.777, a loss of 22.3%22.3\%. So the gain and the loss are not of equal size, and the two together make 1.2864×0.7771<11.2864 \times 0.7771 < 1.

Follow-up. Over five years, at the same daily rate? The rate in the exponent is five times larger, about 1.261.26, so the factor is e1.26≈3.5e^{1.26} \approx 3.5. Here the simple sum of 126%126\% is far too low.

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

Your investment rises 10% and falls 10% in turn, for 100 periods. What fraction of your money is left at the end? The average period’s return is zero, so why have you lost money? State the rule behind the answer.

Answer

Answer to Question 2.30.

About 60.5%60.5\% of your money is left, which is a loss of 39.5%39.5\%.

A rise and a fall together multiply your money by 1.1×0.9=0.991.1 \times 0.9 = 0.99, and there are 50 such pairs, so the result is 0.99500.99^{50}. Taking logs, 50ln⁡0.99≈−0.502550 \ln 0.99 \approx -0.5025, and e−0.5025≈0.605e^{-0.5025} \approx 0.605.

The arithmetic average return is zero, but money compounds, and it compounds at the geometric rate. The rule is that the growth rate per period is about the mean minus half the variance, μ−σ2/2\mu - \sigma^2/2. Here σ=0.1\sigma = 0.1, so the drag is 0.0050.005 per period, or 0.50.5 over 100 periods, and e−0.5≈0.607e^{-0.5} \approx 0.607.

Classic wrong answer. Saying that you end where you started because the moves cancel. They cancel in addition, but returns multiply.

Follow-up. And at 20% up and down? 0.9650≈0.1300.96^{50} \approx 0.130, compared with e−2≈0.135e^{-2} \approx 0.135 from the rule. The rule is getting rough, because the higher-order terms now matter.

Why it matters. Daily volatility of 1% costs about 0.012/2×252=1.26%0.01^2/2 \times 252 = 1.26\% a year of compound growth. Double the volatility and the cost is four times larger, because it goes with the square.

Question 2.31 ★★ QT, Trader, Risk • any • junior

A position loses 3% of its remaining value each year. Roughly how long until half is gone? Does the rule of 72 give too long or too short a time here, and how does this differ from the doubling case at the same rate?

Answer

Answer to Question 2.31.

About 23 years, and more exactly 22.7622.76. The rule of 72 gives 24, which is too long.

The exact time solves 0.97t=0.50.97^t = 0.5, so t=ln⁡2/(−ln⁡0.97)t = \ln 2 / (-\ln 0.97). Expanding, −ln⁡(1−x)=x+x2/2+…-\ln(1 - x) = x + x^2/2 + \dots is a little above xx, so the denominator is about 0.03050.0305 and tt is below 69.3/3=23.169.3/3 = 23.1.

Doubling goes the other way. There, ln⁡(1+x)=x−x2/2+…\ln(1 + x) = x - x^2/2 + \dots is a little below xx, so the doubling time at 3% is longer, at 23.4523.45 years. So at the same rate, growth takes longer to double than decay takes to halve. The rule of 72 is too long for both at 3%.

Follow-up. Is there a corrected numerator for decay? Yes. Where doubling uses 69.3+r/369.3 + r/3, decay uses 69.3−r/369.3 - r/3. At 3% that is 68.3/3=22.868.3/3 = 22.8 years.

Classic wrong answer. Dividing 50% by 3%, which gives 16.716.7 years. That applies 3% of the original amount each year, whereas here the 3% applies to what is left, and so the losses shrink.

Question 2.32 ★★ QR, QT • any • junior

You are told only that log⁡102≈0.301\log_{10} 2 \approx 0.301 and log⁡103≈0.477\log_{10} 3 \approx 0.477. Find log⁡107\log_{10} 7 to three decimal places without a calculator.

Answer

Answer to Question 2.32.

log⁡107≈0.845\log_{10} 7 \approx 0.845. The true value is 0.84510.8451.

Look for a power of 7 close to a number made only of 2, 3 and 5. Since 74=24017^4 = 2401, and 2400=25×3×522400 = 2^5 \times 3 \times 5^2,

log⁡107≈14log⁡102400=14[5(0.301)+0.477+2(0.699)]=14(3.380)=0.845,\log_{10} 7 \approx \tfrac14 \log_{10} 2400 = \tfrac14 \bigl[ 5(0.301) + 0.477 + 2(0.699) \bigr] = \tfrac14 (3.380) = 0.845,

using log⁡105=1−0.301=0.699\log_{10} 5 = 1 - 0.301 = 0.699. The ratio 2401/24002401/2400 differs from 1 by only 1/24001/2400, and dividing by four makes the error smaller still, so the rounding in the inputs is the only real error.

A rougher route uses 72=49≈507^2 = 49 \approx 50, which gives (1.699)/2=0.8495(1.699)/2 = 0.8495, wrong in the third decimal.

Classic wrong answer. Interpolating linearly between log⁡106=0.778\log_{10} 6 = 0.778 and log⁡108=0.903\log_{10} 8 = 0.903, which gives 0.84050.8405. The log curve bends, so a straight line through two points on it lies below the curve.

Follow-up. And log⁡1013\log_{10} 13? Use the same idea with 13×5=6513 \times 5 = 65, next to 64=2664 = 2^6. So log⁡1013=log⁡1064+log⁡10(65/64)−log⁡105\log_{10} 13 = \log_{10} 64 + \log_{10}(65/64) - \log_{10} 5. With log⁡10(65/64)≈0.0155×0.434≈0.0067\log_{10}(65/64) \approx 0.0155 \times 0.434 \approx 0.0067, this is 1.806+0.0067−0.699≈1.1141.806 + 0.0067 - 0.699 \approx 1.114.

Question 2.33 ★★ QR, QT, QD, Dev • any • junior

How many decimal digits does 21002^{100} have, and what is its first digit? You may use log⁡102≈0.30103\log_{10} 2 \approx 0.30103.

Answer

Answer to Question 2.33.

21002^{100} has 31 digits, and its first digit is 1. It is about 1.27×10301.27 \times 10^{30}.

Take logs: 100×0.30103=30.103100 \times 0.30103 = 30.103. The integer part says the number is between 103010^{30} and 103110^{31}, so it has 31 digits. The fractional part gives the leading digits: 100.10310^{0.103}. Since log⁡101.25=1−3(0.30103)=0.0969\log_{10} 1.25 = 1 - 3(0.30103) = 0.0969, the remainder 0.103−0.0969=0.0060.103 - 0.0969 = 0.006 multiplies by about 1.0141.014, which gives 1.25×1.014≈1.2681.25 \times 1.014 \approx 1.268. The exact number starts 1.26761.2676.

Follow-up. And for 3503^{50}? 50×0.47712=23.85650 \times 0.47712 = 23.856, so 24 digits. Since log⁡107≈0.845\log_{10} 7 \approx 0.845, the leading part is a little above 7. It is 7.18×10237.18 \times 10^{23}.

Classic wrong answer. Counting digits as the integer part of the log, here 30. A number with log 30.10330.103 has 31 digits, just as 103010^{30} itself has 31.

Why it matters. Reading the size of a power is how you know at once whether a count fits a 64-bit integer. Since 2642^{64} has 20 digits, a 21-digit count does not fit.

Question 2.34 ★★ QR, QT, Trader • any • junior

You know that ln⁡2≈0.693\ln 2 \approx 0.693 and ln⁡10≈2.303\ln 10 \approx 2.303. Estimate ln⁡1.3\ln 1.3 to three decimal places. Why does the series for ln⁡(1+x)\ln(1 + x) alone serve you badly here?

Answer

Answer to Question 2.34.

ln⁡1.3≈0.262\ln 1.3 \approx 0.262. The true value is 0.262360.26236.

Find a nearby number whose log you know, and take a small step from it. Here 1.25=10/81.25 = 10/8, so

ln⁡1.25=ln⁡10−3ln⁡2=2.303−2.079=0.224.\ln 1.25 = \ln 10 - 3 \ln 2 = 2.303 - 2.079 = 0.224.

Then 1.3/1.25=1.041.3 / 1.25 = 1.04, and ln⁡1.04≈0.04−0.0008=0.0392\ln 1.04 \approx 0.04 - 0.0008 = 0.0392. The total is 0.2630.263, and using more digits of the two given logs brings it to 0.2620.262.

The series ln⁡(1+x)=x−x2/2+x3/3−…\ln(1 + x) = x - x^2/2 + x^3/3 - \dots with x=0.3x = 0.3 is slow: the first three terms are 0.30.3, −0.045-0.045 and +0.009+0.009. Stopping after two gives 0.2550.255 and after three 0.2640.264. A small step from a nearby known point needs only one or two terms.

Follow-up. Find ln⁡3\ln 3 from these same two logs. Since 34=813^4 = 81 is very near 80=23×1080 = 2^3 \times 10, you get 4ln⁡3≈3(0.693)+2.303+ln⁡(81/80)=4.382+0.01244 \ln 3 \approx 3(0.693) + 2.303 + \ln(81/80) = 4.382 + 0.0124, so ln⁡3≈1.099\ln 3 \approx 1.099.

Why it matters. A 30% simple return is a log return of about 26.2%26.2\%. The gap is why returns of that size cannot just be added up.

Question 2.35 ★★ QR, QT, Trader • any • junior

Estimate the tenth root of 2 and the fifth root of 3, each to three decimal places, without a calculator. You may use ln⁡2≈0.693\ln 2 \approx 0.693 and ln⁡3≈1.099\ln 3 \approx 1.099.

Answer

Answer to Question 2.35.

The tenth root of 2 is about 1.0721.072, and the fifth root of 3 is about 1.2461.246.

A root becomes a division in logs. For the first, ln⁡2/10=0.0693\ln 2 / 10 = 0.0693, and then

e0.0693≈1+0.0693+12(0.0693)2+16(0.0693)3≈1.0718.e^{0.0693} \approx 1 + 0.0693 + \tfrac12 (0.0693)^2 + \tfrac16 (0.0693)^3 \approx 1.0718.

For the second, ln⁡3/5=0.2198\ln 3 / 5 = 0.2198, and 1+0.2198+0.0242+0.0018+0.0001≈1.2461 + 0.2198 + 0.0242 + 0.0018 + 0.0001 \approx 1.246. The true value is 1.24571.2457.

This ties to the rule of 72: the tenth root of 2 says doubling in ten years needs 7.18%7.18\% a year, and the rule gives 7.2%7.2\%.

Classic wrong answer. Dividing the excess by 10 and saying 1.11.1. That is simple interest, not compound. A growth rate of 10% a year for ten years gives 2.592.59, not 2.

Follow-up. What monthly rate compounds to 12% a year? ln⁡1.12≈0.1133\ln 1.12 \approx 0.1133, and dividing by 12 gives 0.009440.00944, so about 0.949%0.949\% a month, not 1%.

Question 2.36 ★★ QT, Trader, Analyst • any • junior

Estimate 47×62×81×1947 \times 62 \times 81 \times 19 to within 1%, without writing down any intermediate product. How do you correct for the rounding?

Answer

Answer to Question 2.36.

The product is about 4.474.47 million, within 0.3%0.3\% of the exact value of 4 484 6464\,484\,646.

Round to numbers you can multiply: 50×60×80×20=4 800 00050 \times 60 \times 80 \times 20 = 4\,800\,000. Then correct using each rounding as a percentage. The rounded values are too high by 6.4%6.4\% (50/4750/47) and 5.3%5.3\% (20/1920/19), and too low by 3.2%3.2\% (60/6260/62) and 1.2%1.2\% (80/8180/81). For small errors these add, so the total is about +7.3%+7.3\%. Divide 4.84.8 million by 1.0731.073 to get about 4.474.47 million.

Good rounding pairs one number up with another down, so that the corrections partly cancel and stay small enough to add. You have done this without a single long multiplication.

Classic wrong answer. Rounding all four and stopping at 4.84.8 million. That is 7% off, though it looks fine because every factor seems close. Four small errors add up, so they must be corrected.

Follow-up. What if the errors are not small? Multiply the ratios rather than adding them, or add logs. Adding percentages is only good while each stays within about 10%.

Question 2.37 ★★ QR, QT, Trader, DS • any • junior

You toss a fair coin 20 times. Estimate the chance of exactly 10 heads in your head, without computing a binomial coefficient. Then estimate the chance of exactly 12 heads.

Answer

Answer to Question 2.37.

The chance of exactly 10 heads is about 0.180.18 (exactly 0.17620.1762), and of exactly 12 heads about 0.120.12 (exactly 0.12010.1201).

Use the normal curve. The number of heads has mean 10 and variance 20/4=520/4 = 5, so a standard deviation of 5≈2.24\sqrt 5 \approx 2.24. The peak height of a normal density is 0.40.4 divided by the standard deviation, which gives 0.4/2.24≈0.180.4/2.24 \approx 0.18. So the chance at the mean is close to that.

For 12 heads, go two away from the mean, and multiply by the normal shape e−d2/(2σ2)=e−4/10≈0.67e^{-d^2/(2\sigma^2)} = e^{-4/10} \approx 0.67. That gives 0.18×0.67≈0.120.18 \times 0.67 \approx 0.12.

Classic wrong answer. Saying one half because the coin is fair. One half is the share of heads you expect, not the chance of hitting exactly that count. There are 21 possible counts, and 10 is only the likeliest of them.

Follow-up. And for 100 tosses? The standard deviation is 5, so the chance of exactly 50 heads is about 0.4/5=0.080.4/5 = 0.08, and the exact value is 0.07960.0796. Because it shrinks as the toss count grows, in proportion to one over its square root, you need four times the tosses to halve it.

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

How many ways are there to choose 25 items from 50? Give two significant figures without a calculator. Then do the same for choosing 30 from 100.

Answer

Answer to Question 2.38.

(5025)≈1.3×1014\binom{50}{25} \approx 1.3 \times 10^{14} (exactly 1.264×10141.264 \times 10^{14}), and (10030)≈2.9×1025\binom{100}{30} \approx 2.9 \times 10^{25} (exactly 2.937×10252.937 \times 10^{25}).

For the central case, use the normal peak: the chance of exactly nn heads in 2n2n fair tosses is about 1/πn1/\sqrt{\pi n}, which makes (2nn)≈4n/πn\binom{2n}{n} \approx 4^n / \sqrt{\pi n}. Here 425=250≈1.126×10154^{25} = 2^{50} \approx 1.126 \times 10^{15} using 1.0245≈1.1261.024^5 \approx 1.126, and 25π≈8.86\sqrt{25\pi} \approx 8.86, so the estimate is 1.27×10141.27 \times 10^{14}.

For an off-centre choice, use entropy: with p=0.3p = 0.3,

(NpN)≈2NH(p)2πNp(1−p),H(p)=−plog⁡2p−(1−p)log⁡2(1−p).\binom{N}{pN} \approx \frac{2^{N H(p)}}{\sqrt{2\pi N p (1 - p)}}, \qquad H(p) = -p \log_2 p - (1 - p) \log_2 (1 - p).

Here H(0.3)≈0.881H(0.3) \approx 0.881, so the numerator is 288.1≈3.3×10262^{88.1} \approx 3.3 \times 10^{26}. The denominator is 2π×21≈11.5\sqrt{2\pi \times 21} \approx 11.5. This gives 2.9×10252.9 \times 10^{25}.

Classic wrong answer. Using 5025/25!50^{25}/25!, which is a good upper bound only when the selection is a small part of the whole. Here it is too large by a factor of about 1500.

Follow-up. And (5226)\binom{52}{26}? (5226)=(5025)×52×5126×26\binom{52}{26} = \binom{50}{25} \times \frac{52 \times 51}{26 \times 26}, a factor of 3.923.92, so about 4.96×10144.96 \times 10^{14}.

Question 2.39 ★★★ QR, QT, QD, Dev • any • junior, experienced

How many bits does it take to record the order of a shuffled 52-card deck, with the fewest bits possible? Estimate it without a calculator. How many decimal digits does 52!52! have?

Answer

Answer to Question 2.39.

About 226 bits, and exactly 225.58225.58 bits. 52!52! has 68 digits.

The number of orders is 52!52!, so the fewest bits on average is log⁡252!\log_2 52!. Use Stirling’s formula, ln⁡n!≈nln⁡n−n+12ln⁡(2πn)\ln n! \approx n \ln n - n + \tfrac12 \ln(2\pi n), in base 2:

log⁡2n!≈nlog⁡2n−nln⁡2+12log⁡2(2πn).\log_2 n! \approx n \log_2 n - \frac{n}{\ln 2} + \tfrac12 \log_2 (2\pi n).

Since 52=32×1.62552 = 32 \times 1.625 and log⁡21.625≈0.70\log_2 1.625 \approx 0.70, you get log⁡252≈5.70\log_2 52 \approx 5.70. The terms are then 52×5.70=296.452 \times 5.70 = 296.4, 52/0.693=75.052/0.693 = 75.0 and 12log⁡2327≈4.2\tfrac12 \log_2 327 \approx 4.2. The total is 296.4−75.0+4.2=225.6296.4 - 75.0 + 4.2 = 225.6.

For the digits, multiply by log⁡102\log_{10} 2: 225.6×0.301≈67.9225.6 \times 0.301 \approx 67.9, which means 52!52! is about 8×10678 \times 10^{67}, with 68 digits.

Classic wrong answer. Multiplying 52 by 6 bits a card, to get 312. That is a valid encoding but not the fewest: it allows a card to repeat. Removing that waste saves over 80 bits.

Why it matters. A 64-bit random seed can produce only 2642^{64} shuffles out of 22262^{226}. If your simulations depend on the whole shuffle, a generator with a small seed reaches almost none of them.

Question 2.40 ★★★ QR, QT, Trader, Analyst, Risk • bank, hedge fund • junior, experienced

You receive $1 at the end of each year for 30 years, and the discount rate is 7% a year. Estimate the present value to one decimal place, without a calculator. Then price a 30-year bond that pays a 5% coupon yearly, at the same rate.

Answer

Answer to Question 2.40.

The present value is about $12.4\$12.4, and the bond is worth about 75.275.2 per 100 of face value.

An annuity is a perpetuity minus a perpetuity that starts late. A perpetuity of $1 a year is worth 1/r1/r today, and one that starts after 30 years is worth that much at year 30, so 1.07−30/r1.07^{-30}/r today. Subtracting,

PV=1−1.07−300.07.\text{PV} = \frac{1 - 1.07^{-30}}{0.07}.

For the power, 7% roughly doubles money every ten years: 1.0710=1.9671.07^{10} = 1.967, so close to 2. Three of these give 1.0730≈7.61.07^{30} \approx 7.6; the exact value is 7.617.61. So 1/7.61≈0.1311/7.61 \approx 0.131, and (1−0.131)/0.07=0.869/0.07≈12.4(1 - 0.131)/0.07 = 0.869/0.07 \approx 12.4. The exact value is 12.4112.41.

The bond pays 5 a year for 30 years and returns 100 at the end. So its price is 5×12.41+100/7.61=62.05+13.14=75.25 \times 12.41 + 100/7.61 = 62.05 + 13.14 = 75.2.

Classic wrong answer. Using the middle payment date: 30/1.0715≈10.930 / 1.07^{15} \approx 10.9. Discounting is convex, so early payments gain more than late ones lose, and this comes out too low.

Follow-up. What level yearly payment repays a loan of 100 over 30 years at 7%? Divide by the factor: 100/12.41=8.06100/12.41 = 8.06 a year.

Follow-up. How much of a perpetuity’s value is this 30-year annuity? A perpetuity is worth 1/0.07=14.291/0.07 = 14.29, so the annuity is 1−1/7.611 - 1/7.61, or about 87%, of that. The payments after year 30 are worth only 13%.