20 years of AAPL, MSFT, GOOGL & AMZN data — CAPM, Sharpe/Sortino ratios, Markowitz optimisation, and technical analysis, in a notebook and a live Streamlit dashboard
View on GitHub ↗A quantitative finance project analysing 20 years of stock data (January 2004 – December 2024) for four major technology companies, deliberately spanning the 2008 Global Financial Crisis, the 2020 COVID crash and recovery, and the 2022 rate-hike-driven tech sell-off.
The analysis covers nine statistical performance metrics per stock, CAPM beta/alpha regression against the S&P 500, Sharpe and Sortino ratio risk-adjusted performance, Markowitz mean-variance portfolio optimisation via PyPortfolioOpt, and a technical-analysis layer (SMA, Bollinger Bands, RSI, MACD) — delivered through both a research-grade Jupyter notebook and an interactive Streamlit dashboard.
CAPM beta/alpha via linear regression, Sharpe & Sortino ratio analysis, Markowitz mean-variance optimisation (PyPortfolioOpt / cvxpy)
Return distribution profiling — skewness, kurtosis, leptokurtic tail-risk detection
SMA crossovers, Bollinger Bands, RSI and MACD momentum indicators
Streamlit app with 5 analysis tabs, deployable to Streamlit Cloud with no server config
Pulled live from the GitHub repository — always in sync with the source.
Full methodology, limitations, and references are on GitHub.