arch.univariate.var_ratio¶
-
arch.univariate.var_ratio(p: float | None =
None, distribution: Distribution | None =None, parameters: Sequence[float] | ndarray[tuple[int], dtype[float64]] | Series | None =None) float[source]¶ Ratio of Gaussian VaR to model-distribution VaR.
- Parameters:¶
- p: float | None =
None¶ The probability of an exception that the VaR is designed for, which is the size of the tail, in the open interval (0, 0.5). It is 0.05 for a 95% VaR and 0.01 for a 99% VaR. The default is 0.001, a 99.9% VaR.
- distribution: Distribution | None =
None¶ Standardized distribution used to compute the model VaR. If not provided, uses the standard normal distribution.
- parameters: Sequence[float] | ndarray[tuple[int], dtype[float64]] | Series | None =
None¶ Distribution parameters. Must have one finite element for each parameter of
distribution. UseNonefor parameterless distributions.
- p: float | None =
- Returns:¶
Ratio of the Gaussian left-tail VaR to the VaR implied by the supplied model distribution.
- Return type:¶
- Raises:¶
TypeError – If
pis not a real number,distributionis not a Distribution orparameterscannot be converted to numbers.ValueError – If
pis not in (0, 0.5),parametersdoes not have one finite element for each parameter of the distribution, or the model distribution does not produce a positive finite VaR.
Notes
VaR is named by its confidence level, and
pis the probability of an exception, as in the VaR backtests such askupiec_pof(). The ratio is \(\Phi^{-1}(p)/F^{-1}(p)\) where \(F\) is the standardized distribution.