walk-forward test
Walk forward testing allows us to develop a trading system while maintaining a reasonable ‘degree of freedom’. Walk-forward testing carries the idea of ‘out-of-sample’ testing to the next level. It is a specific application of a technique known as Cross-validation. It means to take a segment of your data to optimize a system, and another segment of data to validate. Hence, here you optimize a window of data say past 1000 bars, and then test it on next 200 bars. Then roll the whole thing forward 200 bars and repeat the process. This gives you a large out of sample period and allows you to see how stable the system is over time.
Suppose you consider a strategy around a moving average. You take the first 3 months of data, and find that for that period a 20-minute moving average was optimal (using tick data). You then validate this rule by assessing its performance for the 4th month (i.e. profit, reward/risk or any other statistic of interest). Next, you repeat the optimization using data from month 2-4, and validate using month 5, and keep repeating this until you've reached the end of the data. The performance you get for the validation months (4-13) are your out-of-sample performance;
这种方法就是交叉验证中的一种特例;按时间来切割;其效果更稳定,我视之为集成模型中的一种;
walk-forward test相关推荐
- 序列每天从1开始_时间序列预测一
什么是时间序列: 时间序列可以看作是普通的二维的无序的特征矩阵向时间空间的拓展,相对来说多了仅仅一个维度但也是非常重要的时间维度: 时间序列是按时间顺序进行的一系列观察,通常包括了连续性时间序列数据和 ...
- Blend Tree Type
1D 只有一个参数,用于控制状态之间的切换 2D Simple Directional 2D Simple Directional :具有方向性的动画片段,同一方向上最好不要有多个动画片段 2D ...
- ARIMA模型实例讲解——网络流量预测可以使用啊
ARIMA模型实例讲解:时间序列预测需要多少历史数据? from:https://www.leiphone.com/news/201704/6zgOPEjmlvMpfvaB.html 雷锋网按:本 ...
- python中如果要多次输入文本,关于文本游戏:文本游戏 – 如果语句基于输入文本 – Python...
所以,我用python制作了一个基于文本的益智游戏,用于我的编程类(我们被迫使用python),所以我希望程序能够检测用户是否输入了"犹豫"或"行走"之类的内容 ...
- 定位系列论文阅读-RoNIN(二)-Robust Neural Inertial Navigation in the Wild: Benchmark, Evaluations
这里写目录标题 0.Abstract 0.1逐句翻译 0.2总结 1. Introduction 1.1逐句翻译 第一段(就是说惯性传感器十分重要有研究的必要) 第二段(惯性导航是非常理想的一个导航方 ...
- 理论加实践,终于把时间序列预测ARIMA模型讲明白了
上篇我们一起学习了一些关于时间序列预测的知识.而本文将通过一段时间内电力负荷波动的数据集来实战演示完整的ARIMA模型的建模及参数选择过程,其中包括数据准备.随机性.稳定性检验.本文旨在实践中学习,在 ...
- python 量化交易_Quantsrat让R语言像Python一样进行策略回测和量化交易
使用Quantsrat包 Quantsrat用来建立策略.添加指标.生成信号.生成买卖规则等进行回测.效果类似优矿.万矿.米筐那样的Python量化平台一样.因为不能CRAN在线安装,安装过程中还有一 ...
- jdk重启后步行_向后介绍步行以一种新颖的方式来预测未来
jdk重启后步行 "永远不要做出预测,尤其是关于未来的预测." (KK Steincke) ("Never Make Predictions, Especially Ab ...
- 用java写分段函数_使用Java将分段函数转换为CSV文件
这似乎有用 - 有点.无论如何,这可能是一个好的开始. public class CSVFun { // Where to start the scan of the function. static ...
最新文章
- 陈一舟:在中国当企业家要有承受能力 失败了大家会看你笑话
- 用python同时画多个分布图
- Druid数据库连接池使用
- ibatis动态查询条件
- MyBatis(一)MyBatis介绍和配置详解
- java http 返回码_【Java】Http返回状态码
- 高效研发运维体系构建的流程和方法论
- 支付系统灰度发布原理图
- IDEA报错 com.microsoft.sqlserver.jdbc.SQLServerException : 列名或所提供的数目与表定于不匹配
- 北京大学生物信息学(转录组)
- Extjs Grid 数据绑定 json 分页 不分页
- 工作流图形设计器参考资料
- 什么软件可以修改PDF,PDF如何添加页码
- Robo 3T安装及使用
- mybatis Parameter ‘XXX‘ not found
- transform.forward和vector3.forward的使用区别
- 语音识别引擎接口 将声音转换为文字显示
- 现货期货价格关系(现货期货价格关系分析)
- Java集成Sap/Erp产生的sapjco包重命名/rename问题及解决方案
- ‘svchost.exe-应用程序错误 0xc0000409’客户端无法登陆终端服务器之解决方法
热门文章
- Python正则简单实例分析
- python datetime timedelta函数_Python Pandas DatetimeIndex.to_perioddelta()用法及代码示例
- m5310采用芯片 中移物联_联想首发瑞芯微最新智能物联芯片产品
- 错误三次无法输入c语言,不懂就问,为啥错误输入三次不停止呢
- Intel Realsense D435 python multiprocessing 摄像头多进程流传输
- python 将PascalVOC(XML)格式的标注数据批量转换为YOLO(txt)格式的标注数据
- Python 绘图问题:Matplotlib中plt.rcParams[]使用方法 rcsetup.py matplotlibrc
- 答案计算机应用技术试卷,计算机应用与技术试卷A及答案
- 小麦盒子cdn_阿里云CDN入门使用配置
- ping php支付,thinkphp框架中引出ping++支付server SDK