Quoto

Courses / Trading and risk

Backtesting forecasts

9 cards2 min readStatistics

Card 1 of 9
  1. Idea: Ask about the calendar

    A backtest is a claim about the past as it was lived. Use data in the order the world produced it.

    • When was each forecast made?
    • What was known at that moment?
  2. Example: Walk forward, never shuffle

    days, a training window of , test blocks of . How many refits?

    1. Fit, forecast the next block, roll both forward
  3. Formula: Error sizes

    averages the size of a miss. punishes big misses more and is never below .

  4. Quick check: Compute the

    Misses of , , , and . What is the ?

    Show the answer

    Answer:

    and , above the of .

  5. Example: Check an interval

    An interval holds on of days. How many standard deviations short is that?

    1. Expected , variance
    2. Shortfall ,
  6. Idea: Costs turn signals into strategies

    A forecast is worth only what survives trading it.

    • bp gross, half the book traded at bp:
    • Double the turnover:
    • A signal from the close cannot trade at that close
  7. Idea: 3 ways to fool yourself

    Leakage, survivorship and repeated tuning all make a backtest look better than it is.

    • Look-ahead: revised data, full-sample scaling, period-end dates
    • Survivorship: use membership lists as they stood on each date
    • Tuning: tries at give false find
  8. Common mistake: Hiding the trial count

    The best of many tries always looks good: for at least one false find.

    Instead Report how many variants you tried, adjust for them, and touch the final holdout once.

  9. Idea: Say it in the room

    Name the split first, then the metric, then the costs.

    • Ask how many variants were tried
    • Ask whether the universe and the data are as they stood on each date