Portfolio Risk and Diversification Dashboard
Which holdings contribute to portfolio risk, and does a risk-minimising allocation deliver lower risk out of sample?
Background
A portfolio that splits its money evenly across stocks from different sectors looks balanced on paper. Risk does not follow capital, though. A stock that moves with the others adds more to portfolio volatility than its weight suggests, which is why chief risk officers set risk budgets and concentration limits on risk contributions.
Minimum-variance portfolios try to cut risk directly by choosing weights from the covariance matrix. Those weights are estimated from noisy historical data. A portfolio that looks safest in hindsight may not stay that way when it is rebuilt using only the information available at the time.
Why build it
Portfolio risk analysis makes a strong entry among quant projects for a resume: the maths is short and the questions are the ones an investment committee actually asks. This project looks for the holding that owns the risk in an equal-weight sleeve of five large US stocks. It then tests whether a risk-minimising allocation delivers lower realised risk out of sample, using daily prices for 20 US stocks from 1989 to 2018.
You practise covariance and correlation estimation, Euler risk decomposition and honest out-of-sample testing. The same skills come up in market risk analyst, risk quant and portfolio analyst interviews.
Headline result
A risk-contribution dashboard. An equal-weight sleeve runs at 13.2% volatility, but JPM carries 24.2% of the risk on 20% of the capital. A capped minimum-variance rebuild cut realised volatility from 21.0% to 17.9%.
Figures

Equal money is not equal risk: JPM, the most correlated stock, carries 24.2% of portfolio risk and WMT 16.1%, each on 20% of capital. 
Rebuilt monthly from past data only, capped minimum variance realised 17.9% volatility against 21.0% for equal weight; Ledoit–Wolf shrinkage changed nothing.
Data used
- Adjusted daily closes for 20 US stocks, 1989–2018 (survivorship caveat noted)
Topics covered
- Portfolio risk project
- Risk contribution and risk budgeting
- Diversification and correlation
- Minimum variance portfolios
- Covariance shrinkage (Ledoit–Wolf)
- Out-of-sample risk testing
- Historical US stock returns
Members open the full write-up, notebook, tested code and data in the project reader.