Advertisement
Sabrebar

Untitled

Jan 2nd, 2023
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.68 KB | None | 0 0
  1. One of the most important lessons about optimization in quant finance is that you need to make sure you are optimizing for a close to optimal but also robust solution. A good example is with portfolio optimization where MVO can underperform OOS from you not taking into...
  2. Don
  3. Stat Arb
  4. @quant_arb
  5. ·
  6. Dec 2, 2022
  7. account the error of the expected return or the error in volatility. Volatility is usually more robust, and correlations can be considered the most robust of all, but this is super important to consider. The same rule applies to pairs trading...
  8. Don
  9. Stat Arb
  10. @quant_arb
  11. ·
  12. Dec 2, 2022
  13. pairs trading is just an optimization problem. Whether you are brute force checking combinations of symbols and testing for ADF (or whatever chosen metric) or even going up to many assets with VAR (box-tiao) optimizations etc it is still an optimization problem...
  14. Don
  15. Stat Arb
  16. @quant_arb
  17. ·
  18. Dec 2, 2022
  19. the issue is that often these portfolios are not robust. I don't trade this model anymore since it has low capacity, but adding a validation period improves performance massively. Train maybe 30 pairs portfolios (but also PCA them all together then use correlation...
  20. Don
  21. Stat Arb
  22. @quant_arb
  23. as a way to reduce correlation, you can use average correlation, but PCA is far more robust). Then with your 30 portfolios you can use a robustness measure, normally I would use a mean-reversion ensemble for the first training round (portmanteau, box-tiao, proprietary ones...
  24. 9:18 PM · Dec 2, 2022
  25. 1
  26. Retweet
  27. 13
  28. Likes
  29. Don
  30.  
  31. Stat Arb
  32. @quant_arb
  33. ·
  34. Dec 2, 2022
  35. Replying to
  36. @quant_arb
  37. like Hurst which you can derive convex relaxations for) and then stationarity tests for the validation part (ADF, KPSS etc). Finally I just slap some Bollinger bands on it with a reverse exponentially weighted moving average (so large shocks/deviations didn't immediately...
  38. Don
  39. Stat Arb
  40. @quant_arb
  41. ·
  42. Dec 2, 2022
  43. move the spread leading to something I called "lag error"). Lag error comes from 3 things:
  44. 1. wrong period of mean reversion (in the photo below we see an example of failing to specify a specific period for mean reversion and just optimizing for general unpredictability...
  45. Don
  46. Stat Arb
  47. @quant_arb
  48. ·
  49. Dec 2, 2022
  50. if you trade the longer timeframe of mean-reversion you get loads of noise in your curve from the lower timeframe white noise, and if you try to capture the lower timeframe you get lag error from drift. Drift is what create lag error. You can remove lag error using a smart...
  51. Don
  52. Stat Arb
  53. @quant_arb
  54. ·
  55. Dec 2, 2022
  56. model that accounts for trends/ different timeframes. I won't explain how I used to solve this problem since I'm pretty sure it still performs in equities if you have half decent fees (feel free to figure it out, I'm all crypto now)...
  57. Don
  58. Stat Arb
  59. @quant_arb
  60. ·
  61. Dec 2, 2022
  62. The second reason was just a long-term drift stated above. 3rd reason is that deviations from the mean also move the mean. How do you determine when the long term mean has shifted. Bollinger bands are usually better than the standard method of taking the mean if you optimize...
  63. Don
  64. Stat Arb
  65. @quant_arb
  66. ·
  67. Dec 2, 2022
  68. for mean-reversion. If you optimize for stability (which is what most people do, hence less alpha) then Bollinger bands are less appropriate. Fun to share a bit of alpha from research I did a while back. I'm pretty sure there is still like 20-30%+ returns from these...
  69. Don
  70. Stat Arb
  71. @quant_arb
  72. ·
  73. Dec 2, 2022
  74. strategies on daily (maybe even 4h, not sure) rebalance, and likely much higher for intraday. Need good execution tech since you have so many legs frictions become important. 4-6 asset portfolios aren't practical in crypto and bivariate only has n^2 solutions...
  75. Don
  76.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement