本书暂未推出简体中文版。现有版本: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 .
The idea works whenever the two numbers have an even sum and their average is easy to square. For the average is 50, which gives . For the average is 102 and each number is 6 away from it, which gives .
Follow-up. And if the sum is odd, as in ? Peel off one copy first: .
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.
. The rule: multiply the leading part by one more than itself, and then write 25.
For 85 the leading part is 8, and , so the answer is 72 followed by 25. To prove it, write the number as :
The rule holds for any , not only one digit: has , and gives .
Follow-up. Is there a similar rule near 50? Yes. , so add to 25 for the hundreds and write in the last two places. , and with , .
Follow-up. How do you square any other two-digit number? Move to the nearest round number and correct: . So .
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, , and write it in the last two places.
To see why, let the distances be and :
The first term is the left part of the answer, and is the right part. The same algebra handles numbers above 100, where the distances add: .
Classic wrong answer. Treating the right part as two digits no matter what. If reaches 100 it carries. For the distances are 12 and 15, so the left part is 73 and , and the answer is .
Follow-up. Does this need 100 as the base? No. Any easy base works. Near 50, .
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 .
Since , multiply by 1000 and divide by 8. In practice do the division first, because it keeps the numbers small: , 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 , , , and . If the division does not come out whole, keep going in decimals: , so .
Follow-up. What about ? , so three times the answer above: .
Follow-up. And dividing by 125? Do the opposite: multiply by 8 and divide by 1000. .
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 , then , then , then . Going from the right: write 6; write 4 and carry 1; , so write 3 and carry 1; . The result is 5346.
It works because . Writing shifted one place above itself puts each digit in a column with its neighbour, and column addition then gives exactly those sums:
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: .
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.
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: of is , 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 of it, which is one sixth, and . In general, a tax of rate on the net makes up 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 . An 8% markup is , or about .
Follow-up. You paid 384 after a 20% discount. What was the list price? You paid 80% of the list price, so it was . 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 , the rise needed is . A fall of 37.5% needs a rise of 60%.
After the fall you hold of the start, and the rise must bring it back to 1, so it must be . Fractions make this quick: a fall of one fifth leaves four fifths, and you need to gain one quarter. A fall of leaves , and you need to gain . 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, or , and by how much? Answer without turning either into a decimal.
Answer
Answer to Question 2.9.
is larger, by .
Cross-multiply: and compare in the same way as and , as long as the denominators are positive. Here and , so the second is larger. The difference is the gap in cross products over the product of denominators:
A second route compares the distances from 1: and , 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: exceeds .
Follow-up. Which is larger, or ? and , so is larger, by .
Question 2.10 ★ QT, Trader • market maker • junior
You know that , with those six digits repeating. How do you write and as decimals without dividing, and why does your method work?
Answer
Answer to Question 2.10.
and . Keep the same six digits in the same cyclic order, and start from whichever digit gives the right size.
For , you know it is about , so the cycle must start at 4: 428571. For , about , it starts at 7: 714285.
The reason is long division. Dividing 1 by 7 passes through the remainders 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 and share a cycle, but 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 of the total, so the average sits of the way from 80 to 88. That is .
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 , 100 at 102 and 500 at 101. What is your average? Use a base of 101. The deviations are , 1 and 0, with weights , and . Their weighted sum is , so the average is .
Classic wrong answer. Averaging the prices without weights: . 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 years. It is that close at 8%.
Solve , which gives . For small , , so , or divided by the rate in percent. Then is a little below , which pushes the numerator up: at 8% the exact numerator is about . The number 72 is also chosen because it divides by 2, 3, 4, 6, 8, 9 and 12.
Classic wrong answer. Using simple interest: 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 in the same way. At this rate the numerator rises to about 114, so the answer is about years. The exact value is .
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 . Using 16 is about 1% off, which is far better than any estimate of volatility itself. So ; the exact figure is .
The other two numbers worth knowing are for weeks and for months. At 32% annual volatility a week’s return has a standard deviation of about , and a month’s about .
Classic wrong answer. Dividing by 252, which gives . 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 and . Find and without a calculator.
Answer
Answer to Question 2.14.
and .
Factor the number into primes you know, and turn the product into a sum. Since ,
The exact value is . For the second, , so subtract 4 and get .
You also have for free: , so it is . 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 ? , so it is .
Classic wrong answer. Trying to take the log of 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 , 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.
is about , a billion. One trillion takes about 40 doublings. The first estimate is about 7% low.
The fact is that . So , and . The true is , or billion. The error compounds at about per factor of 1024, so it matters more for high powers: is about rather than .
Follow-up. How large is ? , using , and , so about .
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 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.
. The estimate is slightly too high, and the true value is .
Take the nearest easy square, , with , and use
This is one step of Newton’s method. Squaring the estimate shows why it always overshoots: , which is above the target by a positive amount, for either sign of . So one more correction, always downward, brings it far closer, and it still stays just above the true value.
Follow-up. Estimate . Write it as . Since , take and . That gives , so about 1789. The true value is .
Classic wrong answer. Interpolating linearly between and , which gives . It uses a slope that is too flat for this part of the curve, and so it comes out low by about .
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 basis points of million dollars is dollars: . 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 , which is a whole percent. As a decimal, one basis point is . 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 . 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 .
Know that , by halving down from one half: , , , , . Then build the fraction from pieces: .
Follow-up. Going the other way, how would be quoted? The fractional part is . Take away , which is , and is left, which is . So it is , 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 per 100, or of face, which is $3125.
Classic wrong answer. Reading 99-17 as . 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, or , and by exactly how much? What is the general rule?
Answer
Answer to Question 2.19.
is larger, by exactly 5.
Both pairs add to 80, so both have average 40. Write each as plus or minus its half-gap:
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 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.
. For a rough answer drop the cross term, which leaves , with an error of .
Expand with and :
The first-order part, , is the sum of the two moves. The cross term 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 . With one move up and one down, the cross term is negative.
Follow-up. And ? First order: . The pairwise products are , and the triple product is about . That gives , and the exact value is .
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 . 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 .
Last digit: ends in 2, and so does the claim. Size: 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 modulo 9. Here 3847 has digit sum 22, which reduces to 4. And 26 reduces to 8. So the product must reduce to , 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 : 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 . So the last digit does not help. Size does not settle it easily either, since 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 , , and . Only the first fits.
To check it directly, the difference of squares works with half-integers: the average is and the half-gap is , so .
Classic wrong answer. Choosing the option nearest to . 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 . 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 reduces to 2; and 6428 has digit sum 20, which reduces to 2. So nines pass.
For eleven, modulo 11, so a number has the same remainder as the alternating sum of its digits from the right. Since , the product must leave remainder 0. But , so 6428 fails. The true 6248 has . The factor 8 also catches it, as is not whole, while .
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 , and the order does not matter.
Multiply the factors: . Multiplication does not care about the order. The rule for combining two moves is :
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 , 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%? : the moves cancel and only the cross term is left. In the same way, and leave you down.
Question 2.25 ★★ QR, QT, Trader • any • junior
Estimate and to four decimal places without dividing. What approximation do you use, and when does it stop working?
Answer
Answer to Question 2.25.
and .
Use the geometric series: for small ,
With the terms are , and , so and . The next term is below , so three terms are good to about six decimal places.
The method stops working as grows: each term is only times the last, so for you need many terms. Switch to fractions there: .
Classic wrong answer. Saying 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 in one direction is in the other, not . On a large order those missing are 9 basis points.
Question 2.26 ★★ QR, QT, Trader, Risk • any • junior
Estimate to two decimal places, in your head, in two different ways.
Answer
Answer to Question 2.26.
. The exact value is .
First way, repeated squaring: . Squaring gives . Multiply by to get . Squaring that gives . The squares look hard but are easy: .
Second way, logs: , so ten of them give . Then .
Classic wrong answer. Saying , using . Since is below , this always comes out too high. The other wrong answer is the simple , which ignores compounding.
Follow-up. What does the rule of 72 say? Doubling takes years, so ten years gives . That is rougher, but it takes only seconds.
Follow-up. How can you check it? Use the binomial expansion: . The terms fall quickly, so five are enough.
Question 2.27 ★★ QR, QT, Trader, Risk • market maker, hedge fund • junior
Estimate to three decimal places without a calculator. You may use . Why is alone not good enough?
Answer
Answer to Question 2.27.
. The exact value is .
Take logs: . So , and
The answer uses and misses the next term of the series, . Over 100 periods the missing piece is , which is a half-percent change and shows up in the third decimal.
Follow-up. What is ? The same way, , so . The exact value is . Note that and are different numbers, and both differ from .
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 , not 100%.
Question 2.28 ★★ QR, QT, Trader • any • junior
The rule of 72 says that money doubles in about years at percent a year, compounded yearly. How wrong is it at and at ? Near which rate is it exact? What simple correction fixes it at all these rates?
Answer
Answer to Question 2.28.
At the rule gives 72 years against an exact , which is too long. At it gives 2 years against an exact , which is too short. It is exact near . A good fix is a numerator of .
The exact doubling time is . Writing it as a numerator over , the numerator is , which is not constant: it rises with from . Its values are about at , at and at .
Expanding to second order gives with , a slope of per percentage point. A slope of is easier to use. At it gives , and at it gives .
Classic wrong answer. Thinking that 72 is the theoretical constant. The theoretical constant is . 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 . The simple answer is , and it is too low because it ignores compounding.
Convert to a continuous rate. , and of these give . Then
and the next term of the series adds . The exact value of is , so the return is .
Follow-up. What if you lose 10 basis points a day instead? , a loss of . So the gain and the loss are not of equal size, and the two together make .
Follow-up. Over five years, at the same daily rate? The rate in the exponent is five times larger, about , so the factor is . Here the simple sum of 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 of your money is left, which is a loss of .
A rise and a fall together multiply your money by , and there are 50 such pairs, so the result is . Taking logs, , and .
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, . Here , so the drag is per period, or over 100 periods, and .
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? , compared with from the rule. The rule is getting rough, because the higher-order terms now matter.
Why it matters. Daily volatility of 1% costs about 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 . The rule of 72 gives 24, which is too long.
The exact time solves , so . Expanding, is a little above , so the denominator is about and is below .
Doubling goes the other way. There, is a little below , so the doubling time at 3% is longer, at 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 , decay uses . At 3% that is years.
Classic wrong answer. Dividing 50% by 3%, which gives 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 and . Find to three decimal places without a calculator.
Answer
Answer to Question 2.32.
. The true value is .
Look for a power of 7 close to a number made only of 2, 3 and 5. Since , and ,
using . The ratio differs from 1 by only , and dividing by four makes the error smaller still, so the rounding in the inputs is the only real error.
A rougher route uses , which gives , wrong in the third decimal.
Classic wrong answer. Interpolating linearly between and , which gives . The log curve bends, so a straight line through two points on it lies below the curve.
Follow-up. And ? Use the same idea with , next to . So . With , this is .
Question 2.33 ★★ QR, QT, QD, Dev • any • junior
How many decimal digits does have, and what is its first digit? You may use .
Answer
Answer to Question 2.33.
has 31 digits, and its first digit is 1. It is about .
Take logs: . The integer part says the number is between and , so it has 31 digits. The fractional part gives the leading digits: . Since , the remainder multiplies by about , which gives . The exact number starts .
Follow-up. And for ? , so 24 digits. Since , the leading part is a little above 7. It is .
Classic wrong answer. Counting digits as the integer part of the log, here 30. A number with log has 31 digits, just as 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 has 20 digits, a 21-digit count does not fit.
Question 2.34 ★★ QR, QT, Trader • any • junior
You know that and . Estimate to three decimal places. Why does the series for alone serve you badly here?
Answer
Answer to Question 2.34.
. The true value is .
Find a nearby number whose log you know, and take a small step from it. Here , so
Then , and . The total is , and using more digits of the two given logs brings it to .
The series with is slow: the first three terms are , and . Stopping after two gives and after three . A small step from a nearby known point needs only one or two terms.
Follow-up. Find from these same two logs. Since is very near , you get , so .
Why it matters. A 30% simple return is a log return of about . 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 and .
Answer
Answer to Question 2.35.
The tenth root of 2 is about , and the fifth root of 3 is about .
A root becomes a division in logs. For the first, , and then
For the second, , and . The true value is .
This ties to the rule of 72: the tenth root of 2 says doubling in ten years needs a year, and the rule gives .
Classic wrong answer. Dividing the excess by 10 and saying . That is simple interest, not compound. A growth rate of 10% a year for ten years gives , not 2.
Follow-up. What monthly rate compounds to 12% a year? , and dividing by 12 gives , so about a month, not 1%.
Question 2.36 ★★ QT, Trader, Analyst • any • junior
Estimate 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 million, within of the exact value of .
Round to numbers you can multiply: . Then correct using each rounding as a percentage. The rounded values are too high by () and (), and too low by () and (). For small errors these add, so the total is about . Divide million by to get about 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 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 (exactly ), and of exactly 12 heads about (exactly ).
Use the normal curve. The number of heads has mean 10 and variance , so a standard deviation of . The peak height of a normal density is divided by the standard deviation, which gives . 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 . That gives .
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 , and the exact value is . 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.
(exactly ), and (exactly ).
For the central case, use the normal peak: the chance of exactly heads in fair tosses is about , which makes . Here using , and , so the estimate is .
For an off-centre choice, use entropy: with ,
Here , so the numerator is . The denominator is . This gives .
Classic wrong answer. Using , 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 ? , a factor of , so about .
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 have?
Answer
Answer to Question 2.39.
About 226 bits, and exactly bits. has 68 digits.
The number of orders is , so the fewest bits on average is . Use Stirling’s formula, , in base 2:
Since and , you get . The terms are then , and . The total is .
For the digits, multiply by : , which means is about , 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 shuffles out of . 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 , and the bond is worth about per 100 of face value.
An annuity is a perpetuity minus a perpetuity that starts late. A perpetuity of $1 a year is worth today, and one that starts after 30 years is worth that much at year 30, so today. Subtracting,
For the power, 7% roughly doubles money every ten years: , so close to 2. Three of these give ; the exact value is . So , and . The exact value is .
The bond pays 5 a year for 30 years and returns 100 at the end. So its price is .
Classic wrong answer. Using the middle payment date: . 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: a year.
Follow-up. How much of a perpetuity’s value is this 30-year annuity? A perpetuity is worth , so the annuity is , or about 87%, of that. The payments after year 30 are worth only 13%.