Quant

Probability and brainteasers

The probability tools quant and trading interviews test: conditioning and Bayes, counting, linearity of expectation, dice games, waiting times and uniform draws.

8 concepts8 min read25-question test, from a bank of 33Updated

Concept 1 of 81 min

Conditioning and Bayes

The rule
A conditional probability counts only the outcomes consistent with what you are told, and Bayes' rule weights each hypothesis by its prior.
Worked examples

A test for a rare disease

Given
People10,000
Sick1%
Detection rate99%
False positive rate5%
  1. Sick = 10,000 × 1% = 100, so 9,900 healthy
  2. Sick and positive = 100 × 99% = 99
  3. Healthy and positive = 9,900 × 5% = 495
  4. P(sick | positive) = 99 ÷ (99 + 495) ≈ 16.7%

Only about 1 positive in 6 is really sick, because the healthy are so many more.

Which coin was it?

Given
Coinsfair + two-headed
Flips2
Result2 heads
  1. Each coin is picked with chance 0.5
  2. Two-headed: 2 heads for sure
  3. Fair: 0.52 = 0.25
  4. Equal priors, so P = 1 ÷ (1 + 0.25) = 0.8

2 heads make the two-headed coin 4 times as likely as the fair one.

The picture
Formula
P(A | B)=P(A and B) ÷ P(B)
P(H | E)=P(E | H) × P(H) ÷ [P(E | H) × P(H) + P(E | not H) × P(not H)]
Why it holds

Bayes' rule turns P(evidence | hypothesis) into P(hypothesis | evidence). The event that at least one die shows a 6 is different from 'the first die shows a 6': list the outcomes that fit the condition and count the favourable ones among them.

Extra detail, such as a boy born on a Tuesday, changes which outcomes fit, which moves the answer. P(B | A) is not P(A | B): forgetting the prior, or the base rate, is the classic error, as in a medical test for a rare disease, where most positives are false.

Watch out
  • Reading 'at least one' as 'this one'.
  • Ignoring the prior, or the base rate.
  • Confusing P(B | A) with P(A | B).
In the interview
  1. Why is the probability of A given B not the probability of B given A? Give an example from finance.

  2. A test detects 99% of people with a condition and wrongly flags 1% of the others. The condition affects 1 in 1,000. You test positive: how likely are you to have it?

  3. A test for a rare condition is 99% accurate, and you test positive. How worried should you be?

    A complete answer covers

    • It depends on how rare the condition is: the base rate.
    • Use Bayes: true positives against all positives.
    • With a 1% rate and 5% false positives, only about 1 positive in 6 is real.
    • A second, independent test changes the picture a lot.

Also in our technical interviews, on camera, with a score.

Concept 2 of 81 min

Counting

The rule
Combinations C(n, k) count unordered choices, and 'at least one' is easiest as 1 minus the chance of none.

The why, the charts, the worked example and the interview questions are in Essentials, with every quiz.

See the plansSign in

Concept 3 of 81 min

Linearity of expectation

The rule
The expectation of a sum is the sum of the expectations, even when the parts are dependent, so counting becomes a sum of indicator probabilities.

The why, the charts, the worked example and the interview questions are in Essentials, with every quiz.

See the plansSign in

Concept 4 of 81 min

Dice: maxima, variance and games

The rule
The maximum of several dice comes from P(max ≤ k), and the variances of independent dice add.

The why, the charts, the worked example and the interview questions are in Essentials, with every quiz.

See the plansSign in

Concept 5 of 81 min

Waiting for coin patterns

The rule
The expected wait for a pattern of flips depends on how a miss sets you back: heads-tails takes 4 flips, heads-heads 6.

The why, the charts, the worked example and the interview questions are in Essentials, with every quiz.

See the plansSign in

Concept 6 of 81 min

Uniform draws and geometric probability

The rule
For independent uniform draws on [0, 1], probabilities are areas in the unit square, and the maximum of 2 draws averages 2/3.

The why, the charts, the worked example and the interview questions are in Essentials, with every quiz.

See the plansSign in

Concept 7 of 81 min

Binomial counts and Kelly bets

The rule
A binomial count with n trials and probability p has mean n × p and variance n × p × (1 − p).

The why, the charts, the worked example and the interview questions are in Essentials, with every quiz.

See the plansSign in

Concept 8 of 81 min

AdvancedBayes in odds: each signal multiplies

The rule
In odds form, Bayes' rule multiplies the prior odds by the likelihood ratio, so independent pieces of evidence simply multiply their ratios.

The why, the charts, the worked example and the interview questions are in Essentials, with every quiz.

See the plansSign in

Recap

  • Condition on exactly what you are told: 'at least one' is not 'the first one'; Bayes weighs each hypothesis by its prior.
  • Linearity of expectation works without independence: count indicators and add their probabilities.
  • For a maximum, use P(max ≤ k); for waiting times, set up states and solve.
  • Variances add for independent variables; E[X²] is not E[X]².
  • Uniform draws become areas in the unit square.
Now test it

25 questions on Probability and brainteasers

Timed, like the real one, drawn from a bank of 33. Every answer explained.

Test yourself →