This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

On a Transform Method for the Efficient Computation of Conditional VaR (and VaR) with Application to Loss Models with Jumps and Stochastic Volatility

Alessandro Ramponi

Department of Economics and Finance
University of Roma - Tor Vergata
via Columbia, 2 - 00133 Roma, Italy
e-mail: alessandro.ramponi@uniroma2.it
Abstract

In this paper we consider Fourier transform techniques to efficiently compute the Value-at-Risk and the Conditional Value-at-Risk of an arbitrary loss random variable, characterized by having a computable generalized characteristic function. We exploit the property of these risk measures of being the solution of an elementary optimization problem of convex type in one dimension for which Fast and Fractional Fourier transform can be implemented. An application to univariate loss models driven by Lévy or stochastic volatility risk factors dynamic is finally reported.

Key words: VaR, Conditional VaR, Fourier transform methods, Stochastic Volatility, Jump-Diffusion models.

Mathematics Subject Classification (2010): 91G60, 91B30, 60E10.

1 Introduction

Measuring risks is certainly one of the core competence of any financial institution, even from a regulatory perspective. An efficient and reliable computation of risk measures is consequently a primary concern of any modern risk management activity, dramatically highlighted during the recent financial crisis. Value-at-Risk and Conditional (or Average) Value-at-Risk (henceforth VaR and CVaR) are without doubt among the best known monetary risk measures. Since its introduction, VaR rapidly has become a benchmark in the financial industry both for regulatory purposes and in the practice of risk management, mainly due to its simplicity. On the other side, it is sharply criticized for the lack of sub-additivity and the inability to quantify the severity of an exposure to rare events. For these reasons, alternative risk measures are considered as the CVaR, which turns out to be one of the well known example of coherent risk measure (see [1],[2]).

In this paper we present a method for their computation based on a Fourier transform technique. The Fourier representation of distribution functions and expected values of random variables is well-known in the financial and actuarial literature: Lèvy and Gil-Pelaez inversion formulas and more recently the method introduced by Carr and Madan in their seminal paper [5] for contingent claim valuation through Fast Fourier transform, nowadays are standard computational techniques to efficiently solve statistical and pricing problems. Here we consider a parametric framework, thus assuming a probabilistic description for the quantity we are interested in, namely profit/loss random variables. Aside the standard definitions for VaR and CVaR, in this paper we exploit an alternative characterizations of these risk measures in which transform representation can play an important tool for their efficient calculation. In particular, their property of being the solution of an elementary optimization problem of convex type in one dimension permits to evaluate both measures by solving numerically a unique simple univariate minimization problem, in which the objective function can be efficiently computed by means of Fourier representation. A quick and dirty solution is then available through (fractional) Fast Fourier Transform algorithms.

Analytical calculation of VaR by using inversion formulas has been considered in Duffie and Pan [9] while the use of generalized Fourier transform and the FFT algorithm is more recent, see e.g. Le Courtois and Walter [17] who applied such a technique in a Variance Gamma model, Kim et al. [16], Scherer et al. [24] where the class of tempered stable and infinitely divisible distribution were considered or Bormetti et al. [4] for an application to a stochastic volatility model. The techniques considered here can be applied to all models having an analytic (and computable) characteristic function. This is the case of many financial dynamic models of returns emerged in the literature of the last decades for the analysis and the management of portfolio risks, such as Lèvy finite/infinite activity and stochastic volatility models; an application to an univariate loss model in such a framework will be presented in the numerical section. But they can also be applied to that stochastic models which find their application in actuarial science, such as the compound Poisson loss distribution, used to model the aggregate claims of an insurance-risk business (see [10]).

The paper is organized as follows: VaR and CVaR are briefly introduced in Section 2, where their main characterizations are outlined. Transform technique is reviewed in Section 3 together with the use of fast and fractional Fourier transform algorithms and finally a set of numerical experiment is reported in Section 4 to show the effectiveness of the proposed procedures. In particular, the Fourier based techniques are applied to a univariate loss model of portfolio returns characterized by dynamical risk factors with jumps and stochastic volatility.

2 VaR and Conditional VaR

Let (Ω,F,)(\Omega,F,{\mathbb{P}}) be a probability space, LL a real-valued random variable and FL(x)=(Lx)F_{L}(x)={\mathbb{P}}(L\leq x) its distribution function. In the following we suppose that 𝔼[|L|]<\mathbb{E}[|L|]<\infty. To measure the risk of a financial position characterized by an uncertain future value over a given time horizon, the quantiles of its distribution function are commonly used. Given a confidence level α(0,1)\alpha\in(0,1), the set of α\alpha-quantiles of the random variable LL is the interval [qα(L),qα+(L)][q^{-}_{\alpha}(L),q^{+}_{\alpha}(L)] where

qα(L)=inf{q|P(Lq)α},qα+(L)=inf{q|P(Lq)>α}.q^{-}_{\alpha}(L)=\inf\{q\in\mathbb{R}|P(L\leq q)\geq\alpha\},\ \ q^{+}_{\alpha}(L)=\inf\{q\in\mathbb{R}|P(L\leq q)>\alpha\}.

In this paper the random variable LL describes the loss of a financial position. Given LL, VaR is defined as the lower α\alpha-quantile, qα(L)q^{-}_{\alpha}(L):

VaRα(L):=inf{q|P(Lq)α}.\mathrm{VaR}_{\alpha}(L):=\inf\{q\in\mathbb{R}|P(L\leq q)\geq\alpha\}.

In financial terms, VaR is “the maximum possible loss which is not exceeded with probability α\alpha”, or “the smallest amount of capital which, if added to the current position, keeps the probability of a non-negative outcome below the level 1α1-\alpha”. For a random variable having continuous and strictly increasing distributions function, qα(L)=qα+(L)qα(L)=FL1(α)q^{-}_{\alpha}(L)=q^{+}_{\alpha}(L)\equiv q_{\alpha}(L)=F^{-1}_{L}(\alpha), the ordinary inverse of FF, i.e. VaR solves the equation

(LVaRα(L))=α(or equivalently(LVaRα(L))=1α).{\mathbb{P}}(L\leq\mathrm{VaR}_{\alpha}(L))=\alpha\ \ \ \ \ (\mbox{or equivalently}\ \ {\mathbb{P}}(L\geq\mathrm{VaR}_{\alpha}(L))=1-\alpha).

Although widely used, it is well known that VaR is not a coherent risk measure (see [1], [2]), in particular for being not sub-additive. To overcome the weakness of VaR, several alternative risk measures have been proposed in literature, among which the Conditional, or Average, Value-at-Risk, which does satisfy the axioms of coherence (see e.g. [1],[2]). Several equivalent definitions have been proposed in the literature: given the confidence level α(0,1)\alpha\in(0,1), the basic idea is to average all the possible losses exceeding VaRα(L)\mathrm{VaR}_{\alpha}(L), that is

CVaRα(L):=11αα1VaRu(L)𝑑u.\mathrm{CVaR}_{\alpha}(L):=\frac{1}{1-\alpha}\int_{\alpha}^{1}\mathrm{VaR}_{u}(L)\ du.

Alternatively, it may be convenient to define the CVaR as the expectation of LL under the (scaled) distribution function (see [23])

FL,α(x)={0forx<qα(L)(FL(x)α)/(1α)forxqα(L).F_{L,\alpha}(x)=\left\{\begin{array}[]{cc}0&\mbox{for}\ \ x<q_{\alpha}^{-}(L)\\ (F_{L}(x)-\alpha)/(1-\alpha)&\mbox{for}\ \ x\geq q_{\alpha}^{-}(L).\\ \end{array}\right.

When FF is continuous and strictly increasing then VaRα(L)=FL1(α)\mathrm{VaR}_{\alpha}(L)=F^{-1}_{L}(\alpha) and

α1VaRu(L)𝑑u=FL1(α)+x𝑑FL(x)=𝔼[X𝕀XFL1(α)];\int_{\alpha}^{1}\mathrm{VaR}_{u}(L)\ du=\int_{F^{-1}_{L}(\alpha)}^{+\infty}x\ dF_{L}(x)=\mathbb{E}[X\mathbb{I}_{X\geq F^{-1}_{L}(\alpha)}];

therefore CVaRα(L)=𝔼[L|LVaRα(L)]\mathrm{CVaR}_{\alpha}(L)=\mathbb{E}[L|L\geq\mathrm{VaR}_{\alpha}(L)]111For general distribution functions this is not true: see [23] and [14] for a detailed discussion about alternative definitions.. Furthermore, since xIxq=(xq)++qIxqxI_{x\geq q}=(x-q)^{+}+qI_{x\geq q} we get

CVaRα(L)=VaRα(L)+11α𝔼[(XVaRα(L))+].\mathrm{CVaR}_{\alpha}(L)=\mathrm{VaR}_{\alpha}(L)+\frac{1}{1-\alpha}\mathbb{E}[(X-\mathrm{VaR}_{\alpha}(L))^{+}]. (1)

More generally, it is possible to prove that (1) is still valid for any α\alpha-quantile of LL: that is

CVaRα(L)=q+11α𝔼[(Lq)+]\mathrm{CVaR}_{\alpha}(L)=q+\frac{1}{1-\alpha}\mathbb{E}[(L-q)^{+}]

for any q[qα(L),qα+(L)]q\in[q^{-}_{\alpha}(L),q^{+}_{\alpha}(L)], which evaluated for q=VaRα(L)q=\mathrm{VaR}_{\alpha}(L), clearly gives (1). The quantity SLL(q)𝔼[(Lq)+]SL_{L}(q)\equiv\mathbb{E}[(L-q)^{+}] is known as the stop-loss transform of LL. The following approach can therefore be considered for computing VaR and CVaR:

Algorithm 1. - Two Steps 1. compute VaRα(L)\mathrm{VaR}_{\alpha}(L), i.e. find qq^{*} such that (Lq)=α{\mathbb{P}}(L\leq q^{*})=\alpha (possibly not a unique solution); 2. compute 𝔼[(Lq)+]\mathbb{E}[(L-q^{*})^{+}] to get CVaR\mathrm{CVaR} through formula (1).


An alternative characterization of VaR and CVaR for an arbitrary loss LL, due to Rockafellar and Uryasev [22], [23], is obtained as follows. For a given value α(0,1)\alpha\in(0,1) let us introduce the real function

GL,α(x)=x+11α𝔼[(Lx)+],xG_{L,\alpha}(x)=x+\frac{1}{1-\alpha}\mathbb{E}[(L-x)^{+}],\ \ x\in\mathbb{R}

and let Γ=argminxGL,α(x)\Gamma=\mathrm{argmin}_{x}G_{L,\alpha}(x) be the set of xx for which the minimum value of GL,αG_{L,\alpha} is attained, with Γ\Gamma^{-} and Γ+\Gamma^{+} respectively equal to the lower and the upper endpoint of Γ\Gamma. The proof of the following Theorem can be found in [23] (but see also [11], where an alternative proof based on the Fenchel-Legendre transform is proposed (Lemma 4.6)):

Theorem 2.1.

For any random variable LL, the function GL,α()G_{L,\alpha}(\cdot) is finite and convex with

CVaRα(L)=minxGL,α(x).\mathrm{CVaR}_{\alpha}(L)=\min_{x\in\mathbb{R}}G_{L,\alpha}(x).

Moreover Γ\Gamma is a nonempty, closed, bounded interval with qα(L)=Γq_{\alpha}^{-}(L)=\Gamma^{-} and qα+(L)=Γ+q_{\alpha}^{+}(L)=\Gamma^{+}. In particular, one always has

qα(L)Γ,CVaRα(L)=GL,α(qα(L)).q_{\alpha}(L)\in\Gamma,\ \ \mathrm{CVaR}_{\alpha}(L)=G_{L,\alpha}(q_{\alpha}(L)).

This theorem suggests to compute VaR and CVaR by solving an unique optimization problem:

Algorithm 2. - NL-Min 1. Solve the non-linear minimization problem minxGL,α(x)\min_{x}G_{L,\alpha}(x).

Refer to caption
Figure 1: Binomial model, XBinomial(N,p)X\sim Binomial(N,p). In the upper plot, the functions GG and the corresponding solutions of the minimization problem, for α[0.01,0.99]\alpha\in[0.01,0.99]. In the lower plots, true VaR and CVaR (continuous lines) and the corresponding values (’o’) computed by solving the minimization problem.

In both the algorithms, the expectations required to compute VaR and CVaR must be evaluated for different values of a parameter qq, namely (Lq)=𝔼[𝕀{Lq}]{\mathbb{P}}(L\leq q)=\mathbb{E}[\mathbb{I}_{\{L\leq q\}}] and 𝔼[(Lq)+]\mathbb{E}[(L-q)^{+}]. This can be efficiently done by means of the Fourier transform technique. Before recalling the basic properties of this class of computational methods, we now briefly introduce a simple loss model which will be used to test the computational procedures in the final Section.

Refer to caption
Figure 2: Gaussian model, XN(μ,σ2)X\sim N(\mu,\sigma^{2}). In the upper plot, the functions GG and the corresponding solutions of the minimization problem, for α[0.01,0.99]\alpha\in[0.01,0.99]. In the other plots, true VaR and CVaR (continuous lines) and the corresponding values (’o’) computed by solving the minimization problem.

An Univariate Loss Model.

Let us consider on a filtered probability space (Ω,,t,)(\Omega,\mathcal{F},\mathcal{F}_{t},{\mathbb{P}}) a stochastic process of the form Vt=V0eXtV_{t}=V_{0}\mathrm{e}^{X_{t}}, V0>0V_{0}>0, modeling the value of a risky position for t[0,T]t\in[0,T]. The random variable we consider is

L=V0erTVT=V0erTV0eXTL=V_{0}\mathrm{e}^{rT}-V_{T}=V_{0}\mathrm{e}^{rT}-V_{0}\mathrm{e}^{X_{T}}

where rr is the risk-free interest rate, that we can assume as a deterministic constant in the reference period for easiness of notation. In such a case the function GL,αG_{L,\alpha} becomes

GL,αGL,α(e)(x)\displaystyle G_{L,\alpha}\equiv G^{(e)}_{L,\alpha}(x) =\displaystyle= x+11α𝔼[(V0erTV0eXTx)+]\displaystyle x+\frac{1}{1-\alpha}\mathbb{E}[(V_{0}\mathrm{e}^{rT}-V_{0}\mathrm{e}^{X_{T}}-x)^{+}] (5)
=\displaystyle= V0(xV0+11α𝔼[((erTxV0)eXT)+])\displaystyle V_{0}\left(\frac{x}{V_{0}}+\frac{1}{1-\alpha}\mathbb{E}\left[\left(\left(\mathrm{e}^{rT}-\frac{x}{V_{0}}\right)-\mathrm{e}^{X_{T}}\right)^{+}\right]\right)
=\displaystyle= {xxV0erTV0(xV0+11α𝔼[(ek(x/V0)eXT)+])x<V0erT\displaystyle\left\{\begin{array}[]{lc}x&x\geq V_{0}\mathrm{e}^{rT}\\ \\ V_{0}\left(\frac{x}{V_{0}}+\frac{1}{1-\alpha}\mathbb{E}\left[\left(\mathrm{e}^{k(x/V_{0})}-\mathrm{e}^{X_{T}}\right)^{+}\right]\right)&x<V_{0}\mathrm{e}^{rT}\end{array}\right.

where k(v)=log(erTv)k(v)=\log(\mathrm{e}^{rT}-v). Theorem (2.1) still applies, with the constraint x<V0erTx<V_{0}\mathrm{e}^{rT}.


Example 2.1.

Let us consider the classical log-normal model, where XT=(μσ2/2)T+σWTX_{T}=(\mu-\sigma^{2}/2)T+\sigma W_{T}, WtW_{t} being the Wiener process, μ\mu\in\mathbb{R} and σ>0\sigma>0 two given parameters. In such a case, standard calculations yield

VaRα(X)=V0erTV0e(μσ2/2)T+σTz1αVaR_{\alpha}(X)=V_{0}\mathrm{e}^{rT}-V_{0}\mathrm{e}^{(\mu-\sigma^{2}/2)T+\sigma\sqrt{T}z_{1-\alpha}}

and

Gα(x)=x+11α[(V0erTx)N[d2(x)]V0eμTN[d1(x)]]G_{\alpha}(x)=x+\frac{1}{1-\alpha}[(V_{0}\mathrm{e}^{rT}-x)N[-d_{2}(x)]-V_{0}\mathrm{e}^{\mu T}N[-d_{1}(x)]]
d1(x)\displaystyle d_{1}(x) =\displaystyle= 1σT(log(V0V0erTx)+(μ+σ2/2)T),\displaystyle\frac{1}{\sigma\sqrt{T}}\left(\log\left(\frac{V_{0}}{V_{0}\mathrm{e}^{rT}-x}\right)+(\mu+\sigma^{2}/2)T\right),
d2(x)\displaystyle d_{2}(x) =\displaystyle= 1σT(log(V0V0erTx)+(μσ2/2)T)\displaystyle\frac{1}{\sigma\sqrt{T}}\left(\log\left(\frac{V_{0}}{V_{0}\mathrm{e}^{rT}-x}\right)+(\mu-\sigma^{2}/2)T\right)

where N[d]N[d] is the standard normal cumulative distribution function and z1αz_{1-\alpha} is the corresponding (1α)(1-\alpha)-quantile (or critical value). Finally,

CVaRα(X)=V0(erTe(μσ2/2)T+σTz1α)+V0eμT1α(eσ2T/2+σTz1αN[z1α]N[z1ασT]).CVaR_{\alpha}(X)=V_{0}(\mathrm{e}^{rT}-\mathrm{e}^{(\mu-\sigma^{2}/2)T+\sigma\sqrt{T}z_{1-\alpha}})+\frac{V_{0}\mathrm{e}^{\mu T}}{1-\alpha}\left(\mathrm{e}^{-\sigma^{2}T/2+\sigma\sqrt{T}z_{1-\alpha}}N[z_{1-\alpha}]-N[z_{1-\alpha}-\sigma\sqrt{T}]\right).

3 The Fourier transform method

Fourier transform methods are efficient techniques emerged in recent years in the financial practice as one of the main methodology for the evaluation of derivatives. In fact, the no-arbitrage price of an European style contingent claim can be represented as the (conditional) expectation of the derivative payoff under a proper risk-neutral measure (see e.g. [3]). These methods essentially consist on the representation of such an expectation as the convolution of two Fourier transforms. Since the value of most derivatives depends on a trigger parameter, two main variants have been developed depending on which variable of the payoff is transformed into the Fourier space. In our setting, due to the functional (exponential) form of the transformed functions we consider, the formulas we get by applying the two approaches are essentially the same: we can pass from one to the other by simply changing the integration contour (see [21]). In the following we choose to work with the generalized Fourier transform (GFT) w.r.t. the trigger parameter vv. In essence, given a function H(y,v)H(y,v), the quantity that we want to compute is h(v)=𝔼[H(Y,v)]h(v)=\mathbb{E}[H(Y,v)], where the expectation is taken over a given probability measure {\mathbb{P}}. Let us consider the GFT with respect to vv: formally we have for z=u+iν𝒞z=u+\mathrm{i}\nu\in\mathcal{C}\subset\mathbb{C}

h^(z)=eizvh(v)𝑑v=eizy(H(y,v)(dy))𝑑v=H^(v)(z,y)(dy)=𝔼[H^(v)(z,Y)]\hat{h}(z)=\int_{\mathbb{R}}\mathrm{e}^{\mathrm{i}zv}h(v)dv=\int_{\mathbb{R}}\mathrm{e}^{\mathrm{i}zy}\left(\int_{\mathbb{R}}H(y,v)\mathbb{P}(dy)\right)dv=\int_{\mathbb{R}}\widehat{H}^{(v)}(z,y)\mathbb{P}(dy)=\mathbb{E}[\widehat{H}^{(v)}(z,Y)]

where we have defined

H^(v)(z,y)=eizvH(y,v)𝑑v.\widehat{H}^{(v)}(z,y)=\int_{\mathbb{R}}\mathrm{e}^{\mathrm{i}zv}H(y,v)dv.

Notice that h^\hat{h} corresponds to the classical Fourier transform of the ν\nu-damped expectation, as introduced in [5]: Fourier inversion gives

h(v)=12πiνiν+eizvh^(z)𝑑z=12πiνiν+eizv𝔼[H^(v)(z,Y)]𝑑zh(v)=\frac{1}{2\pi}\int_{\mathrm{i}\nu-\infty}^{\mathrm{i}\nu+\infty}\mathrm{e}^{-\mathrm{i}zv}\widehat{h}(z)dz=\frac{1}{2\pi}\int_{\mathrm{i}\nu-\infty}^{\mathrm{i}\nu+\infty}\mathrm{e}^{-\mathrm{i}zv}\mathbb{E}[\widehat{H}^{(v)}(z,Y)]\ dz

for ν\nu in some strip of \mathbb{C}. The previous equalities must be justified under the appropriate conditions on the function HH, its transform and the characteristic function of the underlying random variables (see e.g. [18] for a thorough discussion on the subject). For our application we consider the following functions:

H1(y,v)=(yv)+,H2(y,v)=𝕀{yv},H_{1}(y,v)=(y-v)^{+},\ \ \ H_{2}(y,v)=\mathbb{I}_{\{y\leq v\}},
H3(x,k)=(exek)+,H¯3(x,k)=(ekex)+.H_{3}(x,k)=(e^{x}-e^{k})^{+},\ \ \ {\bar{H}}_{3}(x,k)=(e^{k}-e^{x})^{+}.

The reason for considering an exponential transformation of the basic risk factor is the fact that many financial models are usually introduced in the form exp(X)\exp(X), as in Example (2.1). Their GFT are readily obtained by means of standard (complex) integration: we summarize such results in the following

Proposition 3.1.

Let z=u+iνz=u+\mathrm{i}\nu\in\mathbb{C}, then

H^1(v)(z,y)=e(iuν)y(iuν)2=eizyz2,ν<0\widehat{H}_{1}^{(v)}(z,y)=\frac{\mathrm{e}^{(\mathrm{i}u-\nu)y}}{(\mathrm{i}u-\nu)^{2}}=-\frac{\mathrm{e}^{\mathrm{i}zy}}{z^{2}},\ \ \nu<0 (6)
H^2(v)(z,y)=e(iuν)yiuν=izeizy,ν>0\widehat{H}_{2}^{(v)}(z,y)=\frac{\mathrm{e}^{(\mathrm{i}u-\nu)y}}{\mathrm{i}u-\nu}=-\frac{\mathrm{i}}{z}\mathrm{e}^{\mathrm{i}zy},\ \ \nu>0 (7)
H^3(k)(z,x)=e(iuν+1)x(iuν)(iuν+1)=ei(zi)xizz2,ν<0,\widehat{H}_{3}^{(k)}(z,x)=\frac{\mathrm{e}^{(\mathrm{i}u-\nu+1)x}}{(\mathrm{i}u-\nu)(\mathrm{i}u-\nu+1)}=\frac{\mathrm{e}^{\mathrm{i}(z-\mathrm{i})x}}{\mathrm{i}z-z^{2}},\ \ \ \nu<0, (8)
H¯^3(k)(z,x)=e(iuν+1)x(iuν)(iuν+1)=ei(zi)xizz2,ν>1.\widehat{\bar{H}}_{3}^{(k)}(z,x)=\frac{\mathrm{e}^{(\mathrm{i}u-\nu+1)x}}{(\mathrm{i}u-\nu)(\mathrm{i}u-\nu+1)}=\frac{\mathrm{e}^{\mathrm{i}(z-\mathrm{i})x}}{\mathrm{i}z-z^{2}},\ \ \ \nu>1. (9)

Let ϕY(z)=𝔼[eizY],z\phi_{Y}(z)=\mathbb{E}[\mathrm{e}^{\mathrm{i}zY}],\ \ \ z\in\mathbb{C} be the (generalized) characteristic function of the r.v. YY. The following result can be proved as in [18].

Theorem 3.1.

(a) If 𝔼[eνY]<\mathbb{E}[\mathrm{e}^{-\nu Y}]<\infty, ν<0\nu<0, then

H1=𝔼[(Yv)+]=12πiνiν+eizvϕY(z)z2𝑑z=1πiν0iν+{eizvϕY(z)z2}𝑑z;H_{1}=\mathbb{E}[(Y-v)^{+}]=-\frac{1}{2\pi}\int_{\mathrm{i}\nu-\infty}^{\mathrm{i}\nu+\infty}\mathrm{e}^{-\mathrm{i}zv}\frac{\phi_{Y}(z)}{z^{2}}\ dz=-\frac{1}{\pi}\int_{\mathrm{i}\nu-0}^{\mathrm{i}\nu+\infty}\Re\left\{\mathrm{e}^{-\mathrm{i}zv}\frac{\phi_{Y}(z)}{z^{2}}\right\}dz; (10)

(b) Let H¯2=12((Yv)+(Y<v))\bar{H}_{2}=\frac{1}{2}({\mathbb{P}}(Y\leq v)+{\mathbb{P}}(Y<v)). If 𝔼[eνY]<\mathbb{E}[\mathrm{e}^{-\nu Y}]<\infty, ν>0\nu>0, then

H¯2=12πlimM+iνMiν+MeizvizϕY(z)𝑑z=1πiν0iν+{eizvizϕY(z)}𝑑z;\bar{H}_{2}=\frac{1}{2\pi}\lim_{M\rightarrow+\infty}\int_{\mathrm{i}\nu-M}^{\mathrm{i}\nu+M}\mathrm{e}^{-\mathrm{i}zv}\frac{\mathrm{i}}{z}\phi_{Y}(z)\ dz=\frac{1}{\pi}\int_{\mathrm{i}\nu-0}^{\mathrm{i}\nu+\infty}\Re\left\{\mathrm{e}^{-\mathrm{i}zv}\frac{\mathrm{i}}{z}\phi_{Y}(z)\right\}dz; (11)

(c) If 𝔼[e(ν+1)X]<\mathbb{E}[\mathrm{e}^{(-\nu+1)X}]<\infty, ν<0\nu<0, then

H3=𝔼[(eXek)+]=12πiνiν+eizkϕX(zi)izz2𝑑z=1πiν0iν+{eizkϕX(zi)izz2}𝑑z;H_{3}=\mathbb{E}[(\mathrm{e}^{X}-e^{k})^{+}]=\frac{1}{2\pi}\int_{\mathrm{i}\nu-\infty}^{\mathrm{i}\nu+\infty}\mathrm{e}^{-\mathrm{i}zk}\frac{\phi_{X}(z-\mathrm{i})}{\mathrm{i}z-z^{2}}\ dz=\frac{1}{\pi}\int_{\mathrm{i}\nu-0}^{\mathrm{i}\nu+\infty}\Re\left\{\mathrm{e}^{-\mathrm{i}zk}\frac{\phi_{X}(z-\mathrm{i})}{\mathrm{i}z-z^{2}}\right\}dz; (12)

(d) If 𝔼[e(ν+1)X]<\mathbb{E}[\mathrm{e}^{(-\nu+1)X}]<\infty, ν>1\nu>1, then

H¯3=𝔼[(ekeX)+]=12πiνiν+eizkϕX(zi)izz2𝑑z=1πiν0iν+{eizkϕX(zi)izz2}𝑑z.\bar{H}_{3}=\mathbb{E}[(e^{k}-\mathrm{e}^{X})^{+}]=\frac{1}{2\pi}\int_{\mathrm{i}\nu-\infty}^{\mathrm{i}\nu+\infty}\mathrm{e}^{-\mathrm{i}zk}\frac{\phi_{X}(z-\mathrm{i})}{\mathrm{i}z-z^{2}}\ dz=\frac{1}{\pi}\int_{\mathrm{i}\nu-0}^{\mathrm{i}\nu+\infty}\Re\left\{\mathrm{e}^{-\mathrm{i}zk}\frac{\phi_{X}(z-\mathrm{i})}{\mathrm{i}z-z^{2}}\right\}dz. (13)

Remark 3.1.

It is worth noting that formula (11) is a slight generalizations of the well-known Levy’s Inversion (and Gil-Pelaez) formulas, that can be obtained by using the Residue Theorem. Furthermore, in the framework of the univariate loss model discussed in Example (2.1), we clearly have (Lq)=1(eXT<ek){\mathbb{P}}(L\leq q)=1-{\mathbb{P}}(\mathrm{e}^{X_{T}}<\mathrm{e}^{k}), where k=log((V0erTq)/V0)k=\log((V_{0}\mathrm{e}^{rT}-q)/V_{0}) for q<V0erTq<V_{0}\mathrm{e}^{rT}, and we notice that the probability of the events {eXek}\{e^{X}\leq e^{k}\} has the same integral representation as (11).


Under the hypothesis of Theorem (2.1) we finally obtain an integral representation for the function GL,αG_{L,\alpha}:

GL,α(x)\displaystyle G_{L,\alpha}(x) =\displaystyle= x1(1α)2πiνiν+eizxϕY(z)z2𝑑z\displaystyle x-\frac{1}{(1-\alpha)2\pi}\int_{\mathrm{i}\nu-\infty}^{\mathrm{i}\nu+\infty}\mathrm{e}^{-\mathrm{i}zx}\frac{\phi_{Y}(z)}{z^{2}}\ dz (14)
=\displaystyle= xeνx(1α)π0+Re(eiuxϕY(u+iν)(u+iν)2)𝑑u,ν<0\displaystyle x-\frac{\mathrm{e}^{\nu x}}{(1-\alpha)\pi}\int_{0}^{+\infty}\mathrm{Re}\left(\mathrm{e}^{-\mathrm{i}ux}\frac{\phi_{Y}(u+\mathrm{i}\nu)}{(u+\mathrm{i}\nu)^{2}}\right)\ du,\ \ \ \nu<0

or, in the case of exponential models,

GL,α(e)(x)=x+1(1α)2πiνiν+eizxϕX(zi)izz2𝑑zG^{(e)}_{L,\alpha}(x)=x+\frac{1}{(1-\alpha)2\pi}\int_{\mathrm{i}\nu-\infty}^{\mathrm{i}\nu+\infty}\mathrm{e}^{-\mathrm{i}zx}\frac{\phi_{X}(z-\mathrm{i})}{\mathrm{i}z-z^{2}}\ dz
=x+eνx(1α)π0+Re(eiuxϕX(u+i(ν1))ν2νu2+iu(12ν))𝑑u,ν>1,orν<0.\displaystyle=x+\frac{\mathrm{e}^{\nu x}}{(1-\alpha)\pi}\int_{0}^{+\infty}\mathrm{Re}\left(\mathrm{e}^{-\mathrm{i}ux}\frac{\phi_{X}(u+\mathrm{i}(\nu-1))}{\nu^{2}-\nu-u^{2}+\mathrm{i}u(1-2\nu)}\right)\ du,\ \ \nu>1,\ \mbox{or}\ \ \nu<0. (15)

As it is widely known, the transform method deserves for an efficient evaluation of expectations by means of the FFT algorithm for a proper range of the trigger parameter. Actually, if only one value has to be evaluated for a fixed parameter vv or kk, there is no need to use FFT and a proper quadrature algorithm suffices to compute the required expectations.

Fast Fourier Transform - FFT.

This technique involves two steps:

  • a numerical quadrature scheme to approximate through a NN-point sum the integral

    I(x)=1π0+[eiuxF(u)]𝑑u.I(x)=\frac{1}{\pi}\int_{0}^{+\infty}\Re\left[\mathrm{e}^{-\mathrm{i}ux}F(u)\right]du.

    By using an equi-spaced grid {un}n=1,,N\{u_{n}\}_{n=1,\ldots,N} of the line {z=u+iv:u+,v=ν}\{z=u+\mathrm{i}v\in\mathbb{C}:u\in\mathbb{R}^{+},v=\nu\} with spacing Δ\Delta, we have

    I(x)ΣN(x)=Δπn=0N1[eiunxF(un)wn],I(x)\approx\Sigma_{N}(x)=\frac{\Delta}{\pi}\sum_{n=0}^{N-1}\Re\left[\mathrm{e}^{-\mathrm{i}u_{n}x}F(u_{n})w_{n}\right],

    where wnw_{n} are the integration weights222Different spacing rules can be implemented, e.g. the midpoint rule.;

  • given a grid xm=x1+γmx_{m}=x_{1}+\gamma m, m=0,N1m=0,\ldots N-1, denoted by 𝐱\mathbf{x}, the sum ΣN(xm)\Sigma_{N}(x_{m}) is written as a discrete Fourier transform (DFT) when

    Δγ=2πN\Delta\cdot\gamma=\frac{2\pi}{N} (16)

    that is

    ΣN(xm)=Δπn=0N1einmΔγeinΔx1F(nΔ)wn=Δπn=0N1einm2πNhn\Sigma_{N}(x_{m})=\frac{\Delta}{\pi}\sum_{n=0}^{N-1}\mathrm{e}^{-\mathrm{i}nm\Delta\gamma}\mathrm{e}^{-\mathrm{i}n\Delta x_{1}}F(n\Delta)w_{n}=\frac{\Delta}{\pi}\sum_{n=0}^{N-1}\mathrm{e}^{-\mathrm{i}nm\frac{2\pi}{N}}h_{n}

    where

    hn=einΔx1F(nΔ)wn.h_{n}=\mathrm{e}^{-\mathrm{i}n\Delta x_{1}}F(n\Delta)w_{n}. (17)

The integral I(x)I(x) is therefore approximated over the grid 𝐱\mathbf{x} as I(xm)ΣN(xm)I(x_{m})\approx\Sigma_{N}(x_{m}) that can be efficiently computed by means of the Fast Fourier Transform algorithm, I(𝐱)FFT(𝐱,𝐡)I(\mathbf{x})\approx FFT(\mathbf{x},\mathbf{h}). The required values are computed with O(Nlog(N))(N\log(N)) operations. A thorough discussion on sampling and truncation errors is found in [18].

Fractional Fourier Transform - FRFT.

The condition Δγ=2π/N\Delta\cdot\gamma=2\pi/N imposes that if we refine the integration grid (Δ\Delta small), the range for the variable xx becomes larger, thus including values which cannot be useful in our valuation procedure. Fractional Fourier transform permits on the contrary to decouple the two steps: it is therefore possible to choose properly the integration range and the xx-spacing grid. The resulting algorithm, introduced in the financial literature in [8], involves the use of standard FFT: in terms of the number of elementary operations, the computational cost of a FRFT procedure with NN-point, NN-FRFT, is about the same as a 4N4N-FFT. The advantage of running a FRFT with smaller NN is that it may achieve the same accuracy than a FFT with much larger NN.

The mm-th component of the η\eta-fractional discrete Fourier transform of the vector 𝐡\mathbf{h} is defined as

FRFT(𝐡,η)m=n=0N1ei2πnmηhn,k=0,,N1FRFT(\mathbf{h},\eta)_{m}=\sum_{n=0}^{N-1}\mathrm{e}^{-\mathrm{i}2\pi nm\eta}h_{n},\ \ \ k=0,\ldots,N-1

with η=Δγ/2π\eta=\Delta\gamma/2\pi. The algorithm works as follows: firstly define two 2N2N-point vectors

𝐲=(y0,,yn1,yn,,y2n),\displaystyle\mathbf{y}=(y_{0},\ldots,y_{n-1},y_{n},\ldots,y_{2n}), yj=hjeiπj2η,\displaystyle y_{j}=h_{j}\mathrm{e}^{-\mathrm{i}\pi j^{2}\eta}, 0j<n1,yj=0,nj<2n,\displaystyle 0\leq j<n-1,y_{j}=0,\ \ n\leq j<2n,
𝐳=(z0,,zn1,z¯n,,z¯2n),\displaystyle\mathbf{z}=(z_{0},\ldots,z_{n-1},\bar{z}_{n},\ldots,\bar{z}_{2n}), zj=eiπj2η,\displaystyle z_{j}=\mathrm{e}^{\mathrm{i}\pi j^{2}\eta}, 0j<n1,z¯j=eiπ(nj)2η, 0j<n1.\displaystyle 0\leq j<n-1,\bar{z}_{j}=\mathrm{e}^{\mathrm{i}\pi(n-j)^{2}\eta},\ 0\leq j<n-1.

The mm-th component of FRFT(𝐡,η)kFRFT(\mathbf{h,\eta})_{k} is then computed as

FRFT(𝐡,η)m=eiπm2ηFFTm1(FFT(𝐲)mFFT(𝐳)m),m=1,,n,FRFT(\mathbf{h},\eta)_{m}=\mathrm{e}^{\mathrm{i}\pi m^{2}\eta}\odot FFT^{-1}_{m}(FFT(\mathbf{y})_{m}\odot FFT(\mathbf{z})_{m}),\ \ m=1,\ldots,n,

where FFT-1 is the inverse fast Fourier transform and \odot is the component-wise vector multiplication. As before, the integral I(x)I(x) can be approximated over the grid 𝐱\mathbf{x} by means of the Fractional Fourier Transform algorithm, I(𝐱)FRFT(𝐱,𝐡,η)I(\mathbf{x})\approx FRFT(\mathbf{x},\mathbf{h},\eta)

4 Implementation and results

The numerical procedures outlined in Section 2 for the computation of VaR and CVaR both require to evaluate the distribution function and/or the stop-loss expectation of the random variable LL. Algorithm 1 firstly calls for a zero-finding routine that needs to compute (a sequence of) values of FL()F_{L}(\cdot) and then SL(L)SL(L) must be evaluated. Algorithm 2 must solve iteratively a univariate minimization problem requiring at each step to compute an expectation. Efficient numerical quadratures for computing Fourier integrals suffice for implementing the two algorithms without the need of calling for fast Fourier transforms. Error bounds on the approximation obtained clearly depends on the computational methods chosen for numerical integration, zero-finding and minimization routines. A third algorithm can be outlined, providing a quick-and-dirty solution, based on FFT/FRFT. Since we want to minimize w.r.t. xx the functions GL,α(x)G_{L,\alpha}(x) or GL,α(e)(x)G^{(e)}_{L,\alpha}(x) we can approximate them for a whole range of values 𝐱\mathbf{x} by applying once FFT/FRFT: from the integral representation (14) and (15), we get

GL,α(𝐱)G^α(𝐱){𝐱eν𝐱(1α)πFFT(𝐱,𝐡)𝐱eν𝐱(1α)πFRFT(𝐱,𝐡,η)G_{L,\alpha}(\mathbf{x})\approx\hat{G}_{\alpha}(\mathbf{x})\equiv\left\{\begin{array}[]{l}\mathbf{x}-\frac{\mathrm{e}^{\nu\mathbf{x}}}{(1-\alpha)\pi}\odot FFT(\mathbf{x},\mathbf{h})\\ \mathbf{x}-\frac{\mathrm{e}^{\nu\mathbf{x}}}{(1-\alpha)\pi}\odot FRFT(\mathbf{x},\mathbf{h},\eta)\end{array}\right.

and

GL,α(e)(𝐱)G^α(e)(𝐱){𝐱+eν𝐱(1α)πFFT(𝐱,𝐡)𝐱+eν𝐱(1α)πFRFT(𝐱,𝐡,η)G^{(e)}_{L,\alpha}(\mathbf{x})\approx\hat{G}^{(e)}_{\alpha}(\mathbf{x})\equiv\left\{\begin{array}[]{l}\mathbf{x}+\frac{\mathrm{e}^{\nu\mathbf{x}}}{(1-\alpha)\pi}\odot FFT(\mathbf{x},\mathbf{h})\\ \mathbf{x}+\frac{\mathrm{e}^{\nu\mathbf{x}}}{(1-\alpha)\pi}\odot FRFT(\mathbf{x},\mathbf{h},\eta)\end{array}\right.

where 𝐡\mathbf{h} is the vector defined in (17), evaluated according to the functions in (14) or (15). Hence, the minimum and the corresponding minimizer of the vector G^L,α\hat{G}_{L,\alpha} will provide approximated values for CVaR and VaR, respectively.

Algorithm 3. - FFT/FRFT 1. Compute the vector G^L,α\hat{G}_{L,\alpha} through FFT/FRFT algorithm for a proper grid 𝐱\mathbf{x}; 2. Find the minimum and the corresponding minimizer of G^L,α\hat{G}_{L,\alpha}


VaR Abs Err CVaR Abs Err Relative Time
Alg 1 0.53×10140.53\times 10^{-14} 0 11
Alg 2 0.33×10070.33\times 10^{-07} 0 0.30.3
2122^{12}-FFT 0.15×10020.15\times 10^{-02} 0.32×10050.32\times 10^{-05} 0.7×10050.7\times 10^{-05}
2102^{10}-FRFT 0.14×10030.14\times 10^{-03} 0.27×10070.27\times 10^{-07} 0.2×10050.2\times 10^{-05}
n=5n=5, p=0.1p=0.1 VaR Abs Err CVaR Abs Err Relative Time
Alg 2 0.00920.0092 0.00270.0027 11
2122^{12}-FFT 0.01060.0106 0.00250.0025 0.00920.0092
2102^{10}-FRFT 0.01760.0176 0.00470.0047 0.00140.0014
Table 1: Comparison between the Fourier-based numerical procedures for the gaussian model (upper table), XN(μ,σ2)X\sim N(\mu,\sigma^{2}) and the binomial model (lower table), XB(n,p)X\sim B(n,p), with α=0.99\alpha=0.99. The second and third columns report absolute errors for the VaR and CVaR with respect to the true values, as obtained by applying zero-finding, univariate minimization (golden section search) and quadrature (adaptive Lobatto algorithm) build-in functions of MatLab. In view of the inversion results for discontinuous distribution functions, we did not apply Alg 1 to the binomial case. In these experiments, the zero-finding algorithm had starting point equal to mean of the r.v.; the univariate minimization requires a starting interval set to [0,n][0,n] and [0,μ+3σ][0,\mu+3\sigma], respectively. The FFT and FRFT algorithms have input vectors of length 2N2^{N}; the integral was approximated between 0 and 100100 in the gaussian case and 0 and 200200 in the binomial case; the xx-grid was started at x1=0x_{1}=0, with γ=0.004\gamma=0.004 for FRFT. In the last column the relative CPU times are shown, normalized to the slowest algorithm (Alg 1).

4.1 Numerical results

In this section we firstly report some results obtained by applying the computational procedures outlined above, that is Algorithm 1,2 and 3. We considered a gaussian and a binomial random variables for Table 1, and the univariate loss model framework of Example (2.1) for Table 2: due to the analytical form of the function to be minimized (5), we applied integral representation w.r.t. the scaled variable x/V0x/V_{0}. Pros and cons of each algorithm are easily outlined: precision and speed depend of course on the algorithms implemented, the programming language and on the computer available. In our experiment we used MatLab R2012a on a Intel Core i5 CPU with 2.402.40 GHz. The basic steps of the algorithms (quadrature, univariate minimization, zero-finding and FFT) are those available as MatLab build-in functions.

μ=0\mu=0, σ=0.2\sigma=0.2, T=14T=\frac{1}{4} VaR Abs Err CVaR Abs Err Relative Time
Alg 1 0.11×10150.11\times 10^{-15} 0.26×10140.26\times 10^{-14} 11
Alg 2 0.37×10080.37\times 10^{-08} 0.22×10150.22\times 10^{-15} 0.46280.4628
2122^{12}-FFT 0.00110.0011 0.00170.0017 0.44×10030.44\times 10^{-03}
2102^{10}-FRFT 0.14×10030.14\times 10^{-03} 0.22×10050.22\times 10^{-05} 0.58×10030.58\times 10^{-03}
μ=0.8\mu=-0.8, σ=0.35\sigma=0.35, T=112T=\frac{1}{12} VaR Abs Err CVaR Abs Err Relative Time
Alg 1 0 0.55×10150.55\times 10^{-15} 11
Alg 2 0.36×10080.36\times 10^{-08} 0 0.35830.3583
2122^{12}-FFT 0.0050.005 0.00040.0004 0.00110.0011
2102^{10}-FRFT 0.88×10040.88\times 10^{-04} 0.23×10050.23\times 10^{-05} 0.00130.0013
Table 2: Comparison between the numerical procedures for the benchmark univariate loss model - Example (2.1) - with α=0.99\alpha=0.99. The second and third columns report absolute errors with respect to the true values for the VaR and CVaR. In these experiments, the zero-finding algorithm had starting point equal to the mid point of the interval [0,V0erT][0,V_{0}\mathrm{e}^{rT}], while for the univariate minimization the starting interval was set to [0,erT][0,\mathrm{e}^{rT}]. The FFT and FRFT algorithms have input vectors of length 2N2^{N}; the integrals were approximated between 0 and 100100; the xx-grid has right end point at log(V0exp(rT))\log(V_{0}*\exp(rT)), with γ=6.7×1004\gamma=6.7\times 10^{-04} for FRFT. In the last column the relative CPU times are shown, normalized to the slowest algorithm (Alg 1).

In the second set of experiments, we show the effectiveness of the considered computational procedures in the univariate loss model by assuming different dynamics for XTX_{T} and evaluating the impact of the relevant parameters on the computation of VaR and CVaR. The instances we consider are Lévy models with finite activity (Merton Jump-Diffusion) and infinite activity (Variance Gamma), and stochastic volatility models (Heston model) with jumps (Regime Switching Jump-Diffusion). But our procedure applies to all models characterized by having a computable (generalized) characteristic function. In such a cases, we used a hybrid approach consisting in two steps:

  1. 1.

    FRFT approximation for finding a feasible starting point x0x_{0}

  2. 2.

    refinement of the previous estimate by starting from x0x_{0} a local minimization routine.

In the following we simply report the GCF of the considered dynamics. Details can be found e.g. in [6].

Merton Jump-Diffusion model.

We consider a jump-diffusion setting in which the jump process is described as a marked point process (MPP). Let μ:𝒮\mu:\mathcal{S}\rightarrow\mathbb{R}, σ:𝒮\sigma:\mathcal{S}\rightarrow\mathbb{R} and γ:E×𝒮\gamma:E\times\mathcal{S}\rightarrow\mathbb{R} be given functions, (E,)(E,\mathcal{E}) being the measurable mark space. Without loss of generality, we can assume in the following EE\subseteq\mathbb{R}. In the given interval 0tT0\leq t\leq T, we consider therefore the dynamic

X(t)=(μ12σ2)t+σW(t)+0tEγ(y)p(dy,ds),X(t)=(\mu-\frac{1}{2}\sigma^{2})t+\sigma W(t)+\int_{0}^{t}\int_{E}\gamma(y)p(dy,ds), (18)

where W(t)W(t) is a standard brownian motion and p(dy,dt)p(dy,dt) is a MPP characterized by the intensity

λt(dy)λm(dy).\lambda_{t}(dy)\equiv\lambda m(dy).

Here λ\lambda represents the intensity of the Poisson process NtN_{t}, while m(dy)m(dy) is a probability measures on EE which specifies the jump variable YY. We assume that W()W(\cdot) and p(dy,dt)p(dy,dt) are independent and that 𝔼[eγ(Y)]=Eeγ(y)m(dy)\mathbb{E}[\mathrm{e}^{\gamma(Y)}]=\int_{E}\mathrm{e}^{\gamma(y)}m(dy) is finite. The function γ(y)\gamma(y) represents the jump amplitude relative to the mark yy: without loss of generality, we set γ(y)=y\gamma(y)=y in the following. The GCF for XTX_{T} is then given by

ϕXT(z)=ei(μσ2/2)Tzσ2Tz2/2+λT(ϕY(z)1)\phi_{X_{T}}(z)=\mathrm{e}^{\mathrm{i}(\mu-\sigma^{2}/2)Tz-\sigma^{2}Tz^{2}/2+\lambda T(\phi_{Y}(z)-1)}

where ϕY(z)=𝔼[eizY]\phi_{Y}(z)=\mathbb{E}[\mathrm{e}^{\mathrm{i}zY}]. In the numerical example, we consider jumps characterized by a Normal distribution, YN(a,b)Y\sim N(a,b) so that

ϕY(z)=eiazb2z2/2.\phi_{Y}(z)=\mathrm{e}^{\mathrm{i}az-b^{2}z^{2}/2}.

VaR and CVaR obtained by varying the diffusion volatility σ\sigma, the jump intensity λ\lambda and the jump parameters aa and bb are reported in Fig. (3).

Refer to caption
Figure 3: VaR (triangle) and CVaR (circle) for varying parameters of the Merton jump-diffusion model with V0=100V_{0}=100, r=0r=0, T=1/12T=1/12, μ=0\mu=0, σ=0.25\sigma=0.25, a=0.01a=-0.01, b=0.1b=0.1 and λ=1\lambda=1.

VG model.

The Variance Gamma model was introduced in [19] and represents one of the simpler example of infinite activity Lèvy model for describing an asset value dynamic. It can be defined as a Brownian motion with drift, where time is changed by an independent gamma process with mean rate unity and variance rate ν\nu, G(t;1,ν)G(t;1,\nu):

Xt=θG(t;1,ν)+σWG(t;1,ν).X_{t}=\theta G(t;1,\nu)+\sigma W_{G(t;1,\nu)}.

It has three parameters θ\theta, σ\sigma, ν\nu and the characteristic function is given by

ϕXT(z)=(11iθνz+σ2νz2/2)T/ν.\phi_{X_{T}}(z)=\left(\frac{1}{1-\mathrm{i}\theta\nu z+\sigma^{2}\nu z^{2}/2}\right)^{T/\nu}.

In Fig. (4) the behavior of VaR and CVaR are compared for different values of the parameters.

Refer to caption
Figure 4: VaR (triangle) and CVaR (circle) for varying parameters of the Variance Gamma model with V0=100V_{0}=100, r=0r=0, T=1/12T=1/12, θ=0\theta=0, σ=0.3\sigma=0.3, ν=0.1\nu=0.1.

Regime-Switching Jump-Diffusion model.

We consider a jump-diffusion model the parameters of which are driven by a finite state and continuous time Markov chain. To be definite, let ω(t)\omega(t) be a continuous time, homogeneous and stationary Markov chain on the state space 𝒮={1,2,,M}\mathcal{S}=\{1,2,\ldots,M\} with a generator QM×MQ\in\mathbb{R}^{M\times M}: the elements qijq_{ij} of the matrix QQ are positive numbers such that ji,j=1Mqij=qii\sum_{j\neq i,j=1}^{M}q_{ij}=-q_{ii}, for i=1,,Mi=1,\ldots,M. The jump-diffusion dynamic is then modified as

X(t)=0t(μ(ω(s))12σ2(ω(s))ds+0tσ(ω(s))dW(s)+0tEγ(y,ω(t))pω(dy,ds),X(t)=\int_{0}^{t}(\mu(\omega(s))-\frac{1}{2}\sigma^{2}(\omega(s))ds+\int_{0}^{t}\sigma(\omega(s))dW(s)+\int_{0}^{t}\int_{E}\gamma(y,\omega(t^{-}))p^{\omega}(dy,ds), (19)

where pω(dy,dt)p^{\omega}(dy,dt) is a MPP characterized by the regime-switching intensity λtω(dy)λ(ω)m(ω,dy)\lambda^{\omega}_{t}(dy)\equiv\lambda(\omega)m(\omega,dy), m(,dy)m(\cdot,dy) being a set of probability measures on EE, one for each state (regime) i𝒮i\in\mathcal{S}. The function γ(y,ω)\gamma(y,\omega) represents the jump amplitude relative to the mark yy in regime ω\omega. We assume that the processes ω()\omega(\cdot) and W()W(\cdot) are independent, W()W(\cdot) and pω(dy,dt)p^{\omega}(dy,dt) are conditionally independent given ω(t)\omega(t) and that 𝔼[eγ(Y,ω)]=Eeγ(y,ω)m(ω,dy)\mathbb{E}[\mathrm{e}^{\gamma(Y,\omega)}]=\int_{E}\mathrm{e}^{\gamma(y,\omega)}m(\omega,dy) is finite for each regime ω\omega.

In [21] (see also [8]) it was proved the following

Proposition 4.1.

Let ϕj(z)=𝔼[eizγ(Y(j),j)]\phi_{j}(z)=\mathbb{E}[\mathrm{e}^{\mathrm{i}z\gamma(Y(j),j)}] be the generalized Fourier transform of the jump magnitude under the historical measure. Then, by letting

ϑj(z)=z(μ(j)12σ2(j))+12iz2σ2(j)iλ(j)(ϕj(z)1)\vartheta_{j}(z)=z(\mu(j)-\frac{1}{2}\sigma^{2}(j))+\frac{1}{2}\mathrm{i}z^{2}\sigma^{2}(j)-\mathrm{i}\lambda(j)(\phi_{j}(z)-1) (20)

and ϑ~i(z)=ϑj(z)ϑM(z)\tilde{\vartheta}_{i}(z)=\vartheta_{j}(z)-\vartheta_{M}(z), we have

φXT(z)=eiϑM(z)T(𝟏e(Q+idiag(ϑ~1(z),,ϑ~M1(z),0))T𝕀(0))=𝟏e(Q+idiag(ϑ1(z),,ϑM(z)))T𝕀(0),\begin{array}[]{lll}\varphi_{X_{T}}(z)&=&\mathrm{e}^{\mathrm{i}\vartheta_{M}(z)T}\left(\mathbf{1}^{\prime}\cdot\mathrm{e}^{(Q^{\prime}+\mathrm{i}\ \mathrm{diag}(\tilde{\vartheta}_{1}(z),\ldots,\tilde{\vartheta}_{M-1}(z),0))T}\cdot\mathbb{I}(0)\right)\\ \\ &=&\mathbf{1}^{\prime}\cdot\mathrm{e}^{(Q^{\prime}+\mathrm{i}\ \mathrm{diag}(\vartheta_{1}(z),\ldots,\vartheta_{M}(z)))T}\cdot\mathbb{I}(0),\end{array} (21)

where 𝟏=(1,,1)M×1\mathbf{1}=(1,\ldots,1)^{\prime}\in\mathbb{R}^{M\times 1}, 𝕀(0)=(𝕀ω(0)=1,,𝕀ω(0)=M)M×1\mathbb{I}(0)=(\mathbb{I}_{\omega(0)=1},\ldots,\mathbb{I}_{\omega(0)=M})^{\prime}\in\mathbb{R}^{M\times 1} and QQ^{\prime} is the transpose of QQ.


Simple linear constraints on the full parameter set of RSJD dynamic (19) permit to specify different models: from a regime-switching without jumps (the Naik model [20] - RSGBM) to a unique regime jump-diffusion model (JDM), which includes the standard geometrical Brownian motion (GBM).

The evaluation of the characteristic function requires to compute matrix exponentials for which efficient numerical techniques are available ([13]); conversely, the case M=2M=2 can be considered explicitly. The following can be proved (see [21] and the references therein).

Proposition 4.2.

Let y1,2y_{1,2} be the solutions of the quadratic equation y2+(q1+q2iθ)yiθq2=0y^{2}+(q_{1}+q_{2}-\mathrm{i}\theta)y-\mathrm{i}\theta q_{2}=0 and

q1T(θ)=1y1y2(ey1T(y1+q1+q2)ey2T(y2+q1+q2))q2T(θ)=1y1y2(ey1T(y1+q1+q2iθ)ey2T(y2+q1+q2iθ)).\begin{array}[]{lll}\mathrm{q}_{1}^{T}(\theta)&=&\frac{1}{y_{1}-y_{2}}\left(\mathrm{e}^{y_{1}T}(y_{1}+q_{1}+q_{2})-\mathrm{e}^{y_{2}T}(y_{2}+q_{1}+q_{2})\right)\\ \\ \mathrm{q}_{2}^{T}(\theta)&=&\frac{1}{y_{1}-y_{2}}\left(\mathrm{e}^{y_{1}T}(y_{1}+q_{1}+q_{2}-\mathrm{i}\theta)-\mathrm{e}^{y_{2}T}(y_{2}+q_{1}+q_{2}-\mathrm{i}\theta)\right).\end{array}

Then

𝔼t[eiθT1]=𝕀ω(t)=1q1T(θ)+𝕀ω(t)=2q2T(θ)\mathbb{E}_{t}[\mathrm{e}^{\mathrm{i}\theta T_{1}}]=\mathbb{I}_{\omega(t)=1}\mathrm{q}_{1}^{T}(\theta)+\mathbb{I}_{\omega(t)=2}\mathrm{q}_{2}^{T}(\theta)

and therefore

φXT(z)=eiϑ2(z)T(𝕀ω(t)=1q1T(θ(z))+𝕀ω(t)=2q2T(θ(z)))\varphi_{X_{T}}(z)=\mathrm{e}^{\mathrm{i}\vartheta_{2}(z)T}\left(\mathbb{I}_{\omega(t)=1}\mathrm{q}_{1}^{T}(\theta(z))+\mathbb{I}_{\omega(t)=2}\mathrm{q}_{2}^{T}(\theta(z))\right)

\Box

Numerical tests are reported in Figs (5), (6) for a two-state model. In order to single out the effects of the switching parameters, we firstly consider the RSGMB model, thus discarding the jump component (λ1=λ2=0\lambda_{1}=\lambda_{2}=0) - Fig (5); then we fix the diffusive dynamic (μ1=μ2=μ\mu_{1}=\mu_{2}=\mu, σ1=σ2=σ\sigma_{1}=\sigma_{2}=\sigma) and vary the jump parameters according to the switching model - Fig (6).

Refer to caption
Figure 5: VaR (triangle) and CVaR (circle) for varying parameters of the RSGBM model with V0=100V_{0}=100, r=0r=0, T=1/12T=1/12. In this model we consider a varying gap for the drift and volatility, μ2=0.5+Δμ\mu_{2}=0.5+\Delta\mu, σ2=0.1+Δσ\sigma_{2}=0.1+\Delta\sigma; when fixed the parameters were set to μ1=0\mu_{1}=0, μ2=0.1\mu_{2}=-0.1, σ1=0.1\sigma_{1}=0.1, σ2=0.3\sigma_{2}=0.3, q1=0.5q_{1}=0.5, q2=0.5q_{2}=0.5.
Refer to caption
Figure 6: VaR (triangle) and CVaR (circle) for varying parameters of the RSJD model with V0=100V_{0}=100, r=0r=0, T=1/12T=1/12. In this model we consider a fixed drift and volatility, μ=0\mu=0, σ=0.25\sigma=0.25 and vary the jump parameters with λ1=1\lambda_{1}=1, a1=0.1a_{1}=0.1, b1=0.1b_{1}=0.1, and q1=0.5q_{1}=0.5, q2=0.5q_{2}=0.5.

Heston Stochastic volatility model.

Heston model [12] is certainly one of the most famous stochastic volatility dynamic for an asset price: it is defined as

Vt\displaystyle V_{t} =\displaystyle= V0+0tVsμ𝑑s+0tvs𝑑Ws1\displaystyle V_{0}+\int_{0}^{t}V_{s}\mu ds+\int_{0}^{t}\sqrt{v_{s}}dW^{1}_{s} (22)
vt\displaystyle v_{t} =\displaystyle= v0+0tκ(θvs)𝑑s+σ0tvs(ρdWs1+1ρ2dWs2).\displaystyle v_{0}+\int_{0}^{t}\kappa(\theta-v_{s})ds+\sigma\int_{0}^{t}\sqrt{v_{s}}(\rho dW^{1}_{s}+\sqrt{1-\rho^{2}}dW^{2}_{s}). (23)

where V0>0V_{0}>0, μ\mu is the rate of return and vtv_{t}, the volatility process, satisfies a CIR mean reverting dynamic with parameters κ\kappa (the mean reversion speed), θ\theta (the long term volatility) and σ\sigma (the vol-vol). Furthermore, the two process are ρ\rho-correlated, with 1<ρ0-1<\rho\leq 0. The Feller condition 2κθ>σ22\kappa\theta>\sigma^{2} ensures the strict positivity of vtv_{t}. The (generalized) characteristic function of the log-price is

ϕXT(z)=eC(T,z)+D(T,z)v0+iz(μ+log(V0))\phi_{X_{T}}(z)=\mathrm{e}^{C(T,z)+D(T,z)v_{0}+iz(\mu+\log(V_{0}))}

where

C(T,z)\displaystyle C(T,z) =\displaystyle= κθσ2((κρσzi+d(z))T2log(c(z)ed(z)T1c(z)1))\displaystyle\frac{\kappa\theta}{\sigma^{2}}\left((\kappa-\rho\sigma z\mathrm{i}+d(z))T-2\log\left(\frac{c(z)\mathrm{e}^{d(z)T}-1}{c(z)-1}\right)\right)
D(T,z)\displaystyle D(T,z) =\displaystyle= κρσzi+d(z)σ2(ed(z)T1c(z)ed(z)T1)\displaystyle\frac{\kappa-\rho\sigma z\mathrm{i}+d(z)}{\sigma^{2}}\left(\frac{\mathrm{e}^{d(z)T}-1}{c(z)\mathrm{e}^{d(z)T}-1}\right)

and

c(z)=κρσzi+d(z)κρσzid(z),d(z)=(ρσziκ)2+iσ2z+σ2z2.c(z)=\frac{\kappa-\rho\sigma z\mathrm{i}+d(z)}{\kappa-\rho\sigma z\mathrm{i}-d(z)},\ \ \ \ d(z)=\sqrt{(\rho\sigma z\mathrm{i}-\kappa)^{2}+\mathrm{i}\sigma^{2}z+\sigma^{2}z^{2}}.

For the numerical implementation, we used the procedure outlined in [15]. The corresponding results are plotted in Fig. (7).

Refer to caption
Figure 7: VaR (triangle) and CVaR (circle) for varying parameters of the Heston model with V0=100V_{0}=100, r=0r=0, T=1/12T=1/12, μ=0\mu=0, θ=0.1\theta=0.1, σ=0.3\sigma=0.3, κ=1\kappa=1 and ρ=0.9\rho=-0.9.

5 Conclusions

In this paper we consider the problem of efficiently computing CVaR and VaR of an arbitrary loss function, characterized by having a computable generalized characteristic function. We compare different numerical procedures to compute the risk measures based on the integral representation of the distribution function and the stop/loss expectation of the target loss random variable. In particular we exploit the characterization of CVaR and VaR as solution of an univariate minimization problem, as obtained by Rockafellar and Uryasev in [23]. The function to be minimized admits an integral representation as an inverse Fourier transform, under some hypothesis on the finiteness of the exponential moments of the loss distribution. Fast and reliable numerical procedures can be designed to compute the quantities of interest based on the fast Fourier transform algorithm. We finally notice that the basic characterization by Rockafellar and Uryasev is more general, since decision variables can be considered in the minimization problem: our procedure can therefore be included as part of more general optimization problem, like portfolio risk management, where the computation of VaR and CVaR plays a central role as objective functionals and/or constraints to be satisfied.

References

  • [1] C. Acerbi and D. Tasche (2002), On the coherence of expected shortfall, Journal of Banking and Finance, vol. 26, pp. 1487 - 1503.
  • [2] P. Artzner, F. Delbaen, J. Eber, and D. Heath, (1999). Coherent Measures of Risk, Mathematical Finance, 9(3), pp. 203-228.
  • [3] T. Bjork, (2004). Arbitrage theory in continuous time, Oxford University Press, USA.
  • [4] G. Bormetti, V. Cazzola, G. Livan, G. Montagna and O. Nicrosini (2010), A generalized Fourier transform approach to risk measures, Journal of Statistical Mechanics: Theory and Experiments, P01005, Online at stacks.iop.org/JSTAT/2010/P01005.
  • [5] P. Carr and D. B. Madan (1999), Option valuation using the Fast Fourier Transform, Journal of Computational Finance, 2 pp. 61–73.
  • [6] R. Cont and P. Tankov, Financial modelling with Jump Processes, Chapman & Hall, CRC Press, (2003).
  • [7] K. Chourdakis (2004), Non-Affine option pricing, The Journal of derivatives, pp. 10-25.
  • [8] K. Chourdakis (2005), Option pricing using fractional FFT, Journal of Computational Finance 8(2), pp. 1-18.
  • [9] D. Duffie and J. Pan (2001), Analytical Value-at-Risk with jumps and credit risk, Finance and Stochastics, vol. 5 (2), pp. 155-180.
  • [10] D. Dufresne, J. Garrido and M. Morales (2009), Fourier inversion formulas in option pricing and insurance,Methodology and Computing in Applied Probabability, 11 359–383.
  • [11] H. Föllmer and A. Schied (2011), Stochastic Finance: An Introduction in Discrete Time, Walter deGruyter, Berlin.
  • [12] S. Heston (1993), Closed-Form Solution for Options with Stochastic Volatility with Applications to Bond and Currency Options”, Rev. Fin. Studies, vol. 6, pp. 327-343.
  • [13] N. J. Higham (2009), The scaling and Squaring Method for the Matrix Exponential Revisited, SIAM Review, 51, pp. 747–764.
  • [14] W. Hürlimann (2002) Conditional value-at-risk bounds for compound Poisson risks and a normal approximation, Journal of Applied Mathematics, 3(3), pp. 141 - 154.
  • [15] C. Kahl and P.Jäckel (2005), Not-so-complex logarithms in the Heston model, Wilmott, September 2005, pp. 94-103.
  • [16] Y. S. Kim, S. T. Rachev, M. L. Bianchi, and F. J. Fabozzi (2010), Computing VaR and AVaR In Infinitely Divisible Distributions, Probability and Mathematical Statistics, 30 (2), 223-245.
  • [17] O. Le Courtois and C. P. Walter, (2009), A Study on Value-at-Risk and Lévy Processes, available at SSRN: http://ssrn.com/abstract=1598360 or http://dx.doi.org/10.2139/ssrn.1598360.
  • [18] R. W. Lee (2004), Option pricing by transform methods: extensions, unifications and error control, Journal of Computational Finance, 7, pp. 51–86.
  • [19] D. B. Madan and E. Seneta (1990). The variance gamma (VG) model for share market retums. Journal of Business, 63:511-24.
  • [20] V. Naik (1993), Option valuation and hedging strategies with jumps in the volatility of asset returns, Journal of Finance 48, pp. 1969-1984.
  • [21] A. Ramponi (2012), On Fourier Transform Methods for Regime-Switching Jump-Diffusions and the pricing of Forward Starting Options, International Journal of Theoretical and Appplied Finance, Vol. 15, n.05.
  • [22] R. T. Rockafellar and S. Uryasev (2000), Optimization of conditional value-at-risk, The Journal of Risk, 2, no. 3, pp. 21 - 41.
  • [23] R. T. Rockafellar, S. Uryasev (2002), Conditional value-at-risk for general loss distributions, Journal of Banking and Finance 26, pp. 1443 - 1471.
  • [24] M. Scherer, S. T. Rachev, Y. S. Kim, F. J. Fabozzi (2009), A FFT-based approximation of tempered stable and tempered infinitely divisible distributions. Preprint.