risk
18 posts · page 2 of 2
- Quant techniques · Monte Carlo
Simulating rare events: importance sampling
A 4-sigma event happens 3 times in 100,000 draws, so plain Monte Carlo barely sees it. Importance sampling draws from a distribution where the event is common, then reweights each draw by a likelihood ratio. With the right shift, the relative error stays near 2% whether the event is 1-in-50 or 1-in-3-million.
- Quant techniques · position sizing
The Kelly criterion: how much to bet when you have an edge
Maximise the expected log of wealth and you get f* = edge / odds. Why that rule beats every other fixed fraction in the long run, why betting twice Kelly grows nothing, and why most desks run half Kelly.
- Quant techniques · risk
How deep will the drawdown be? Maximum drawdown for a given Sharpe ratio
Even a good strategy spends most of its life below its high-water mark. With drift μ and volatility σ, the drawdown behaves like a reflected Brownian motion whose typical depth is σ²/(2μ), and the worst drawdown keeps growing with the length of the record. What to expect for Sharpe 0.5, 1 and 2, and why one bad year says little.
- Quant techniques · volatility
Realized variance: when high-frequency data helps—and hurts
Sum intraday squared returns to estimate daily variation, distinguish jumps from continuous volatility, and understand why microstructure noise makes ultra-frequent sampling unreliable.
- Quant techniques · portfolio construction
Risk parity: diversify the risk, not the dollars
A 60/40 portfolio puts over 90% of its risk in stocks. Risk contributions, from Euler’s theorem, show where the risk really is; equal risk contribution spreads it evenly. How to compute the weights, why two assets reduce to inverse volatility, and what the leverage is for.
- Quant techniques · risk measurement
VaR tells you where the tail starts, expected shortfall tells you how deep it goes
Value at Risk is a quantile; expected shortfall is the average loss beyond it. Under fat tails the 99% VaR barely moves while ES jumps 50%. How to compute both, why regulators switched to 97.5% ES, and how to backtest a VaR model with the Kupiec test.
- Quant techniques · credit risk
Why credit losses come in bad years: the Vasicek one-factor model
Give every loan the same 2% default probability and the expected loss is 2% whatever the correlation. The tail is another matter: with modest asset correlation, the 1-in-1,000-year loss is around 18%, not 3.5%. The one-factor Gaussian model behind Basel capital, its closed-form loss distribution, and why defaults cluster.
- Quant techniques · position sizing
Volatility targeting: scale down when it’s stormy
Size each position by target vol divided by forecast vol. Because volatility clusters and is predictable while returns mostly aren’t, this steadies risk, thins the tails and can raise the Sharpe ratio. Why Jensen’s inequality is behind the gain, and when it backfires.