Skip to content
  • Overview
  • Curriculum
    • FLUMental maths and numerical fluency
    • COMBCounting and combinatorics
    • PROBProbability
    • STATStatistics and inference
      • 1Limit theorems

        • The law of large numbers and the central limit theorem
      • 2Estimation

        • Estimation: bias, variance and maximum likelihood
      • 3Confidence intervals

        • Confidence intervals, and the interval you would trade
      • 4Hypothesis testing

        • Hypothesis testing: errors, power and which test to use
      • 5p-values and multiple testing

        • p-values, p-hacking and the multiple-testing problem
      • 6Resampling

        • Resampling: the bootstrap, permutation tests and where they break
      • 7Bayesian statistics

        • Bayesian statistics: conjugacy, shrinkage and credible intervals
      • 8Experiment design

        • Experiment design: randomisation, peeking and minimum detectable effect
    • REGRegression and econometrics
    • TSTime series
    • LALinear algebra
    • SCStochastic calculus
    • MLMachine learning
    • SIGAlpha and signal research
    • CASEResearch case studies

Practise

  • Question bank
  • Mental arithmetic
  • Market simulator
  • Arbitrage trees
  • Horse racing
  • Bid book
  • Screening tests
  • Mock papers

Reference

  • Formula reference
  • Search

Your record

  • Review queue
  • Progress
  • Leaderboard
  • Profile
  • Invite friends
AccountSend feedback
  1. Curriculum
  2. /Quantitative research
  3. /Statistics and inference
  4. /Resampling

Resampling: the bootstrap, permutation tests and where they break

STAT · Chapter 6·12 min read·Asked at Two Sigma, QuantCo, AQR, Citadel

Assumes Hypothesis testing: errors, power and which test to use.

After this lesson you should be able to

  • Describe the bootstrap and what it estimates.
  • Use a permutation test where no distributional assumption is available.
  • Say why the ordinary bootstrap fails on a time series, and what replaces it.

Resampling replaces a distributional assumption with computation: instead of deriving the sampling distribution of a statistic, you generate it by re-drawing from the data you have. It is the right tool when the statistic is awkward — a median, a Sharpe ratio, a maximum drawdown — and the wrong one the moment the observations are not exchangeable.

Definition 6.1

The bootstrap

Bootstrap, resample n points with replacement, recompute, repeat\text{resample } n \text{ points with replacement, recompute, repeat}resample n points with replacement, recompute, repeat — Treat the sample as if it were the population, draw new samples of the same size from it with replacement, and compute your statistic on each. The spread of those values estimates the sampling distribution — which gives you a standard error or a confidence interval for any statistic at all, including ones with no closed form.

Drawn at least once63.2Never drawn36.8
Figure 6.2 · What one bootstrap resample contains. Resampling nnn points with replacement leaves each one out with probability (1−1/n)n(1-1/n)^n(1−1/n)n, which converges to 1/e1/e1/e. So every resample is built from about 63%63\%63% of the data and the remaining third is what makes the resamples differ from each other.

Why re-using the same data is not circular. The obvious objection is that you cannot manufacture information by shuffling what you already have, and you cannot. What the bootstrap estimates is not the parameter — that still comes from the sample — but the *variability* of the estimate, and for that the empirical distribution is a legitimate stand-in for the true one. The plug-in step is the whole trick: the relationship between population and sample is approximated by the relationship between sample and resample.

MethodQuestion it answersNote
BootstrapHow variable is my estimate?Works for almost any statistic
JackknifeSame, by leaving one out at a timeCheaper, and fails on non-smooth statistics like the median
Permutation testCould this difference be chance?Exact under exchangeability; no distribution assumed
Block bootstrapVariability with dependent dataResample blocks, not points
Stationary bootstrapSame, with random block lengthsAvoids artefacts at fixed block boundaries
Table 6.3 · What each method is for. The permutation test is the one to reach for when you are asked "is this difference real?" and cannot justify any distributional assumption — it makes only the assumption already implied by the null.

Derivation 6.4

A permutation test

Under the null the labels carry no information, so any relabelling is equally likely.

  1. tobs=xˉA−xˉBt_{\text{obs}} = \bar{x}_A - \bar{x}_Btobs​=xˉA​−xˉB​

    Compute the statistic on the real labelling.

  2. shuffle the labels, recompute t(k), many times\text{shuffle the labels, recompute } t^{(k)}, \text{ many times}shuffle the labels, recompute t(k), many times

    This generates the null distribution directly.

  3. p=#{∣t(k)∣≥∣tobs∣}+1K+1p = \frac{\#\{|t^{(k)}| \ge |t_{\text{obs}}|\} + 1}{K + 1}p=K+1#{∣t(k)∣≥∣tobs​∣}+1​

    The +1+1+1s include the observed value and keep the test valid.

an exact p-value, assuming only exchangeability\text{an exact } p\text{-value, assuming only exchangeability}an exact p-value, assuming only exchangeability

The rest of this lesson is in Premium

You have read the opening. 11 more sections follow, including 5 worked examples and 3 quick checks.

Start the free 7-day trialSign in

Nothing is charged for 7 days, and you can cancel before then. Or read The law of large numbers and the central limit theorem in full, free.

← p-values, p-hacking and the multiple-testing problemBayesian statistics: conjugacy, shrinkage and credible intervals →
On this page
  • The bootstrap
  • What one bootstrap resample contains
  • What each method is for
  • A permutation test

QuantMax · 141 lessons · 1342 questions · c5c0caa

  • Premium
  • Arbitrage trees
  • Horse racing
  • Invite friends
  • Account
  • About QuantMax
  • Terms
  • Privacy

Firm names identify publicly reported question patterns and nothing more. QuantMax is not affiliated with, endorsed by, or recruiting for any firm named in the curriculum. Everything you do in lessons and the question bank is kept to your account.