Giter VIP home page Giter VIP logo

4_risk_returns_of_investment_portfolios_stocks's Introduction

week4_pandas_project

In this project, the portfolio returns of the bulge bracket Hedge funds, Private Equity firms, imaginary portfolios- Algo 1 and Algo 2, as well as the returns of a custom portfolio of 3 stocks are analyzed, in comparison with the benchmark S&P 500.

This project is a part of the UC Berkeley Fintech Bootcamp Week-4.

Technologies used

  • Python
  • Pandas package
  • Numpy package
  • Datetime library
  • Path library
  • Matplot library

Tools used

  • Git Bash
  • Jupyter Lab
  • Operating system: Windows 10, 64-bit
  • Microsoft CSV
  • Google sheets

Metrics calculated

  • Daily returns (percentage change)
  • Cumulative returns
  • 21-day rolling standard deviation
  • Annual standard deviation
  • Risk assessment via Box plot
  • Exponentially weighted moving average, with a 21-day half life
  • Rolling 21-day Beta between 1 imaginary portfolio and the S&P 500.
  • Correlation table
  • Sharpe ratios

Plots created

  • Daily returns
  • Cumulative returns
  • Box plot
  • Rolling 21-day standard deviation
  • Beta
  • Exponentially weighted 21-day moving average
  • Sharpe ratios
  • Rolling 21-day standard deviation between custom portfolio and other portfolios.
  • Sharpe ratios between custom portfolio and other portfolios

Custom stocks chosen

  • Advanced Micro Devices (AMD)
  • Netflix (NFLX)
  • Tesla (TSLA)

References

https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.ewm.html

https://www.investopedia.com/ask/answers/010815/what-good-sharpe-ratio.asp

https://www.investopedia.com/investing/beta-know-risk/

People who helped

  • Khaled Kharman- Personal tutor
  • Kiel Wheat- Bootcamp classmate
  • Joel Gonzales- Bootcamp Teaching Assistant

Contributors

Satheesh Narasimman

4_risk_returns_of_investment_portfolios_stocks's People

Contributors

satheeshnarasimman avatar

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.