Expand description
Risk metrics over supplied return and scenario data.
These routines do not fetch market data or infer missing histories. Callers provide the return series or shocks and the output buffers.
Enums§
Functions§
- gaussian_
var - Parametric Gaussian VaR as a positive loss fraction.
- historical_
cvar - Historical expected shortfall/CVaR as a positive average tail loss.
- historical_
var - Historical VaR as a positive loss fraction at
confidence. - scenario_
loss - Apply asset shocks to portfolio weights and return scenario portfolio loss.
- scenario_
losses_ into - Scenario losses for row-major scenario shock matrix.
- sorted_
returns_ into - Copy and sort returns ascending into caller-owned scratch.