
Calculation steps
The algorithm can be described as follows:- Compute quantile as (1-confidence level)
- Compute adjacent ranks based on the value of the level
[Quantiles].[Quantiles].[QuantileName], quantile and discrete sample size - Sort PL and obtain PL values for the adjacent ranks
and approximate VaR from the PL values using the interpolation formula controlled by the value of the level
[Rounding].[RoundingMethods].[MethodName]
Computing adjacent ranks
The value of the level[Quantiles].[Quantiles].[QuantileName] is used to determine the rank calculation:
Based on the computed rank , we can obtain various adjacent ranks:
- =
- =
- =
- =
- =
- as the value of the sorted P&L vector at rank
- as the value of the sorted P&L vector at rank
- as the value of the sorted P&L vector at rank
- as the value of the sorted P&L vector at rank
VaR approximation
The value of the level[Rounding].[RoundingMethods].[MethodName] is be used to control the interpolation.