仓库源文站点原文


layout: post title: "ML4T笔记 | 03-01 How Machine Learning is used at a hedge fund" date: "2019-01-21 01:21:21" categories: 计算机科学 auth: conge

tags: ML4T Machine_Learning Trading OMSCS

01 - Overview

Time: 00:00:29

02 - The ML problem

image.png

The problem the machine learning solves.

  1. building a model.

Models that don't use machine learning at all.

With machine learning, we're trying to use data.

Time: 00:01:48

03 - quiz Whats X and Y

Now consider you were building a model and we were going to use it in trading in some way.

04 - Supervised regression learning

supervised regression learning.

supervised regression learning techniques:

Time: 00:03:09

05 - Robot navigation example

Very cool video. Essentially, the robot uses KNN to learn how to navigate.

the input is, in which directions are their obstacles. And also, the robot has the direction towards the goal.

X are these perceptions. Y is, which direction to steer.

Time: 00:03:02

06 - How KNN works with stock data

Time: 00:02:19

07 - Example at a fintech company

The process to build a machine-learning based forecaster at a FinTech company.

  1. select which factors do you want to use (Xs). multi-dimensional, Bollinger Bands, PE ratio and so on.
  2. select what is it you want to predict (Y): change in price, the market relative change in price, or future price.
  3. consider the breadth and depth of the data that we're going to use to train the system with.

  4. train our model. kNN, a linear regression, decision tree.

  5. use that model to do some prediction.

Time: 00:01:47

08 - Price forecasting demo

Time: 00:04:01

09 - Backtesting

how accurate are these forecasts? back testing: roll back time, and you test your system.

So here's our historical data as usual it's organized with time coming down.

And that's called backtesting.

Time: 00:01:56

10 - ML tool in use

that's the forecast backtest.

Time: 00:01:44

11 - Problems with regression

challenges using regression based forecasting.

  1. our forecasts always seem to be noisy and uncertain.
  2. hard to know how confident you should be in a forecast.
  3. it's not clear how long you should hold a position that might have arisen from a forecast, and how you should allocate to that position.

Some of these issues can be addressed using reinforcement learning. Where instead of making a forecast of a future price, we had the system learn a policy and the policy tells the system whether to buy or sell a stock.

Time: 00:02:05

12 - Problem we will focus on

  1. look at a certain period of data, train our models over that period, and then make forecasts and trade over some other period.
  2. our historical data: the period of 2009 as our data to train our model. and test the model with 2010 and 2011 data.
  3. using this forecast you'll generate an orders.txt file which you can push through your market simulator to test how that strategy performs, measure it's sharp ratio and its total return and so on.
  4. compare different machine learning algorithms that generate these orders.

Time: 00:01:18

Total Time: 00:24:18

2019-01-21 初稿