Anchored Walk Forward Optimization to Avoid Curve Fitting

Discussion in 'Automated Trading' started by fiverr, Sep 14, 2016.

  1. Metamega

    Metamega

    #21     Sep 26, 2016
    931 and fiverr like this.
  2. fiverr

    fiverr

    Yes, I do have out of sample parameters that work well. What else can I do to ensure that I have not curve fitted. This is the reason why I also want to run the parameters again from 2007 to 2009 (another batch of out of sample).
     
    #22     Sep 26, 2016
  3. Oh, I see. If you're just running the same parameter values through another set of out-of-sample data for additional confirmation, that's fine.

    Just to make sure we're on the same page, you have some parameters, p. You optimize them over some time period, t2, and get optimal values for p, p*. Then you look at your results over some out-of-sample (OOS) set, t3, with p* and you like what you see. Then you want to run p* over t1 for additional confirmation. No problem. You've just enlarged your OOS data. Works for me. One thing to think about is whether your strategy is time dependent in some way so that the in-sample (IS) set needs to be prior to the OOS set for some reason. Sometimes this happens.

    If you're thinking things are looking good and you want more evidence against curve fitting (I actually prefer to call it "over-optimization"), then you should do some basic statistics to see if the OOS results are statistically significantly better than the risk-free rate or, for simplicity, zero. Depending on sample sizes and variance, you could easily have what appears to be a good result in your OOS data that is actually just due to random chance.
     
    #23     Sep 26, 2016
    fiverr likes this.
  4. fiverr

    fiverr

    #24     Sep 30, 2016
  5. 931

    931

    Last edited: Oct 1, 2016
    #25     Oct 1, 2016
  6. 931

    931

    Last edited: Oct 1, 2016
    #26     Oct 1, 2016
    userque likes this.
  7. fiverr

    fiverr

    Gents,

    Have you guys listened to the latest interview - 060 – Strategy Optimization with Robert Pardo?

    It is really awesome. BTW, Robert is not a fan of Anchored WFO!
     
    #27     Oct 17, 2016
  8. Sergio77

    Sergio77

    #28     Oct 18, 2016
  9. 931

    931

    Would you prefer to seek hidden order in chaos with precision instead?:D
     
    Last edited: Oct 18, 2016
    #29     Oct 18, 2016
  10. In addition to the out-of-sample testing, I would suggest some bias-correction measures, which are rooted in the information theory.

    For example, you may consider something like this:
    BCP = (P * SQRT(T)) / (D * D)
    where
    BCP is bias-corrected performance
    P is the raw in-sample performance, such as Sharpe ratio
    T is the number of trades
    D is the dimension of the model (6 in your case)

    So, in-sample, you want to find a set of parameters which maximize BCP.

    For motivation behind this formula, take a look at the Akaike Information Criterion.
     
    #30     Oct 20, 2016
    fiverr likes this.