GithubHelp home page GithubHelp logo

zealya / adversarial-rl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from my2582/adversarial-rl

0.0 0.0 0.0 815 KB

A Project of a Reinforcement Learning course. Simulated competing investment strategies through continuous refinement in a virtual stock market setting. The strategies adjusted weights to different stocks over time to maximize profits.

Python 100.00%

adversarial-rl's Introduction

Adversarial Reinforcement Learning for Portfolio Management

  • A final project for E6885 Reinforcement Learning, Fall 2018, Columbia University.

  • The full version of the final report here

Abstract

In this paper, we created a virtual stock exchange where multiple agents invest in stocks against each other. Three of the agents implemented their own strategies based on different Reinforcement Learning (RL) algorithms. No historical data was used to train these RL agents. RL agents are given cash only and do not have any stocks at an initialization phase. Trading environments were designed in a way they accommodate realistic factors such as liquidity costs (buy expensive, sell cheap due to little orders that can be matched), transaction costs, and a management fee. We achieved this by introducing a sophisticated framework that admits the complex nature of the trading environment in the real world.

We present an approach of which algorithms the RL agents are based on, how we set our environment, and how a virtual stock exchange was constructed. We used Deep Neural Network(DNN) to represent the Actor-Critic network, which takes an input of stock prices and portfolio weights and outputs a vector of portfolio weights. RL agents’ actions are concretely implemented by placing orders and they do not know how their states would be until the orders are matched. We introduced non-RL agents, one of which, namely a mean-reversion agent, is in favor of our market environment in its strategy, and the other of which, namely a random agent, is to model the irrational behaviors of the real stock market. We end this paper with experimental analysis and future work.

Experimental Results

Policy Gradient(PG) agents with transaction cost of 0bp

Everyone looks happy.

tc_0

PG agents with transaction cost of 5bp

Two RL agents found out how to make handsome profits in the end.

tc_5

PG agents with transaction cost of 100bp

Two RL agents have managed to reserve their money in this extreme trading environment.

tc_100

adversarial-rl's People

Contributors

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