滚动回测怎么做:让训练与部署节奏保持一致
模拟每次只能看到过去
滚动回测按时间推进:在某个截止日以前的数据上训练或选择参数,再在之后的一段时间评估,随后将截止日向前移动。这种方法能更接近周期性更新模型的实际流程,也有助于观察策略在不同市场阶段是否表现一致。
窗口长度有不同含义
固定窗口只使用最近一段历史,可能更关注近期状态,但样本较少时估计不稳定;扩展窗口保留从起点以来的全部历史,样本更多,却可能混入较旧且已变化的关系。选择应依据业务逻辑和数据性质,而不是只挑表现最好的一种。
训练窗口、验证窗口、测试窗口和再训练频率需要分别写清。若实际计划每月更新一次,回测却每天利用最新结果重新选择参数,得到的表现就不对应真实部署方案。预处理、特征筛选和交易成本也必须在每个窗口内按同样规则重做。
参数选择要留在窗口内部
每个阶段的参数只能由当时可用的训练和验证数据决定,不能看完整段回测之后再统一挑选最优参数。若候选参数很多,应保存尝试记录并考虑多次比较的影响。选择过程越复杂,越需要独立样本确认其稳定性。
汇总结果时,检查相邻测试窗口是否重叠。若同一天在多个窗口中出现,简单拼接会重复计算收益。应事先规定每个交易时点采用哪一版本模型,并据此构建唯一的资金曲线,同时保留各窗口的独立统计以观察差异。
最终报告除总体收益外,还应列出窗口数量、最差窗口、换手、成本和参数变化情况。若模型频繁选择完全不同的参数,或少数窗口贡献大部分收益,应继续研究原因。滚动回测提升了验证过程的现实性,但不会自动消除过拟合与未来环境变化。
-
‘Wings of Water’ by Sohan Lal zooms in on the indigenous Kuttanad duck and the need to save themWhy the Philippines is betting on Chinese wind power amid security concernsWhy the Philippines is betting on Chinese wind power amid security concernsHong Kong’s legal overhaul protects what makes the city workCrostini mit Steinpilz-Pesto - DER SPIEGELHong Kong’s legal overhaul protects what makes the city workChina seeks to boost stable bank funding, vows to guard against financial ‘blow-ups’Competition for China’s civil service exam even fiercer as authorities cut 2,400 jobs江苏林洋能源股份有限公司-陆永华-企业家-大咖-索比光伏网Chinese-language brain-computer interface helps ALS patient ‘speak’ in real time
下一篇:Swiss neutrality melting as fast as Alpine glaciers — Russian embassy
- ·One killed in Kaluga, 161 UAVs: aftermath of Ukrainian attacks
- ·Hong Kong to revive plans to fine privacy violators, offer cybersecurity support
- ·China’s ‘fastest nurse’ keeps on winning, as Fujian triumph makes it sixth gold in 7 weeks
- ·How Chinese tech firms can leverage Qianhai and Hong Kong’s advantages to achieve growth
- ·虚拟电厂分论坛-索比光伏网
- ·Hong Kong to revive plans to fine privacy violators, offer cybersecurity support
- ·Air China Boeing 747-8 logs 17.5-hour ultra-long-haul trip from New York after bad weather
- ·Duterte stands trial: ex-Philippine leader pleads not guilty in ICC case
- ·Northeast India gets its first astro tourism observatory in Arunchal Pradesh
- ·Chinese-language brain-computer interface helps ALS patient ‘speak’ in real time
- ·Hong Kong’s legal overhaul protects what makes the city work
- ·How Chinese tech firms can leverage Qianhai and Hong Kong’s advantages to achieve growth
- ·江苏林洋能源股份有限公司-陆永华-企业家-大咖-索比光伏网
- ·China’s ‘fastest nurse’ keeps on winning, as Fujian triumph makes it sixth gold in 7 weeks
- ·China’s ‘fastest nurse’ keeps on winning, as Fujian triumph makes it sixth gold in 7 weeks
- ·How Hong Kong can add business value in the age of agentic AI
- ·Canada lost two tournaments due to refusal to grant visas to Russian athletes
- ·Why the Philippines is betting on Chinese wind power amid security concerns
- ·Hong Kong unveils merger incentives for well-established schools
- ·How will EU anti-dumping probe into sustainable aviation fuel affect Chinese suppliers?
- ·WHU-Abschied aus Kleinstadt Vallendar: Was bleibt von einer Hochschulstadt ohne ihre Hochschule? - DER SPIEGEL
- ·Why the Philippines is betting on Chinese wind power amid security concerns
- ·Duterte stands trial: ex-Philippine leader pleads not guilty in ICC case
- ·China seeks to boost stable bank funding, vows to guard against financial ‘blow-ups’
- ·'Fácil de usar e indolor': testei o aparador de pelos faciais da Ricca
- ·Hong Kong’s legal overhaul protects what makes the city work
- ·Carro chinês de R$ 49 mil tenta se viabilizar no Brasil, mas esbarra em lei
- ·Hong Kong to revive plans to fine privacy violators, offer cybersecurity support
- ·The West won’t admit it, but China’s green factories fill a global void
- ·Competition for China’s civil service exam even fiercer as authorities cut 2,400 jobs
- ·分布式光伏分论坛-索比光伏网
- ·Competition for China’s civil service exam even fiercer as authorities cut 2,400 jobs
- ·The West won’t admit it, but China’s green factories fill a global void
- ·Air China Boeing 747-8 logs 17.5-hour ultra-long-haul trip from New York after bad weather
- ·虚拟电厂分论坛-索比光伏网
- ·Why the Philippines is betting on Chinese wind power amid security concerns
