Back-Testing of Trading Strategies: 8.1bootstrap
Back-Testing of Trading Strategies: 8.1bootstrap
Back-Testing of Trading Strategies: 8.1bootstrap
8.1Bootstrap
Brock et al (1992), Davidson & Hinkley (1997), Fusai & Roncoroni (2008).
Bootstrap: picking up at random an element of given sample, copying it into the new sample, and
putting it back (replacement). This random selection continues until the new sample has the same
number of elements as the original one.
1
8. Back-testing of trading strategies
8.1Bootstrap (continued)
Pr(L=k) = (1 p)k-1p
2
8. Back-testing of trading strategies
8.1Bootstrap (continued 2)
1. Model choice: random walk (with drift), ARMA, etc.
2. Bootstrapping residuals
4
8. Back-testing of trading strategies
p
i 1
ik 1
2nd order: N3 probabilities pijk = Pr(Xn = xk | Xn-1 = xi, Xn-2 = xj) = pijk,
i, j, k = 1, 2, ..., N
N
p jik 1
i , j 1
5
8. Back-testing of trading strategies
Implementation:
6
MCMC Example
Possible returns {-1, 0, 1}
rk = -1: Pr(rk+1 =-1 | rk = -1) + Pr(rk+1 = 0 | rk = -1) + Pr(rk+1 = 1 | rk = -1) = 1
0.5 0.3 0.2
What to do about coupled samples (e.g. price & some liquidity measure
like aggregated volume at best price)?
Do we want to destroy correlations between coupled samples?
Autocorrelation bias...
Implementation:
Start trading at random point of time.
Similar to block bootstrap but the block size is determined by timing of
round-trip trading.
8
8. Back-testing of trading strategies
A newsletter scammer...
9
8. Back-testing of trading strategies
10
8. Back-testing of trading strategies
BRC:
1) Calculate = max { }, k = 1, f..., L
V k
11
8. Back-testing of trading strategies
Hansen (2005):
BRC may have a lower power due to possible presence of poorly performing
strategies in the test. Power of the statistical test relates to the ability of
rejecting false null hypothesis. Only promising strategies should be included
in the test.
12