Exponential tilting

From HandWiki
Short description: Monte Carlo distribution shifting technique

Exponential Tilting (ET), Exponential Twisting, or Exponential Change of Measure (ECM) is a distribution shifting technique used in many parts of mathematics. The different exponential tiltings of a random variable X is known as the natural exponential family of X.

Exponential Tilting is used in Monte Carlo Estimation for rare-event simulation, and rejection and importance sampling in particular. In mathematical finance [1] Exponential Tilting is also known as Esscher tilting (or the Esscher transform), and often combined with indirect Edgeworth approximation and is used in such contexts as insurance futures pricing.[2]

The earliest formalization of Exponential Tilting is often attributed to Esscher[3] with its use in importance sampling being attributed to David Siegmund.[4]

Overview

Given a random variable X with probability distribution , density f, and moment generating function (MGF) MX(θ)=𝔼[eθX]<, the exponentially tilted measure θ is defined as follows:

θ(Xdx)=𝔼[eθX𝕀[Xdx]]MX(θ)=eθxκ(θ)(Xdx),

where κ(θ) is the cumulant generating function (CGF) defined as

κ(θ)=log𝔼[eθX]=logMX(θ).

We call

θ(Xdx)=fθ(x)

the θ-tilted density of X. It satisfies fθ(x)eθxf(x).

The exponential tilting of a random vector X has an analogous definition:

θ(Xdx)=eθTxκ(θ)(Xdx),

where κ(θ)=log𝔼[exp{θTX}].

Example

The exponentially tilted measure in many cases has the same parametric form as that of X. One-dimensional examples include the normal distribution, the exponential distribution, the binomial distribution and the Poisson distribution.

For example, in the case of the normal distribution, N(μ,σ2) the tilted density fθ(x) is the N(μ+θσ2,σ2) density. The table below provides more examples of tilted density.

Original distribution[5][6] θ-Tilted distribution
Gamma(α,β) Gamma(α,βθ)
Binomial(n,p) Binomial(n,peθ1p+peθ)
Poisson(λ) Poisson(λeθ)
Exponential(λ) Exponential(λθ)
𝒩(μ,σ2) 𝒩(μ+θσ2,σ2)
𝒩(μ,Σ) 𝒩(μ+Σθ,Σ)
χ2(κ) Gamma(κ2,212θ)

For some distributions, however, the exponentially tilted distribution does not belong to the same parametric family as f. An example of this is the Pareto distribution with f(x)=α/(1+x)α,x>0, where fθ(x) is well defined for θ<0 but is not a standard distribution. In such examples, the random variable generation may not always be straightforward.[7]

Advantages

In many cases, the tilted distribution belongs to the same parametric family as the original. This is particularly true when the original density belongs to the exponential family of distribution. This simplifies random variable generation during Monte-Carlo simulations. Exponential tilting may still be useful if this is not the case, though normalization must be possible and additional sampling algorithms may be needed.

In addition, there exists a simple relationship between the original and tilted CGF,

κθ(η)=log(𝔼θ[eηX])=κ(θ+η)κ(θ).

We can see this by observing that

Fθ(x)=xexp{θyκ(θ)}f(y)dy.

Thus,

κθ(η)=logeηxdFθ(x)=logeηxeθxκ(θ)dF(x)=log𝔼[e(η+θ)Xκ(θ)]=log(eκ(η+θ)κ(θ))=κ(η+θ)κ(θ).

Clearly, this relationship allows for easy calculation of the CGF of the tilted distribution and thus the distributions moments. Moreover, it results in a simple form of the likelihood ratio. Specifically,

=ddθ=f(x)fθ(x)=eθx+κ(θ).

Properties

  • If κ(η)=logE[exp(ηX)] is the CGF of X, then the CGF of the θ-tilted X is
κθ(η)=κ(θ+η)κ(θ).
This means that the i-th cumulant of the tilted X is κ(i)(θ). In particular, the expectation of the tilted distribution is
Eθ[X]=ddηκθ(η)|η=0=κ(θ).
The variance of the tilted distribution is
Varθ[X]=d2dη2κθ(η)|η=0=κ(θ).
  • Repeated tilting is additive. That is, tilting first by θ1 and then θ2 is the same as tilting once by θ1+θ2.
  • If X is the sum of independent, but not necessarily identical random variables X1,X2,, then the θ-tilted distribution of X is the sum of X1,X2, each θ-tilted individually.
DKL(PPθ)=E[logPPθ]
between the tilted distribution Pθ and the original distribution P of X.
  • Similarly, since Eθ[X]=κ(θ), we have the Kullback-Leibler divergence as
DKL(PθP)=Eθ[logPθP]=θκ(θ)κ(θ).

Applications

Rare-event simulation

The exponential tilting of X, assuming it exists, supplies a family of distributions that can be used as proposal distributions for acceptance-rejection sampling or importance distributions for importance sampling. One common application is sampling from a distribution conditional on a sub-region of the domain, i.e. X|XA. With an appropriate choice of θ, sampling from θ can meaningfully reduce the required amount of sampling or the variance of an estimator.

Saddlepoint approximation

The saddlepoint approximation method is a density approximation methodology often used for the distribution of sums and averages of independent, identically distributed random variables that employs Edgeworth series, but which generally performs better at extreme values. From the definition of the natural exponential family, it follows that

fθ(x¯)=f(x¯)exp{n(θx¯κ(θ))}.

Applying the Edgeworth expansion for fθ(x¯), we have

fθ(x¯)=ψ(z)(Var[X¯])1/2{1+ρ3(θ)h3(z)6+ρ4(θ)h4(z)24},

where ψ(z) is the standard normal density of

z=x¯κx¯(θ)κx¯(θ),
ρn(θ)=κ(n)(θ){κ(θ)n/2},

and hn are the hermite polynomials.

When considering values of x¯ progressively farther from the center of the distribution, |z| and the hn(z) terms become unbounded. However, for each value of x¯, we can choose θ such that

κ(θ)=x¯.

This value of θ is referred to as the saddle-point, and the above expansion is always evaluated at the expectation of the tilted distribution. This choice of θ leads to the final representation of the approximation given by

f(x¯)(n2πκ(θ))1/2exp{n(κ(θ)θx¯)}.[8][9]

Rejection sampling

Using the tilted distribution θ as the proposal, the rejection sampling algorithm prescribes sampling from fθ(x) and accepting with probability

1cexp(θx+κ(θ)),

where

c=supxXddθ(x).

That is, a uniformly distributed random variable pUnif(0,1) is generated, and the sample from fθ(x) is accepted if

p1cexp(θx+κ(θ)).

Importance sampling

Applying the exponentially tilted distribution as the importance distribution yields the equation

𝔼(h(X))=𝔼θ[(X)h(X)],

where

(X)=ddθ

is the likelihood function. So, one samples from fθ to estimate the probability under the importance distribution (dX) and then multiplies it by the likelihood ratio. Moreover, we have the variance given by

Var(X)=𝔼[((X)h(X)2].

Example

Assume independent and identically distributed {Xi} such that κ(θ)<. In order to estimate (X1++Xn>c), we can employ importance sampling by taking

h(X)=𝕀(i=1nXi>c).

The constant c can be rewritten as na for some other constant a. Then,

(i=1nXi>na)=𝔼θa[exp{θai=1nXi+nκ(θa)}𝕀(i=1nXi>na)],

where θa denotes the θ defined by the saddle-point equation

κ(θa)=a.

Stochastic processes

Given the tilting of a normal R.V., it is intuitive that the exponential tilting of Xt, a Brownian motion with drift μ and variance σ2, is a Brownian motion with drift μ+θσ2 and variance σ2. Thus, any Brownian motion with drift under can be thought of as a Brownian motion without drift under θ*. To observe this, consider the process Xt=Bt+μt. f(Xt)=fθ*(Xt)ddθ*=f(Bt)exp{μBT12μ2T}. The likelihood ratio term, exp{μBT12μ2T}, is a martingale and commonly denoted MT. Thus, a Brownian motion with drift process (as well as many other continuous processes adapted to the Brownian filtration) is a θ*-martingale.[10][11]

Stochastic Differential Equations

The above leads to the alternate representation of the stochastic differential equation dX(t)=μ(t)dt+σ(t)dB(t): dXθ(t)=μθ(t)dt+σ(t)dB(t), where μθ(t) = μ(t)+θσ(t). Girsanov's Formula states the likelihood ratio ddθ=exp{0Tμθ(t)μ(t)σ2(t)dB(t)+0T(σ2(t)2)dt}. Therefore, Girsanov's Formula can be used to implement importance sampling for certain SDEs.

Tilting can also be useful for simulating a process X(t) via rejection sampling of the SDE dX(t)=μ(X(t))dt+dB(t). We may focus on the SDE since we know that X(t) can be written 0tdX(t)+X(0). As previously stated, a Brownian motion with drift can be tilted to a Brownian motion without drift. Therefore, we choose proposal=θ*. The likelihood ratio dθ*d(dX(s):0st)= τtexp{μ(X(τ))dX(τ)μ(X(τ))22}dt=exp{0tμ(X(τ))dX(τ)0tμ(X(s))22}dt. This likelihood ratio will be denoted M(t). To ensure this is a true likelihood ratio, it must be shown that 𝔼[M(t)]=1. Assuming this condition holds, it can be shown that fX(t)(y)=fX(t)θ*(y)𝔼θ*[M(t)|X(t)=y]. So, rejection sampling prescribes that one samples from a standard Brownian motion and accept with probability fX(t)(y)fX(t)θ*(y)1c=1c𝔼θ*[M(t)|X(t)=y].

Choice of tilting parameter

Siegmund's algorithm

Assume i.i.d. X's with light tailed distribution and 𝔼[X]>0. In order to estimate ψ(c)=(τ(c)<) where τ(c)=inf{t:i=1tXi>c}, when c is large and hence ψ(c) small, the algorithm uses exponential tilting to derive the importance distribution. The algorithm is used in many aspects, such as sequential tests,[12] G/G/1 queue waiting times, and ψ is used as the probability of ultimate ruin in ruin theory. In this context, it is logical to ensure that θ(τ(c)<)=1. The criterion θ>θ0, where θ0 is s.t. κ(θ0)=0 achieves this. Siegmund's algorithm uses θ=θ*, if it exists, where θ* is defined in the following way: κ(θ*)=0. It has been shown that θ* is the only tilting parameter producing bounded relative error (limsupxVar𝕀A(x)A(x)2<).[13]

Black-Box algorithms

We can only see the input and output of a black box, without knowing its structure. The algorithm is to use only minimal information on its structure. When we generate random numbers, the output may not be within the same common parametric class, such as normal or exponential distributions. An automated way may be used to perform ECM. Let X1,X2,...be i.i.d. r.v.’s with distribution G; for simplicity we assume X0. Define 𝔉n=σ(X1,...,Xn,U1,...,Un), where U1,U2, . . . are independent (0, 1) uniforms. A randomized stopping time for X1,X2, . . . is then a stopping time w.r.t. the filtration {𝔉n}, . . . Let further 𝔊 be a class of distributions G on [0,) with kG=0eθxG(dx)< and define Gθ by dGθdG(x)=eθxkG. We define a black-box algorithm for ECM for the given θ and the given class 𝔊of distributions as a pair of a randomized stopping time τ and an 𝔉τ measurable r.v. Z such that Z is distributed according to Gθ for any G𝔊. Formally, we write this as G(Z<x)=Gθ(x) for all x. In other words, the rules of the game are that the algorithm may use simulated values from G and additional uniforms to produce an r.v. from Gθ.[14]

See also

References

  1. H.U. Gerber & E.S.W. Shiu (1994). "Option pricing by Esscher transforms". Transactions of the Society of Actuaries 46: 99–191. 
  2. Cruz, Marcelo (2015). Fundamental Aspects of Operational Risk and Insurance Analytics. Wiley. pp. 784–796. ISBN 978-1-118-11839-9. 
  3. Butler, Ronald (2007). Saddlepoint Approximations with Applications. Cambridge University Press. pp. 156. ISBN 9780521872508. https://archive.org/details/saddlepointappro00butl. 
  4. Siegmund, D. (1976). "Importance Sampling in the Monte Carlo Study of Sequential Tests". The Annals of Statistics 4 (4): 673–684. doi:10.1214/aos/1176343541. 
  5. Asmussen Soren & Glynn Peter (2007). Stochastic Simulation. Springer. pp. 130. ISBN 978-0-387-30679-7. 
  6. Fuh, Cheng-Der; Teng, Huei-Wen; Wang, Ren-Her (2013). Efficient Importance Sampling for Rare Event Simulation with Applications. https://archive.org/details/arxiv-1302.0583. 
  7. Asmussen, Soren & Glynn, Peter (2007). Stochastic Simulation. Springer. pp. 164–167. ISBN:978-0-387-30679-7
  8. Butler, Ronald (2007). Saddlepoint Approximations with Applications. Cambridge University Press. pp. 156–157. ISBN 9780521872508. https://archive.org/details/saddlepointappro00butl. 
  9. Seeber, G.U.H. (1992). Advances in GLIM and Statistical Modelling. Springer. pp. 195–200. ISBN 978-0-387-97873-4. 
  10. Asmussen Soren & Glynn Peter (2007). Stochastic Simulation. Springer. pp. 407. ISBN 978-0-387-30679-7. 
  11. Steele, J. Michael (2001). Stochastic Calculus and Financial Applications. Springer. pp. 213–229. ISBN 978-1-4419-2862-7. https://archive.org/details/stochasticcalcul00stee. 
  12. D. Siegmund (1985) Sequential Analysis. Springer-Verlag
  13. Asmussen Soren & Glynn Peter, Peter (2007). Stochastic Simulation. Springer. pp. 164–167. ISBN 978-0-387-30679-7. 
  14. Asmussen, Soren & Glynn, Peter (2007). Stochastic Simulation. Springer. pp. 416–420. ISBN:978-0-387-30679-7