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 is the -quantile of the loss distribution:
For example, a 1-day 95% VaR of 1 million tomorrow."
Calculation Methods
Parametric (Variance-Covariance) VaR:
Assumes returns are normally distributed:
where is the standard normal quantile.
For a portfolio:
Historical Simulation:
Use actual historical returns to construct the loss distribution:
- Calculate portfolio returns for each historical date
- Sort returns from worst to best
- VaR is the return at the percentile
Advantages: No distributional assumptions; captures fat tails.
Monte Carlo Simulation:
- Specify a model for asset dynamics
- Simulate many scenarios
- Calculate portfolio P&L for each scenario
- 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 is the expected loss given that we're in the worst of cases.
Advantages:
- Coherent risk measure: Satisfies subadditivity
- Accounts for tail risk severity
- Preferred by regulators (Basel III)
For normal distribution:
where 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
- Define scenarios (parameter shocks or historical replays)
- Revalue all positions under each scenario
- Aggregate P&L impacts
- 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
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:
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%):
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
Self-Examination
Compare and contrast VaR and Expected Shortfall. Why is ES considered a superior risk measure from a theoretical perspective?
Explain the three main methods of calculating VaR (parametric, historical, Monte Carlo). What are the trade-offs between them?
What is the difference between expected loss and unexpected loss in credit risk? How do they relate to provisioning and capital?
Why do correlations tend to increase during market crises? What implications does this have for risk aggregation and diversification benefits?
Design a stress testing framework for an equity portfolio. What scenarios would you include and why?