Skip to content

Model the efficient frontier, and output an optimized portfolio based off user inputs for risk and return.

Notifications You must be signed in to change notification settings

gkar90/Portfolio_Optimization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Portfolio Optimization

Introduction

The goal of this project was to create multiple models/functions that could:

  • Get 5 random stocks from the S&P 500
  • Create an efficient portfolio based off daily returns
  • Return a portfolio with maximized returns based off user inputs

Project Sections

  • Get a constantly updated list of the stocks inside the S&P 500
  • Get 5 random stocks from the S&P 500
  • Run statistical analysis
  • Visual Representation of data and analysis
  • Model an efficient frontier
  • Output an efficient portfolio
  • Intake user input
  • Output optimal portfolio (with pricing) under user constraints

Results

Took 5 random stock from the S&P500 and ran analysis to see the simple return, the average daily return, and the correlation and variances between the stocks.

Then created a function where a user can input his portfolio value, his risk appetite (measured as volatility), and the list of 5 tickers he wants to invest in.

The function then calculates the portfolio that maximizes returns for his risk appetite.

The function then outputs the weights for each stock in the optimized portfolio, and the amount of shares needed to buy based off the closing price of the last trading day in our date range

Note on Timeframe

Important to note that we did this analysis on the market PRE-pandemic. The market post pandemic has a different volatility and different returns. To calculate this timeframe, we simply need to change the date in the function to pull data up to today's date

About

Model the efficient frontier, and output an optimized portfolio based off user inputs for risk and return.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published