Description Usage Arguments Details Value References
This function computes true CVaR given true conditional CDF.
1 | invert_cvar(p = 0.95, cdf, x, lower = -1, upper = 1)
|
p |
Upper tail probability. |
cdf |
conditional cdf given x. Function of |
x |
conditional information variable |
lower |
lower value to be primarily searched |
upper |
upper value to be primarily searched |
Note that
\hat{nu}_p(x) = \hat{S}_c^{-1}(p \mid x)
where
\hat{S}(y \mid x)_c(y \mid x) = 1 - \hat{F}_c(y \mid x)
Inverting can be done by finding
\inf \{ y : F(y \mid x) ≥ 1 - p \}
When finding the minimum, firstly find in (lower, upper).
But the answer can be out of this bound.
These arguments just set the primary interval, not the final one.
CVaR value for each x
Cai, Z., & Wang, X. (2008). Nonparametric estimation of conditional VaR and expected shortfall. Journal of Econometrics, 147(1), 120-130.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.