Chapter 7

Risk Management

Value at Risk (VaR), stress testing, and credit risk.

Risk Management in Finance

Risk management is the discipline of identifying, measuring, and mitigating financial risks. Following major financial crises, sophisticated risk management has become essential for financial institutions and is mandated by regulations such as Basel III. Understanding these concepts is crucial for anyone building financial systems.

Types of Financial Risk

Market Risk

The risk of losses due to changes in market prices:

  • Equity risk: Stock price movements
  • Interest rate risk: Changes in yield curves
  • Currency risk: Foreign exchange fluctuations
  • Commodity risk: Changes in commodity prices

Credit Risk

The risk that a counterparty fails to meet its obligations:

  • Default risk: Borrower fails to pay
  • Downgrade risk: Credit rating deterioration
  • Spread risk: Credit spreads widen

Operational Risk

Risk from failed processes, systems, or human error:

  • Technology failures
  • Fraud
  • Legal and compliance failures

Liquidity Risk

  • Funding liquidity risk: Inability to meet cash obligations
  • Market liquidity risk: Inability to execute trades at reasonable prices

Value at Risk (VaR)

Definition

Value at Risk is the maximum expected loss over a given time horizon at a specified confidence level.

Mathematically, VaR at confidence level α\alpha is the α\alpha-quantile of the loss distribution: P(L>VaRα)=1αP(L > VaR_\alpha) = 1 - \alpha

For example, a 1-day 95% VaR of 1millionmeans:"Thereisa51 million means: "There is a 5% chance of losing more than 1 million tomorrow."

Calculation Methods

Parametric (Variance-Covariance) VaR:

Assumes returns are normally distributed: VaRα=μ+zασVaR_\alpha = -\mu + z_\alpha \sigma

where zαz_\alpha is the standard normal quantile.

For a portfolio: VaRα=zαwTΣwVaR_\alpha = z_\alpha \sqrt{\mathbf{w}^T \boldsymbol{\Sigma} \mathbf{w}}

Historical Simulation:

Use actual historical returns to construct the loss distribution:

  1. Calculate portfolio returns for each historical date
  2. Sort returns from worst to best
  3. VaR is the return at the (1α)(1-\alpha) percentile

Advantages: No distributional assumptions; captures fat tails.

Monte Carlo Simulation:

  1. Specify a model for asset dynamics
  2. Simulate many scenarios
  3. Calculate portfolio P&L for each scenario
  4. VaR is the appropriate percentile of simulated losses

Most flexible approach; can handle complex, non-linear portfolios.

VaR Limitations

  • VaR says nothing about losses beyond the VaR level
  • Not subadditive: VaR of combined portfolios can exceed sum of individual VaRs
  • Assumes normal market conditions
  • Backward-looking; may miss structural changes

Expected Shortfall (CVaR)

Expected Shortfall (also called Conditional VaR or CVaR) addresses VaR's limitations: ESα=E[LL>VaRα]ES_\alpha = E[L | L > VaR_\alpha]

ES is the expected loss given that we're in the worst (1α)(1-\alpha) of cases.

Advantages:

  • Coherent risk measure: Satisfies subadditivity
  • Accounts for tail risk severity
  • Preferred by regulators (Basel III)

For normal distribution: ESα=μ+σϕ(zα)1αES_\alpha = \mu + \sigma \frac{\phi(z_\alpha)}{1 - \alpha}

where ϕ\phi is the standard normal PDF.

Stress Testing and Scenario Analysis

Purpose

Stress tests evaluate portfolio performance under extreme but plausible scenarios that may not be captured by VaR:

  • Historical scenarios (2008 financial crisis, COVID-19 crash)
  • Hypothetical scenarios (interest rate spike, currency devaluation)
  • Reverse stress testing (what scenario causes failure?)

Implementation

  1. Define scenarios (parameter shocks or historical replays)
  2. Revalue all positions under each scenario
  3. Aggregate P&L impacts
  4. Identify concentrated risks and vulnerabilities

Regulators (Federal Reserve, ECB) require banks to pass standardized stress tests.

Credit Risk Modeling

Probability of Default (PD)

Estimated using:

  • Credit ratings: Historical default rates by rating
  • Structural models (Merton): Default when asset value falls below debt
  • Reduced-form models: Default as a Poisson process
  • Machine learning: Classification models on financial ratios

Loss Given Default (LGD)

The fraction of exposure lost if default occurs. Depends on:

  • Collateral quality
  • Seniority of debt
  • Economic conditions

Exposure at Default (EAD)

The amount owed at the time of default. For derivatives, includes potential future exposure (PFE).

Expected Loss

EL=PD×LGD×EADEL = PD \times LGD \times EAD

This is the reserve for anticipated losses.

Credit VaR

Captures unexpected losses using models like:

  • CreditMetrics: Transition matrix approach
  • CreditRisk+: Actuarial model
  • KMV/Moody's: Structural approach

Greeks-Based Risk Management

For portfolios with options, risk is managed through the Greeks:

Delta hedging: Neutralize first-order sensitivity to underlying price.

Gamma management: Control convexity risk; high gamma means delta changes rapidly.

Vega hedging: Manage exposure to volatility changes.

Position limits: Cap exposures to specific Greeks.

Risk Aggregation and Capital

Correlation and Diversification

Total portfolio risk is not the sum of individual risks due to diversification: VaRportfolioiVaRiVaR_{portfolio} \leq \sum_{i} VaR_i

Correlation assumptions are critical and can break down in crises (correlations tend to increase).

Economic Capital

The capital required to absorb unexpected losses at a target confidence level (typically 99.9%): EC=VaR99.9%ELEC = VaR_{99.9\%} - EL

Regulatory Capital

Basel III mandates minimum capital ratios:

  • Common Equity Tier 1 (CET1) ratio
  • Total capital ratio
  • Leverage ratio

Risk-weighted assets (RWA) determine required capital.

Programming Implementation

Risk systems require:

  • Efficient matrix operations for covariance calculations
  • Fast Monte Carlo engines (GPU acceleration)
  • Historical data storage and retrieval
  • Real-time position aggregation
  • Scenario generation and evaluation frameworks
  • Reporting and visualization dashboards

ELI10 Explanation

Simple analogy for better understanding

Risk management is like wearing a seatbelt when you drive. You hope nothing bad happens, but if it does, you want to be protected. In finance, risk management asks "What's the worst that could happen to our money?" and "How can we prepare for it?" Value at Risk is like checking the weather forecast before a picnic - it tells you there's maybe a 5% chance of rain (losing money). Stress testing is like asking "What if there's a huge storm?" to make sure you're prepared even for really bad surprises.

Self-Examination

Q1.

Compare and contrast VaR and Expected Shortfall. Why is ES considered a superior risk measure from a theoretical perspective?

Q2.

Explain the three main methods of calculating VaR (parametric, historical, Monte Carlo). What are the trade-offs between them?

Q3.

What is the difference between expected loss and unexpected loss in credit risk? How do they relate to provisioning and capital?

Q4.

Why do correlations tend to increase during market crises? What implications does this have for risk aggregation and diversification benefits?

Q5.

Design a stress testing framework for an equity portfolio. What scenarios would you include and why?