码迷,mamicode.com
首页 > 系统相关 > 详细

[Machine Learning for Trading] {ud501} Lesson 21: 03-01 How Machine Learning is used at a hedge fund | Lesson 22: 03-02 Regression

时间:2019-06-05 09:42:34      阅读:137      评论:0      收藏:0      [点我收藏+]

标签:ble   sed   work   gre   orange   data-   int   less   navig   

a data-centric way to build predictive models

 

 

 

The ML problem

技术图片

 

 

Supervised regression learning 

技术图片

 

 

 

Robot navigation example 

 技术图片

技术图片

技术图片

技术图片

技术图片

技术图片

技术图片

 

 

 

 

 How it works with stock data

 技术图片

技术图片

 

 

 

 

 Example at a fintech company

 技术图片

 

 

 

Price forecasting demo 

 技术图片

QuantDesk

技术图片

factors we are using now <= choices of these factors are from another genetic algorithm 

 技术图片 技术图片

技术图片

技术图片

技术图片 <= roll back time, and we look over all this last three months and look forward one month, see how accurate all those predictions were

 

 

https://lucenaresearch.com/#register

https://quantdesk.lucenaresearch.com/#login

 

 

Backtesting 

 技术图片

 

 

 

 ML tool in use

 技术图片

技术图片

技术图片

技术图片

技术图片

技术图片

技术图片

技术图片

orange line => historical value of our portfolio

blue => benchmark (S&P500 here)

 

 

 

 

 

 Problems with regression

技术图片

 

 

Problem we will focus on 

技术图片

 

 

 





 

 

 

 

Parametric regression 

技术图片

技术图片

 

 

 

 K nearest neighbor

 技术图片

 

 

 

 

 

 How to predict

 技术图片

 

 

 

 

 Kernel regression

技术图片

Kernel regression is different from KNN, because it uses kernel to weight the contribution of each nearest point

 

 

 

 

 Parametric vs non parametric

 技术图片

Yes, the cannon ball distance can be best estimated using a parametric model, as it follows a well-defined trajectory.

On the other hand, the behavior of honey bees can be hard to model mathematically. Therefore, a non-parametric approach would be more suitable.

 

 

 

 Training and testing

 技术图片

typically: train on older data; test on newer data

look ahead bias occurs if training reversely

 

 

 

Learning APIs 

 技术图片

 

 

 

 Example for linear regression

 技术图片

 Note: This is intended to be pseudo-code only, although some Python-specific syntax has been shown.

 

[Machine Learning for Trading] {ud501} Lesson 21: 03-01 How Machine Learning is used at a hedge fund | Lesson 22: 03-02 Regression

标签:ble   sed   work   gre   orange   data-   int   less   navig   

原文地址:https://www.cnblogs.com/ecoflex/p/10977432.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!