Skip to content

Modern Portfolio Theory Analysis of investment portfolios

Notifications You must be signed in to change notification settings

CodyStumpo/Portfolio-Graphs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Portfolio-Graphs

Modern Portfolio Theory Analysis of investment portfolios

Input

  • start and end date for analysis
  • your portfolio (tickers and shares) that yahoo finance has daily historical prices for each day in the analysis window
  • market sharpe ratio & libor if you want to change those.
  • benchmark portfolio (tickers and weights)
    • Ideally use a benchmark that represents the entire world of investable assets (this produces most sensible expected returns)

You need to be connected to the interenet to access yahoo.

What it does

It'll get all the price histories and compute the daily price gains/losses and use those to estimate risk, correlations, and even beta against the benchmark and therefore expected return.

The model is very simple, taking past histories of each ticker as the covariance matrix of expected future co-risk.

Output

It produces some tables and useful graphs you can use to manage your portfolio, like:

Backtest your portfolio (green) vs. benchmark (blue)

Backtest vs. benchmark

Risk Vectors of each holding

Risk Vectors

Correlation clusters

Correlation Clusters

Mispricing

Mispricing

About

Modern Portfolio Theory Analysis of investment portfolios

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages