Quoto

9 cards2 min readStatistics

Card 1 of 9
  1. 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
  2. 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
  3. Example: Every resample by hand

    Data , , . What is the bootstrap variance of the sample mean?

    1. Mean , squared deviations
    2. Variance of the data:
    3. Mean of draws:
  4. Formula: What a resample misses

    Tends to 1/e ≈ 0.37, so a resample holds about 63% of the distinct points.

  5. Quick check: A missing point

    With , what is the chance that a given point is missing from a resample?

    Show the answer

    Answer:

    , about .

  6. 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.

  7. 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
  8. Example: A block bootstrap

    Returns in order: , , , , , . Resample blocks of . What is the variance of the total?

    1. Block totals , , , mean
    2. Squared deviations:
    3. Total of blocks:
  9. 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.