Skip to content
LeetQuant
QT01 Mental Math and Fast Estimation

QT01 · Mental Math and Fast Estimation · Lesson 4 of 5

Probability Arithmetic at Speed

Fast handling of small probabilities and complements, the 1 − (1 − p)^n ≈ np family of approximations, quick dice and card expectations, and mental binomial and normal approximations.

18 min

Objective

Get from a probability question to a number, to one or two significant figures, in seconds: multiply small probabilities, use complements, approximate "at least one" events, produce dice and card expectations from memory, and estimate binomial tails with the normal distribution.

Multiplying small probabilities

Keep exact fractions until the last step, then convert once. Know the powers you will meet:

(1/2)n(1/2)^n(1/6)n(1/6)^n(1/36)n(1/36)^n
2−10≈10−32^{-10} \approx 10^{-3}6−2=1/36≈2.8%6^{-2} = 1/36 \approx 2.8\%36−2=1/129636^{-2} = 1/1296
2−20≈10−62^{-20} \approx 10^{-6}6−3=1/216≈0.46%6^{-3} = 1/216 \approx 0.46\%
6−5=1/7776≈1.3×10−46^{-5} = 1/7776 \approx 1.3 \times 10^{-4}

For anything else, use scientific notation and multiply mantissas and exponents separately: 0.03×0.002=3×2×10−2−3=6×10−50.03 \times 0.002 = 3 \times 2 \times 10^{-2-3} = 6 \times 10^{-5}. For long products, add log⁡10\log_{10}s (log⁡106≈0.778\log_{10} 6 \approx 0.778).

Complements and "at least one"

P(at least one in n)=1−(1−p)nP(\text{at least one in } n) = 1 - (1 - p)^n. Three approximations, in increasing accuracy:

np−(n2)p2  ≤  1−(1−p)n  ≤  np,1−(1−p)n≈1−e−np.np - \binom n2 p^2 \;\le\; 1 - (1 - p)^n \;\le\; np, \qquad 1 - (1 - p)^n \approx 1 - e^{-np}.

The upper bound npnp is the union bound and is good only when npnp is small (say below 0.1). The exponential form works whenever pp is small, whatever nn is. Memorise 1−e−λ1 - e^{-\lambda}:

λ=np\lambda = np0.10.50.69123
1−e−λ1 - e^{-\lambda}0.0950.390.500.630.860.95

So an event with probability pp per trial needs about 0.69/p0.69/p trials for an even chance and 3/p3/p for 95%.

When pp is not small, e−npe^{-np} underestimates (1−p)n(1 - p)^n because ln⁡(1−p)≈−p−p2/2\ln(1 - p) \approx -p - p^2/2 is more negative than −p-p. Either compute exactly or use e−n(p+p2/2)e^{-n(p + p^2/2)}.

Pairs. For "any two match" problems, count pairs: with nn people and 365 days there are (n2)\binom n2 pairs each matching with probability 1/3651/365, so P(no match)≈e−(n2)/365P(\text{no match}) \approx e^{-\binom n2/365}. At n=23n = 23, (232)=253\binom{23}{2} = 253 and 253/365≈0.69253/365 \approx 0.69, giving about 50%.

Worked example

when the approximation holds and when it fails

(a) A system has a 1% chance of failing on any day, independently. What is the probability of at least one failure in 20 days?

(b) What is the probability of at least one six in four rolls of a die, and of at least one double six in 24 rolls of two dice? Which is larger?

Show solution

(a) np=0.2np = 0.2. The union bound says at most 20%; the exponential gives 1−e−0.2≈0.2−0.02=0.181 - e^{-0.2} \approx 0.2 - 0.02 = 0.18. Exact: 1−0.9920=0.18211 - 0.99^{20} = 0.1821. The exponential is right to three decimal places.

(b) Four rolls: (5/6)4=625/1296≈0.482(5/6)^4 = 625/1296 \approx 0.482 (square 25/36≈0.69425/36 \approx 0.694), so P≈51.8%P \approx 51.8\%. Here p=1/6p = 1/6 is not small and 1−e−4/6≈48.7%1 - e^{-4/6} \approx 48.7\% gives the wrong side of 50%; the corrected exponent 4(1/6+1/72)≈0.7224(1/6 + 1/72) \approx 0.722 gives 51.4%51.4\%.

Double six in 24 rolls: p=1/36p = 1/36 is small, so 1−e−24/36=1−e−2/3≈48.7%1 - e^{-24/36} = 1 - e^{-2/3} \approx 48.7\%, and exactly 1−(35/36)24≈49.1%1 - (35/36)^{24} \approx 49.1\%.

The single six in four rolls is more likely (51.8% against 49.1%), although the naive "expected count" is 2/32/3 in both cases. This is the classic de Méré problem.

Expected values to have ready

One die: mean 3.53.5, E[X2]=91/6≈15.17E[X^2] = 91/6 \approx 15.17, variance 35/12≈2.9235/12 \approx 2.92, standard deviation ≈1.71\approx 1.71. For nn dice the sum has mean 3.5n3.5n and variance 35n/1235n/12.

Two dice: E[max⁡]=161/36≈4.47E[\max] = 161/36 \approx 4.47, E[min⁡]=7−161/36=91/36≈2.53E[\min] = 7 - 161/36 = 91/36 \approx 2.53 (because max⁡+min⁡=X+Y\max + \min = X + Y), and E[XY]=3.52=12.25E[XY] = 3.5^2 = 12.25 by independence.

Cards: use indicators. The expected number of cards of a type in a hand is (hand size) ×\times (fraction of the deck of that type). Expected aces in 5 cards: 5×4/52=5/13≈0.385 \times 4/52 = 5/13 \approx 0.38. Expected hearts in 13 cards: 3.253.25.

Position of the first special card. If kk special cards are shuffled among NN, they split the other N−kN - k into k+1k + 1 gaps of equal expected size, so the first special card is at expected position (N+1)/(k+1)(N + 1)/(k + 1). The first ace is at position 53/5=10.653/5 = 10.6 on average.

Order statistics of uniforms. The kk-th smallest of nn independent uniforms on [0,1][0, 1] has mean k/(n+1)k/(n + 1), by the same gaps argument.

Mental binomial and normal approximations

A binomial count has mean npnp and standard deviation np(1−p)\sqrt{np(1 - p)}; for fair coins that is n/2\sqrt n/2 (100 flips: 5; 10,000 flips: 50). Convert to a zz-score, using a continuity correction of half a unit when nn is moderate, and read off the tail:

zz11.281.6451.9622.332.583
P(Z>z)P(Z > z)15.9%10%5%2.5%2.3%1%0.5%0.13%

Between table values, interpolate with the density: φ(0)≈0.40\varphi(0) \approx 0.40, φ(1)≈0.24\varphi(1) \approx 0.24, φ(2)≈0.054\varphi(2) \approx 0.054. Near the centre, P(0<Z<z)≈0.4zP(0 < Z < z) \approx 0.4z.

A single value. The probability of hitting exactly the most likely count is about φ(0)/σ≈0.4/σ\varphi(0)/\sigma \approx 0.4/\sigma. Exactly 50 heads in 100 flips: 0.4/5=8%0.4/5 = 8\% (exact 7.96%). Exactly 5 in 10: 0.4/1.58≈25%0.4/1.58 \approx 25\% (exact 252/1024=24.6%252/1024 = 24.6\%).

Worked example

two normal approximations

(a) What is the probability of at least 60 heads in 100 fair flips?

(b) A die is rolled 600 times. Estimate the probability that the number of sixes is between 90 and 110 inclusive.

Show solution

(a) Mean 50, σ=5\sigma = 5. With the continuity correction the boundary is 59.5, so z=9.5/5=1.9z = 9.5/5 = 1.9. That is just inside z=2z = 2 (2.3%), so add the extra slice between 1.9 and 2, about 0.1×φ(1.95)≈0.1×0.06=0.6%0.1 \times \varphi(1.95) \approx 0.1 \times 0.06 = 0.6\%, giving about 2.9%. Exact: 2.84%.

(b) Mean 600/6=100600/6 = 100; variance 600×16×56=83.3600 \times \tfrac16 \times \tfrac56 = 83.3, so σ≈9.1\sigma \approx 9.1 (since 92=819^2 = 81). Boundaries 89.5 and 110.5 give z=±10.5/9.1≈±1.15z = \pm 10.5/9.1 \approx \pm 1.15. One tail is about 15.9%−0.15×φ(1.075)≈15.9%−0.15×0.22≈12.5%15.9\% - 0.15 \times \varphi(1.075) \approx 15.9\% - 0.15 \times 0.22 \approx 12.5\%, so the central probability is about 1−2×0.125=1 - 2 \times 0.125 = 75%. Exact: 75.0%.

Knowledge check

What is the probability of at least one six in six rolls of a fair die?

Knowledge check

Roughly what is the probability of more than 5,100 heads in 10,000 fair flips?

Knowledge check

What is the expected number of aces in a 13-card hand dealt from a standard deck?

Key takeaways

  • Keep fractions exact and convert once; use scientific notation or logs for long products.
  • 1−(1−p)n1 - (1 - p)^n: the union bound npnp for tiny npnp, 1−e−np1 - e^{-np} for small pp, and exact computation when pp is not small. Even odds need about 0.69/p0.69/p trials.
  • Count pairs for "any two match" questions: P(none)≈e−(n2)qP(\text{none}) \approx e^{-\binom n2 q}.
  • Have dice and card numbers ready: 3.53.5, 35/1235/12, 161/36161/36, 91/3691/36, indicators for hand counts, (N+1)/(k+1)(N + 1)/(k + 1) for first positions.
  • Binomial tails: σ=np(1−p)\sigma = \sqrt{np(1 - p)}, continuity correction, and the zz-table; a single most-likely value has probability about 0.4/σ0.4/\sigma.

Practice problems

Finished reading?

Answer the 3 knowledge checks to complete this lesson (0 done).