Analysis & metrics

Bootstrap

A method for estimating uncertainty by repeatedly sampling observations with replacement from an available sample and recalculating a statistic, such as its mean. The resulting estimates help describe sampling variability. Basic observation-level bootstrapping requires suitable independence assumptions; dependent data may require block resampling. It neither generates crises absent from the data nor independently establishes a strategy’s edge.
Example. The sample [−1R, −1R, +2R] has mean 0R. One possible bootstrap sample, [−1R, +2R, +2R], has mean 1R. This single resample illustrates the mechanism; it is insufficient to calculate a confidence interval.

How it works

Specify the statistic, number of resamples, interval method and random seed. When losses cluster or positions overlap, resampling individual trades can destroy relevant dependence. A block bootstrap requires justification of block length and construction.

Common mistake

Do not treat more resamples as a larger real-world dataset. Resampling cannot repair data errors, costs omitted from a backtest or selection of the best model using the same history.

Further learning

In the course: 15.4 Backtesting and forward testing — methods, evidence and pitfalls; 15.9 Forex Trade Journal — R-Multiple, Expectancy, SQN, and MAE/MFE. Sources: SciPy: bootstrap.

Simulation checks

Compare stability across seeds and repetitions while keeping the method fixed. Record block, gap and extreme-outcome treatment. Low simulation noise does not establish that the sample represents future markets.

FAQ

Are bootstrap and Monte Carlo synonyms?
No. Monte Carlo is a broader family of simulation methods. A bootstrap can use random simulation, but its starting point is an empirical sample.
Are a million resamples a million new trades?

No. They process the same empirical sample without adding new market history.

← Back to the full glossary

Jarosław Wasiński

Editor-in-chief, ForexMechanics.com • Macro & FX analyst

Independent analyst and practitioner with over 20 years of experience in financial markets. Actively involved in Forex since 2007, with a focus on fundamental analysis, OTC market structure, and disciplined capital risk management.

  • Creator and editor-in-chief of MyBank.pl, providing reliable financial education since 2004.
  • Author of hundreds of in-depth market commentaries, structural analyses, and educational materials for traders and investors.
  • Advocate for market transparency, promoting education grounded in hard data and institutional reports (BIS, ESMA, CFTC).

Full author profile, credentials & published research →

All content is educational and informational only – it does not constitute investment advice or a recommendation. Remember: leveraged trading (Forex/CFD) carries a high risk of rapid capital loss.