Skip to content

Determine which Whale portfolio is performing the best across multiple areas: volatility, returns, risk and Sharpe ratios.

Notifications You must be signed in to change notification settings

mmsaki/whale_portfolio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Whale Portfolio Analysis

Table of Contents

  1. Background
  2. My Analysis
  3. Results
  • Using a portfolio data to determine which portfolio is performing the best across multiple areas:
    • volatility
    • returns
    • risk
    • Sharpe ratios
  • This python code compares my custom portfolio to the whales and two alogorithmic trading strategies
  • This code compares if my custom portfolio:
    • Outperforms
    • Underperforms
    • Or Equally perfroms
  • Analyze whale Returns of Soros, Paulson,Tiger and Berkshire

    • Read the Whale Portfolio daily returns and clean the data Whale Data Analysis
  • Analyze Algorithm 1 and Algorithm 2 Daily Returns

    • Read the algorithmic daily returns and clean the data Algorithm Data Analysis
  • S&P 500 Returns

    • Read the S&P 500 historic closing prices and create a new daily returns DataFrame from the data. S & P 500 Data Analysis
  • Combine Returns Combined Returns

  • Performance Analysis

    • Calculate and Plot the daily returns.
    • Calculate and Plot cumulative returns. Daily Returns
  • Risk analysis:

    • Create a box plot for each portfolio.
    • Calculate the standard deviation for all portfolios
    • Determine which portfolios are riskier than the S&P 500
    • Calculate the Annualized Standard Deviation Risk Analysis
  • Rolling Statistics.

    • Calculate and plot the rolling standard deviation for all portfolios using a 21-day window
    • Calculate the correlation between each stock to determine which portfolios may mimick the S&P 500 Rolling Stats
    • Choose one portfolio, then calculate and plot the 60-day rolling beta between it and the S&P 500
    • Calculate and Plot Beta for a chosen portfolio and the S&P 500
      • Try calculating the ewm with a 21-day half life for each portfolio, using standard deviation (std) as the metric of interest. Beta Plot 60 day Window
  • Sharpe ratio analysis

    • Calculate the Sharpe ratios and generate a bar plot Sharpe Ratios
  • Determine whether the algorithmic strategies outperform both the market (S&P 500) and the whales portfolios. Algorism Performace

  • Create Custom Portfolio

    • Choose 3-5 custom stocks with at last 1 year's worth of historic prices and create a DataFrame of the closing prices and dates for each stock. Custom Stocks
    • Calculate the weighted returns for the portfolio assuming an equal number of shares for each stock
      • Join your portfolio returns to the DataFrame that contains all of the portfolio returns Joined Portfolios
    • Calculate the Annualized Standard Deviation.
    • Calculate and plot rolling std with a 21-day window.
    • Calculate and plot the correlation.
    • Calculate and plot beta for your portfolio compared to the S&P 60 TSX. Joined Correlations
  • Calculate the Sharpe ratios and generate a bar plot.

    • How does my portfolio do? My Portfolio Results

About

Determine which Whale portfolio is performing the best across multiple areas: volatility, returns, risk and Sharpe ratios.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published