Idea: An error bar with no formula
The bootstrap treats the sample as the population and draws from it.
- Works for medians, Sharpe ratios, quantiles
- skewed fills have no usable textbook formula
Idea: The recipe
Draw points with replacement, compute , repeat times.
- Some points repeat, some drop out
- The spread of , …, estimates the standard error
- Take in the thousands
Example: Every resample by hand
Data , , . What is the bootstrap variance of the sample mean?
- Mean , squared deviations
- Variance of the data:
- Mean of draws:
Formula: What a resample misses
Tends to 1/e ≈ 0.37, so a resample holds about 63% of the distinct points.
Quick check: A missing point
With , what is the chance that a given point is missing from a resample?
Show the answer
Answer:
, about .
Common mistake: Bootstrapping the maximum
The resample max equals the sample max about of the time. No value outside the sample can appear.
Instead Use it for means, medians and other statistics that move smoothly with the data.
Idea: When order matters
Plain resampling shuffles away runs of good and bad days.
- Returns , , , , , : plain gives
- Blocks of keep neighbours together
- Block length: hold the dependence, leave many blocks
Example: A block bootstrap
Returns in order: , , , , , . Resample blocks of . What is the variance of the total?
- Block totals , , , mean
- Squared deviations:
- Total of blocks:
Common mistake: Trusting a calm sample
If all fills came from a calm week, every resample is calm and the interval looks tight.
Instead The bootstrap measures the spread of an estimate. It does not repair a bad sample.
Courses / Simulation and approximation