strateva.

Articles

Block bootstrap and permutation Monte Carlo: the question each one answers

In this article

Almost every backtest report comes with a "Monte Carlo": a fan of curves around the real one. It is usually presented as a robustness test. It is only half of one, and a lot depends on how those curves are generated.

There are two common ways of doing it from the strategy's own returns. They look like the same thing and they aren't: each answers a different question. This article explains both with a real case and says what neither can answer.

What it is, in one sentence

A Monte Carlo of this kind doesn't invent new prices. It takes the returns the strategy already had and builds many alternative histories from them. What differs between methods is the rule for building them.

Permutation: the same returns in another order

You take every return and shuffle them. Each alternative history contains exactly the same months, each one once, in a different order.

The direct consequence: the final return is identical in all of them. Multiply the same numbers and the order doesn't change the product. Only the path moves: the maximum drawdown, the time below the peak and the length of the losing streaks.

The question it answers is narrow and useful: how much of my maximum drawdown is down to the order in which the months arrived?

Blocks: stretches of history, with replacement

Here you don't shuffle month by month. You pick consecutive stretches of the history (blocks) at random and join them until you have a history of the same length. Blocks are drawn with replacement: one stretch can appear twice and another not at all.

That changes two things compared with permutation:

  • The final return is no longer fixed. If the best year appears twice and the worst doesn't appear, the alternative history ends higher. That is why this method can put a margin of error on the return and the Sharpe, which permutation cannot do.
  • Whatever happens inside a block is kept. If losses tend to come together, or a rough month tends to be followed by another, a block preserves it. Shuffling month by month breaks it.

The question it answers is broader: if history repeated itself with variations, between which values would the return and the drawdown fall?

Both methods on a real case

We applied them to our own case EWMA63: 197 real monthly returns, net of costs. Its annual return was 22.8% and its worst drawdown −21.8%.

Two ways of replaying the same historyThe 197 real monthly returns of EWMA63, resampled 5,000 times each way. Under permutation the final return does not change and only the drawdown moves. With 3-month blocks the drawdown moves almost as much, but the return changes too: between 15.1% and 31.2% a year in the central 90%.

Permutation · maximum drawdown: −31.4% to −15.6%

0450900−50%−40%−30%−20%−10%−21.8%

3-month blocks · maximum drawdown: −33.6% to −14.4%

0450900−50%−40%−30%−20%−10%−21.8%

3-month blocks · annual return: 15.1% to 31.2%

045090010%20%30%40%22.8%
  • 5,000 resamples
  • Real history

Source: monthly returns from the public EWMA63 repository, net of 10 bps (197 months, 2010–2026).

Permutation3-month blocks
Annual return, central 90%always 22.8%15.1% to 31.2%
Worst drawdown, central 90%−31.4% to −15.6%−33.6% to −14.4%
Worst drawdown, median−21.5%−21.6%

Three readings:

  1. The historical drawdown is not "the" drawdown of the strategy. With the same months in another order, one history in twenty falls more than 31%. Anyone sizing their capital to withstand −21.8% is leaning on one particular sequence.
  2. The return has a wide margin. With 197 months, 22.8% a year is compatible with anything between 15% and 31%. A return figure without that margin says less than it seems to.
  3. Here the two methods give similar drawdowns, and there is a reason. The monthly returns of this case barely resemble each other from one month to the next (autocorrelation of 0.04). When there is no dependence to preserve, shuffling and block resampling say almost the same about the drawdown. The difference shows up in series where losses cluster, as they usually do in daily data: there permutation undoes the streaks and understates the risk.

Why a pretty curve can do badly in both

  • If the curve owes its smoothness to the order, permutation shows it: the historical drawdown sits at the good end of the distribution, and most reorderings fall a good deal further.
  • If the return depends on a few exceptional months, blocks show it: the histories where those months don't appear end much lower, and the margin on the return widens until it includes uninteresting values.

Neither can be seen by looking at the curve.

What neither of them can tell you

This is the limit most often forgotten:

  • They create no new information. Both tests reuse the same returns. If the backtest is inflated by look-ahead, by having picked the best of many variants or by a biased universe, every alternative history inherits the same flaw. A Monte Carlo on inflated returns gives a fan of inflated curves.
  • They don't prove there is an edge. They measure how much what already happened could have varied. Telling a result apart from chance takes a different test, and if several variants were tried, measuring selection bias with the Deflated Sharpe Ratio and PBO.
  • They assume the future resembles the sample. If the period contains no crisis of a given kind, no reordering will manufacture one.
  • Block size matters. Blocks that are too short break the dependence you wanted to keep; too long and few histories are really different. Which one was used, and why, has to be stated.

What to ask if someone shows you a Monte Carlo

  • Are single returns shuffled, blocks resampled, or prices simulated from a model?
  • If blocks, of what size and how was it chosen?
  • How many histories were generated and with what seed, so it can be repeated?
  • Are the starting returns net of costs?
  • Which percentiles are shown? An average of many curves hides exactly what matters.

Where it fits in a validation

Our validation can include both: block resampling, with the block size stated, to give margins of error on the return, the Sharpe and the drawdown; and a permutation of the order to separate how much of the drawdown depends on the sequence. In the published report for EWMA63 the margins come from 10,000 resamples in 3-month blocks. Both are presented as what they are: a measure of uncertainty about the history, never a forecast.

These tests are part of the quantitative validation. At Strateva we validate strategies in stocks, ETFs, spot crypto and spot FX, always unleveraged and with no margin. We don't take engagements on CFDs, futures, perpetuals or options.

To ask whether yours fits, write to stan@strateva.ai with the market (stocks, ETFs, crypto or FX, spot), the frequency and how many returns your history has. Don't send private code or passwords in the first email.


Educational and research content. Not investment advice. The figures are our own calculation on the 197 monthly returns net of 10 bps published in the public repository Filip303/EWMA_63_Strat: 5,000 permutations and 5,000 circular block resamples of 3 months with replacement, with a fixed seed. Because the seed and the number of resamples differ, they differ by tenths from those in the published report. The universe of that case is companies that exist today, which inflates the absolute return; that affects every alternative history equally.

Related cases

EWMA63 — Does beta selection add value beyond de-risking?

All articles

CONTACT

Tell me about your strategy. I will say whether it fits within 48 business hours.

Tell me what you want checked, the asset, the frequency and what you have: rules, a report or code. I will tell you whether it fits and which plan it would be.

What to include in your email

  • Market, instruments and frequency (Spot only).
  • What you want checked, and the period.
  • Language and approximate code size, without pasting the code.
  • What data you have, and whether you need an NDA.

Do not send private code, keys or passwords.

stan@strateva.ai

Reply within 48 h (business days). No private material in the first message. No obligation to commission work.

Who replies

I am Filip Stanciu. I have an MSc in Quantitative Finance from the University of Alcalá, a degree in Finance from the Complutense University of Madrid, and a MiFID II certificate. I have worked in quantitative research for an asset manager, validating stock and ETF strategies. I read and reply to every email myself.

I am not a certification body and I am not a large team. I am one person, and I say so.

Nicolae Filip Stanciu