2
知识/样本内/样本外
shellway edited this page 2026-09-28 17:08:19 +08:00
This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

样本内/样本外(In-Sample / Out-of-Sample)

一句话:一部分数据用来建模/调参(样本内),另一部分只用来验证(样本外)。

💡 直觉

考试要有「没做过的题」才知道你真会;样本外就是那套没做过的题。

🧮 公式


\text{切分:} \{t \le T_0\}\ \text{(in-sample)},\quad \{t > T_0\}\ \text{(out-of-sample)}

⚠️ 常见误区

样本外只能看一次,反复调=又变成样本内(数据窥探)。

👉 实战锚点(学以致用)

  • ROADMAP P1-6 Walk-Forward 分析

📖 出处

《打开量化投资的黑箱》第9章;Chan 第3章

🔗 相关

知识/过拟合 知识/数据窥探 知识/前视偏差


分类:回测纪律 | 复习节奏:1/2/4/7/15 天(配合 Anki)