GithubHelp home page GithubHelp logo

seamiacsr / machine-learning-for-finance Goto Github PK

View Code? Open in Web Editor NEW

This project forked from anthonyng2/machine-learning-for-finance

0.0 1.0 0.0 17.28 MB

Machine Learning for finance and investment introduction

License: MIT License

Python 0.58% Jupyter Notebook 99.42%

machine-learning-for-finance's Introduction

Machine Learning For Finance

1. Regression Based Machine Learning for Algorithmic Trading

Machine Learning for Finance, Algorithmic Trading and Investing Slides

These set of slides explained the current asset management environment and the advanced of technology on asset management. Categories of Machine and Deep Learning are explained. A brief introduction on linear regression and associated assumptions are covered. Stylized statistical properties of financial time series and asset returns are presented highlighting the challenges.

To ease learners to understand machine learning, linear regression has been used as the conduit. Firstly, the shortcoming of linear regression is highlighted. We then follow by the steps of model building and covering concepts such as hyperparameters, cross-validation, model validation, bias-variance tradeoff. The 6 stages of professional quant strategy is also covered to provide some perspective on where machine learning fits in.

1.1 Pairs Trading & Machine Learning

Linear Regression

A Walk Through on How to Design Your Own Pairs Trading Using Linear Model

Notebook - Introduction to Linear Regression and Machine Learning Model Building Process

Moving to Backtesting

Statsmodel - Linear Regression

Quantopian IDE codes for Pairs Trading using Linear Regression Model - statsmodel Pre 2008 and Quantopian IDE codes for Pairs Trading using Linear Regression Model - statsmodel Post 2008

This backtest utilise Python statsmodel to build the linear regression model. We then move on to illustrate how one can use the Python scikit-learn model to do likewise.

scikit-learn - Linear Regression

Quantopian IDE codes for Pairs Trading using Linear Regression Model - scikit-learn

scikit-learn - Lasso Regression

Lasso Regression

scikit-learn - Ridge Regression

Ridge Regression

scikit-learn - Bayesian Ridge Regression

Bayesian Ridge Regression

scikit-learn - ElasticNet Regression

ElasticNet Regression

1.2 Pairs Trading and Kalman Filter

Pairs Trading Design with Kalman Filter

1.3 Trend Following & Machine Learning

Trend Following Strategies with Machine Learning

1.4 References:

UCL - Characterization of Financial Time Series

Empirical Properties of Asset Returns: Stylized Facts and Statistical Issues. Rama Cont

2. Classification Based Machine Learning for Algorithmic Trading

This portion is under active development at the moment. I have uploaded some of my codes and backtesting results. A common use of classification ML is to predict the next day's result. You can find some examples here. Some of the ML classification methods were capable of achieving prediction accuracy of pver 60%. Does that translate directly to returns and out-performance over simple buy-and-hold strategy? Check out the backtesting tearsheets for the answer.

Classification Based Machine Learning Algorithm

machine-learning-for-finance's People

Contributors

anthonyng2 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.