Part 2 of 7
π― Learning Objective
By the end of this section, you will understand portfolio risk fundamentals, Value at Risk (VaR), Expected Shortfall (CVaR), and how Monte Carlo methods are used in financial risk assessment.
In finance, risk is the uncertainty of future returns. A risky investment is one whose outcome is unpredictable. Risk management is the science of quantifying and controlling this uncertainty.
Variance measures how spread out the returns of a single asset are:
Where: $r_i$ = individual return, $\bar{r}$ = mean return, $N$ = number of observations.
Interpretation: Higher variance = higher uncertainty = higher risk.
Covariance measures how two assets move together:
π¬ Famous Quote
"Diversification is the only free lunch in investing." β Harry Markowitz
The portfolio variance of two assets:
When $\sigma_{12} < 0$ (assets move oppositely), the portfolio risk is less than the sum of individual risks.
Given:
| Asset | Weight | Annual Return | Volatility |
|---|---|---|---|
| Stock A (Tech) | 60% | 15% | 25% |
| Bond B (Govt) | 40% | 5% | 8% |
| Correlation | -0.3 | ||
Question: What is the portfolio volatility?
Solution:
First, compute $\sigma_{12} = \rho \times \sigma_1 \times \sigma_2 = -0.3 \times 0.25 \times 0.08 = -0.006$
Portfolio variance:
Portfolio Volatility = $\sqrt{0.020644}$ β 14.37%
Stock A alone has 25% volatility, but the portfolio has only 14.37% β the negative correlation with bonds reduced overall risk by nearly half! This is the power of diversification.
π Definition
Value at Risk answers one simple question:
"What is the maximum expected loss over a given time horizon, with a specified confidence level?"
Formal definition:
In plain language: VaR is a quantile of the loss distribution.
| Confidence Level | Time Horizon | Interpretation |
|---|---|---|
| 95% VaR | 1 day | "We are 95% confident that we will not lose more than βΉX in one day." |
| 99% VaR | 10 days | "We are 99% confident that our 10-day loss will not exceed βΉY." |
| Method | Description | Pros | Cons |
|---|---|---|---|
| Historical | Use actual past returns | Simple, no model assumptions | Past β future |
| Parametric | Assume normal distribution | Fast calculation | Returns aren't truly normal |
| Monte Carlo | Simulate thousands of scenarios | Handles any distribution, non-linear payoffs | Computationally expensive |
β οΈ Key Point for This Workshop
Monte Carlo VaR is the most flexible and powerful method, but also the most computationally demanding. This is exactly where quantum computing can help.
Scenario: Your portfolio is worth βΉ10,00,000 (βΉ10 Lakh). The 1-day 95% VaR is βΉ50,000.
Questions:
Answers:
VaR tells you the threshold, but nothing about what happens beyond it. If the 99% VaR is βΉ10 million, VaR says nothing about whether the actual loss in that 1% worst case might be βΉ11 million or βΉ100 million.
π Definition
Expected Shortfall (ES) or Conditional Value-at-Risk (CVaR) answers:
"Given that we have exceeded the VaR threshold, what is the expected (average) loss?"
| Property | VaR | CVaR |
|---|---|---|
| Tells you the threshold? | β | β |
| Tells you the tail risk? | β | β |
| Coherent risk measure? | β | β |
| Preferred by regulators (Basel III)? | β (still used) | β (increasingly preferred) |
Scenario: Two portfolios have the same 95% VaR of βΉ5,00,000. But their tail risks are very different:
| Portfolio | 95% VaR | 95% CVaR | Worst Observed Loss |
|---|---|---|---|
| Portfolio A (Diversified) | βΉ5,00,000 | βΉ6,50,000 | βΉ8,00,000 |
| Portfolio B (Concentrated) | βΉ5,00,000 | βΉ15,00,000 | βΉ40,00,000 |
Key insight: VaR says both portfolios are equally risky. CVaR reveals that Portfolio B is far more dangerous β when things go wrong, they go very wrong.
This is why Basel III regulations are increasingly moving toward CVaR (Expected Shortfall) as the primary risk measure.
Monte Carlo simulation works by:
| Application | What is Simulated | Output |
|---|---|---|
| Stock Path Simulation | Future stock prices under GBM | Projected price trajectories |
| Derivatives Pricing | Payoff of complex options across paths | Fair value of the derivative |
| Stress Testing | Extreme market conditions | Loss under worst-case scenarios |
| Risk Forecasting | Portfolio P&L distribution | VaR, CVaR, risk capital |
The fundamental limitation of classical Monte Carlo:
Question: Given the $O(1/\sqrt{N})$ convergence, fill in the blanks:
| Simulations (N) | Relative Error | Time (if 10,000 sims = 1 sec) |
|---|---|---|
| 10,000 | 1% | 1 second |
| 1,000,000 | ? | ? |
| 100,000,000 | ? | ? |
| 10,000,000,000 | ? | ? |
Solution:
Error scales as $1/\sqrt{N}$. If $N = 10{,}000$ gives 1% error:
| Simulations (N) | Relative Error | Time | Explanation |
|---|---|---|---|
| 10,000 | 1% | 1 second | Baseline |
| 1,000,000 | 0.1% | 100 seconds | 100Γ more sims β 10Γ less error |
| 100,000,000 | 0.01% | ~2.8 hours | 10,000Γ more sims β 100Γ less error |
| 10,000,000,000 | 0.001% | ~11.6 days | 1,000,000Γ more sims β 1,000Γ less error |
β οΈ The Convergence Wall
To get 10Γ more accuracy, you need 100Γ more simulations. This is the fundamental bottleneck that quantum computing aims to break β quantum amplitude estimation converges at $O(1/N)$ instead, needing only the square root of the simulations.
Now that we understand:
π What's Next
In Part 3, we will build a complete Monte Carlo risk simulator in Python β hands-on, from scratch. Then we will return to that convergence problem and show how quantum computing offers a fundamentally better scaling.