Coder Social home page Coder Social logo

portfoliooptexplore's Introduction

Background & Objectives

Background

Modern Portfolio Theory (MPT, Markowitz 1950) is a famous investment theory where the idea of portfolio construction relies on optimizing the trade-off between expected return and risk. By diversifying the assets within the portfolio, we can essentially reduce the risk of our portfolio (depending on accross asset's covariance & correlation). While the idea of MPT is very appealing, it needs both expected return & expected risk to be estimated accurately, which is a non-trivial task (traditionally, most just use assets historical return & risk).

Objectives

On this exercise, we'll focus on exploring how ML/DL can help measuring expected return more accurately & increase weights allocation efficiency.

We'll implement this on Top 5 coins in cryptocurrency market (BTC, ETH, XRP, BNB, ADA) where naturally the market is more volatile, hence measuring accurate expected return is relatively more important than other market(s).

Bullet points objectives;

  • To leverage ML/DL to estimate expected return (keep expected risk estimation with historical method)
  • To allocate weights optimally that maximizes sharpe ratio
  • To do performance comparison between Ml based vs Historical based portfolio

Findings

Alt text

Key Insights:

  • Historical based portfolio has central tendancy near 0 & slightly left-skewed. While the ML based portfolio has right-skewed ditribution. This indicates that the weekly return of Ml based has more positive & higher return.
  • Portfolio value of both Ml based & Historical based started at similar level. However, somewhere around 2022-06, Ml based starts to outperform Historical based. Seeing at the details of the weight allocation, Ml based has more optimal allocation since some of the coins has started on bullish trend (invest more on positive expected return)

Conclusion

  • We did found that ML-based portfolio has far outperformed the historical-based portfolio (along with other strategies such as equal-weighted & individual coins only)
  • Main reason why it outperformed the baseline is because the ML-based can estimate expected return of each coins quite accurately. It is very useful on the period where there is low covariance or correlation between assets (period where some coins performed better than others)

portfoliooptexplore's People

Watchers

 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.