Overfitting and the test period: in-sample, out-of-sample and four honest verdicts

What you will learn

  • Recognize overfitting and explain why in-sample results flatter a rule.
  • Explain why the split between the rule period and the test period is fixed in advance.
  • Apply the four verdicts: Beat buy-and-hold in both, Beat buy-and-hold in part, Did not beat buy-and-hold and Not enough data.
  • Treat “Did not beat buy-and-hold” as a common and useful result.

Check your understanding

Answer each question to see the explanation. Answers are not saved.

  1. Rule years: the strategy beats the benchmark on CAGR but not on Sharpe ratio. Test years: it loses on both. Data are sufficient. What is the verdict?

    1. A Beat buy-and-hold in part
    2. B Did not beat buy-and-hold
    3. C Beat buy-and-hold in both
    4. D Not enough data
    Show the answer

    Answer: B. A period with no win on either measure makes the verdict Did not beat buy-and-hold. Here the test years have none.

  2. Rule years: wins on both measures. Test years: wins on Sharpe ratio but not on CAGR. Data are sufficient. What is the verdict?

    1. A Beat buy-and-hold in both
    2. B Did not beat buy-and-hold
    3. C Beat buy-and-hold in part
    Show the answer

    Answer: C. Each period has at least one win, but not all four comparisons are won, so the verdict is Beat buy-and-hold in part.

  3. A study beats its benchmark on everything, but the test years contain only 15 closed trades. What is the verdict?

    1. A Not enough data
    2. B Beat buy-and-hold in both
    3. C Beat buy-and-hold in part
    4. D Did not beat buy-and-hold
    Show the answer

    Answer: A. Fewer than 20 closed trades in either period means the result cannot be told apart from luck. The data check comes first.

  4. Why does Clear Tape use one fixed split date instead of letting you choose it?

    1. A A movable split becomes one more setting to tune until the test period looks good
    2. B Because price data from before 2015 is too unreliable to use in a two-period test
    3. C It makes the test faster
    Show the answer

    Answer: A. Choosing the split after seeing results is a form of overfitting. A fixed split also makes verdicts comparable across studies.

  5. You run the test period, dislike the result, change one rule and run it again. How should you treat the second result?

    1. A As a clean out-of-sample test
    2. B As a new study whose test period has already been seen, so trust it less
    3. C As more reliable, because the rule is now better
    Show the answer

    Answer: B. Once the test period has shaped a change, it is no longer unseen. The new result is partly in-sample.

  6. A rule loses to its benchmark on both measures in the rule years but wins on both in the test years. What is the verdict?

    1. A Beat buy-and-hold in both, because the test years are what count
    2. B Beat buy-and-hold in part
    3. C Did not beat buy-and-hold
    Show the answer

    Answer: C. The verdict is strict: a period without a win makes it Did not beat buy-and-hold. The rule was formed on the rule-years data, so failing there is informative.

Try it in Clear Tape

Put the lesson next to real rules: three stock-picking strategies apply fixed rules each month or quarter, with their backtests after costs and a live record from November 2, 2026.

Continue in Clear Tape

With a free account, your progress and quiz scores are saved, and you can practice with the question bank, keep a wrong-answer book and study real chart examples.