Difference between revisions of "Learning Algorithms for Trading"

From Quantitative Analysis Software Courses
Jump to navigation Jump to search
Line 13: Line 13:
 
**Example data, will learn on over a particular year (2012)
 
**Example data, will learn on over a particular year (2012)
 
**Will test on over the next year (2013)
 
**Will test on over the next year (2013)
**It will be "easy" data in that it is all sine waves
+
**It will be "easy" data that has obvious patterns
 
**Will create trades.txt and run them through your backtester
 
**Will create trades.txt and run them through your backtester
 
*Overview: LinReg, KNN, Decision Trees, Q-Learning
 
*Overview: LinReg, KNN, Decision Trees, Q-Learning

Revision as of 13:22, 14 July 2015

Lesson 1: How Machine Learning is used at a hedge fund

  • Overview of use and backtesting
    • Out of sample
    • Roll forward cross validation
  • Supervised ML
    • Use: Regression
    • Use: Classification
    • Model type: Parametric
    • Model type: Instance-based
  • Reinforcement Learning
    • Use: Find a policy
  • Introduce the problem we will focus on in the rest of the class, namely:
    • Example data, will learn on over a particular year (2012)
    • Will test on over the next year (2013)
    • It will be "easy" data that has obvious patterns
    • Will create trades.txt and run them through your backtester
  • Overview: LinReg, KNN, Decision Trees, Q-Learning

Lesson 2: Q-Learning and Dyna

  • Long/short

Lesson 3: Time series prediction as an ML problem

[note: need to create fake stock data that has embedded patterns]

Lesson 4: Learner APIs

Lesson 5: Linear regression

Lesson 6: KNN

Lesson 7: Assessing a learning algorithm

  • Now that we have two, (linreg & KNN), let's compare them
  • RMS error
  • Scatterplot predict vs actual
  • Corrcoef

Lesson 8: Overfitting

Lesson 9: Decision trees

Lesson 10: Ensemble learners & bagging

Lesson 11: Random trees & forests