Giter Site home page Giter Site logo

deeptradingfx / svm-for-trading Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bonniesjli/svm-for-trading

0.0 1.0 0.0 11 KB

Predictability of Support Vector Machines to forecast stock prices: comparing different Kernel functions in stock prediction

Jupyter Notebook 100.00%

svm-for-trading's Introduction

SVM for Trading

Comparing different SVM Kernels, specifically the linear kernel, polynomial kernel, and the Radial Basis Function Kernel, in their effectiveness when applied to quantitative finance and algorithmic trading.

Model 1 - Based on Technical Indicators

Featuresets: various technical indicators for a company Labels: - Buy/Sell - Buy - if price is predicted to rise - Sell - of price is predicted to drop

Results (Accuracy)

  • Linear kernel: 53.3%
  • Polynomial Kernel: 57.3%
  • Radial Basis Function Kernel: 51.3%

Interesting aspects for improvement:

  • Effects of feature standardization on SVMs
  • Predictability of certain technical indicators, can be studied using Hypothesis Testing

Model 2 - Based on Price Correlation

This model is based on the idea that the price trend of certain groups of companies are likely to move together. Each model is generated on a per company basis, while taking into account of all other companies.

Featuresets: Pricing change of all S&P 500 companies on a certain day Labels: Buy/Sell/Hold

  • Buy - if price rise more than 2% for the next 7 days
  • Sell - if price drop more than 2% for the next 7 days
  • Else - Hold

Results:

54% mean accuracy for all S&P 500 companies in predicting buy/hold/sell (random arcuracy: 33%)

svm-for-trading's People

Contributors

bonniesjli 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.