sampling
4 posts
- Quant interview toolkit · coverage and sampling
Why the last missing market state takes so long to appear
A dataset can cover nine of ten event types quickly and still wait a long time for the tenth. Derive the coupon collector expectation, inspect its tail, and see what changes when categories are unequal.
- Quant interview toolkit · unequal probability sampling
Estimating a desk total from a deliberately thinned trade log
Recover an unbiased total when logging probabilities differ, quantify the cost of rare records, and see when a weighted average introduces bias.
- Quant interview toolkit · stratified sampling
Which trades deserve the next hundred measurements?
Derive Neyman allocation for a slippage study, compare three audit plans and recover the desk-wide mean after oversampling volatile trades.
- Quant interview toolkit · weighted sampling
Draw trades by size without drawing the same trade twice
Use exponential clocks to sample weighted records in one pass. A three-trade example shows why the first-draw probability differs from final inclusion probability.