Atoti Market Risk provides the “Weighted” variations of the VaR and ES measures which implement the WHS - exponentially weighted historical simulation approach.Documentation Index
Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
Use this file to discover all available pages before exploring further.
What is Weighted VaR?
Weighted VaR is a variation of the traditional Value at Risk (VaR) metric used in financial risk management. It estimates the potential loss in value of a portfolio over a defined period for a given confidence level, but with more emphasis on recent data.Key Concepts
- Traditional VaR assumes that all historical data points are equally important.
- Weighted VaR assigns greater weight to more recent observations, making it more responsive to current market conditions.
Why use Weighted VaR?
- More responsive to recent market volatility.
- Better risk estimation during turbulent periods.
- Commonly used in RiskMetrics and Basel II/III frameworks.
How is it calculated?
Weighted VaR is often calculated using Exponentially Weighted Moving Average (EWMA) or similar techniques. Here’s a simplified outline:- Assign weights to historical returns, using an exponential decay factor (e.g., λ = 0.94).
- Calculate weighted standard deviation (volatility) of returns.
- Use this volatility to compute VaR at a given confidence level (e.g., 95% or 99%).
Computation
The weight is computed for each PnL from the youngest to the oldest with the following formula: Where:- is the decay factor.
- is the index of the PnL for the scenario ordered from the youngest to the oldest starting with the index 0.
- is the number of scenario.
Configuration
Input PnL vector
The simulated PL input data, which can be displayed using the PnLVectorExpand measure. The input order of the PnL vector (youngest to oldest or oldest to youngest) is configured by the propertymr.var.weighted.pnl-oldest-first,
by default the value is false that means that the youngest value comes first.
Lambda
The default value for the decay parameter is 0.94, it is configured with theconfidence.defaults.weighted-var-lambda property and can be overridden using the WeightedVaRLambda context value.
Rounding and quantiles
The way of selecting the sum of weight (that replaces the quantile) is always “CENTERED”, it means that we take the half of the current weight plus all the previous weights for the current ordered PnL. It is not configurable with theQuantiles hierarchy.
The applied rounding to compute the selected PnL uses the PnLs that surround the selected quantile and make an interpolation on the sum of weight.
It corresponds to the “WEIGHTED” approach but, it is not configurable with the RoundingMethods hierarchy.
Weighted ES
The Weighted ES (Expected Shortfall) uses the same sorting and centered quantile logic as the Weighted VaR, but instead of interpolating around the quantile boundary, it computes the weighted average of the PnL scenarios in the tail. The algorithm iterates through the PnLs sorted from worst to best, accumulating the weight and weighted PnL of each scenario. When the centered quantile first reaches the ES confidence level (controlled by ESConfidenceLevel), the Weighted ES is returned as: where the sum runs over all scenarios strictly before the one that crosses the quantile boundary.References
The implemented algorithm is described in Section 3 of the following paper:- Richardson, Matthew P. and Boudoukh, Jacob and Whitelaw, Robert F., The Best of Both Worlds: A Hybrid Approach to Calculating Value at Risk (November 1997).