Comparison of different portfolio allocation strategies and estimation of Value-at-Risk (VaR) and Conditional Value-at-Risk (CVaR) using Parametric, Historical Simulation and Monte Carlo Simulation methods.
pandas
numpy
scipy
datetime
matplotlib
seaborn
yfinance
pypfopt
- Importing libraries
- Loading the data and Pre-processing
- Descriptive analysis of simple and cumulative returns
- Daily Returns
- Daily Cummulative Returns
- Risk-Return profile
- Correlation and Covariance matrices
- Portfolio Optimization
- Analysis of optimized Portfolios' Performance
- Rolling Standard Deviation
- Rolling Beta
- Exponentially Weighted Average
- Rolling Sharpe Ratio
- Tail Risk Analysis
- Historical Drawdown
- VaR and CVaR
- Historical (Non-Parametric) Method
- Variance-Covariance (Parametric) Method
- Monte Carlo Simulation
Investiment universe consists of the 10 largest companies listed on the London Stock Exchange (LSE) acording to its market value: 1. Shell (SHEL.L), 2. AstraZeneca (AZN.L), 3. HSBC Holdings (HSBA.L), 4. Unilever Group (ULVR.L), 5. BP (BP.L), 6. Diageo (DGE.L), 7. Rio Tinto Group (RIO.L), 8. Glencore (GLEN.L), 9. British American Tobacoo (BATS.L) and 10. GlaxoSmithKline (GSK.L).
Close prices from January 31, 2012 to January 31, 2023 were pulled with Yahoo Finance API (yfinance library).
- Market Cap-Weighted (MCAP)
- Naïve Equally-Weighted (EW)
- Global Minimum Variance (GMV)
- Tangency - Maximum Sharpe Ratio (MSR)