With some additional robustness checks and careful implementation of a simulator for fill prices, commissions etc you are well on your way to launching your first quant strategy.
-
Show this thread
-
Only problem is that the price series is one I generated using 100% random noise, it is completely unpredictable by any signal. Congratulations, you now know how to overfit a backtest. Welcome to quant research.
30 replies 11 retweets 348 likesShow this thread -
Replying to @macrocephalopod
This is awesome, I like the idea of plotting sharpe as a function of parameter setting to find the sweet spot... good to bet on multiple settings tho for robustness. Since this series randomm,Any xtra steps u do to scrutinize whether it works bc of luck? Or is that always a risk
2 replies 0 retweets 2 likes -
Replying to @M1tchRosenthal @macrocephalopod
I mean this is why you have out of sample testing.
2 replies 0 retweets 7 likes -
but if you have a thousand such time series, some of these will have good out of sample results. that’s really the whole game I think, balancing signal decay/transience vs random noise issues. it really helps to have a fundamental/structural view to weed out unlikely signals
2 replies 0 retweets 5 likes -
this is why bonferroni exists and why parameter grid search is satanic
1 reply 0 retweets 3 likes -
If you dont mind could you give a quick example for time series? Google isnt yielding great results on this. Suppose signal of interest is something Naive like RSI > 80, and hypothesis is that it causes abnormally low future 10 increment returns, any idea how to bonferri it?
1 reply 0 retweets 1 like -
I mean, simply, bonferroni would be used if you did a parameter search, e.g. if you checked RSI > 80, > 90, 10, 20, 30 increments. This is massively prone to overfitting. So you create a testable hypothesis - e.g. difference of mean returns for example (ideally bootstrapped)
3 replies 0 retweets 5 likes -
Hmm I think bonferroni is only correct for independent samples. Searching a parameter grid will likely give you correlated samples, so bonferroni would be too strong. But you general point is right, you simply should not do this (or do it in walk forward testing if you need to)
1 reply 0 retweets 2 likes -
Replying to @macrocephalopod @nope_its_lily and
Bonferroni (at least in its usual formulations) doesn't require independence.
1 reply 0 retweets 0 likes
It is too strong if the results of each test are positively correlated though. For example if you tested on exactly the same data in each experiment the correct significance level would bot be P(x|null) < alpha/n but rather P(x|null) < alpha.
-
-
Replying to @macrocephalopod @spreekaway and
eg see the first line under “criticism” here —https://en.m.wikipedia.org/wiki/Bonferroni_correction …
1 reply 0 retweets 0 likes -
Replying to @macrocephalopod @nope_its_lily and
Oh you meant that it doesn't give a very good bound in such cases. I agree. But it doesn't really make sense to say that it requires independence. If you actually have independent tests for some reason, you would reject if pval < (1 - (1-alpha)^(1/# tests))
0 replies 0 retweets 1 like
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.