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
- Apple (AAPL)
- Amazon (AMZN)
- Google (GOOG)
- Microsoft (MSFT)
- Python
- Pandas
- NumPy
- Matplotlib
- Seaborn
- yFinance
Computed using percentage price changes.
Annualized standard deviation of returns used as a measure of portfolio risk.
Used to analyze relationships between stock returns and diversification effects.
Measures risk-adjusted return of the portfolio.
Generated 5000 random portfolios to analyze the return-risk tradeoff.
- 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.
| Metric | Value |
|---|---|
| Expected Portfolio Return | 25.6% |
| Portfolio Volatility | 27.3% |
| Portfolio Sharpe Ratio | 0.94 |
- Minimum variance optimization
- Maximum Sharpe portfolio selection
- CAPM beta analysis
- Value at Risk (VaR)
- Black-Scholes option pricing
Install dependencies:
pip install -r requirements.txt
