Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Quant Portfolio Risk & Return Analysis

Overview

This project analyzes the risk and return characteristics of a portfolio of major technology stocks using quantitative finance techniques.

The analysis includes:

  • Historical stock return analysis
  • Volatility measurement
  • Sharpe ratio evaluation
  • Correlation analysis
  • Portfolio risk-return simulation
  • Efficient frontier visualization

Stocks Analyzed

  • Apple (AAPL)
  • Amazon (AMZN)
  • Google (GOOG)
  • Microsoft (MSFT)

Technologies Used

  • Python
  • Pandas
  • NumPy
  • Matplotlib
  • Seaborn
  • yFinance

Key Quantitative Concepts

Daily Returns

Computed using percentage price changes.

Volatility

Annualized standard deviation of returns used as a measure of portfolio risk.

Correlation Matrix

Used to analyze relationships between stock returns and diversification effects.

Sharpe Ratio

Measures risk-adjusted return of the portfolio.

Monte Carlo Portfolio Simulation

Generated 5000 random portfolios to analyze the return-risk tradeoff.


Key Findings

  • GOOG achieved the highest cumulative growth and strongest Sharpe ratio.
  • AMZN showed the highest volatility among the selected stocks.
  • AAPL and MSFT demonstrated the strongest correlation.
  • Diversification benefits were limited due to positive correlations among technology stocks.

Visualizations

Correlation Heatmap

Correlation Heatmap


Efficient Frontier Simulation

Efficient Frontier


Portfolio Metrics

Metric Value
Expected Portfolio Return 25.6%
Portfolio Volatility 27.3%
Portfolio Sharpe Ratio 0.94

Future Improvements

  • Minimum variance optimization
  • Maximum Sharpe portfolio selection
  • CAPM beta analysis
  • Value at Risk (VaR)
  • Black-Scholes option pricing

How to Run

Install dependencies:

pip install -r requirements.txt

About

Quantitative portfolio risk and return analysis using Python, Monte Carlo simulation, Sharpe ratio, and efficient frontier visualization.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages