GithubHelp home page GithubHelp logo

jtmichelson / ml_portfolio_risk_manager Goto Github PK

View Code? Open in Web Editor NEW
3.0 0.0 1.0 1.93 MB

FTRL Approach to Financial Portfolio Risk Management

License: GNU General Public License v3.0

Python 100.00%
online-machine-learning follow-the-regularized-leader epsilon-greedy

ml_portfolio_risk_manager's Introduction

Financial Portfolio Risk Manager

Abstract

  • We look at the application of Online Convex Optimization (OCO) techniques to portfolio risk management. Three main approaches will be compared: Follow-The-Leader (FTL), Follow-The-Regularized-Leader (FTRL), and Epsilon-Greedy. The focus will be on the behavior of the FTRL implementation using Online Proximal Gradient Descent (OPGD) and Regularized Dual Averaging (RDA) regularization functions. Our sample sets consist of multiple small subsets of securities of varying nature. We run our algorithm incrementally over historical data deciding the optimal investment candidate at each end-of-day. The algorithm has no knowledge of the future day’s result during its prediction phase and therefore can be directly applied to real-time data. The cumulative percentage gain over time of each run is baselined against the average of each set. Each model is then evaluated to decide if it produces a statistically significant greater reward than random choice.

Getting Started

  • Get your own personal API Key from www.alphavantage.co
  • Go to src/config/API_KEY.json and put in your API Key.
  • Run main_report.py to generate csv reports
  • Add new stocks to main_report.py and it will call the API and save the historical data locally in src/data/JSON

Testing

  • TBD

License

  • See ~/LICENSE

ml_portfolio_risk_manager's People

Stargazers

 avatar  avatar  avatar

Forkers

karagul

ml_portfolio_risk_manager's Issues

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.