Exponential tilting

{{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 {{Cite journal|last=H.U. Gerber & E.S.W. Shiu|date=1994|title=Option pricing by Esscher transforms|journal=Transactions of the Society of Actuaries|volume=46|pages=99–191}} 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.{{Cite book

|title = Fundamental Aspects of Operational Risk and Insurance Analytics|last=Cruz|first=Marcelo|publisher=Wiley|year=2015|isbn=978-1-118-11839-9

|pages= 784–796

}}

The earliest formalization of Exponential Tilting is often attributed to Esscher{{Cite book|title=Saddlepoint Approximations with Applications|url=https://archive.org/details/saddlepointappro00butl|url-access=limited|last=Butler|first=Ronald|publisher=Cambridge University Press|year=2007|isbn=9780521872508|pages=[https://archive.org/details/saddlepointappro00butl/page/n169 156]}} with its use in importance sampling being attributed to David Siegmund.{{cite journal

|last1=Siegmund|first1=D.

|year = 1976

|title = Importance Sampling in the Monte Carlo Study of Sequential Tests

|journal = The Annals of Statistics

|volume = 4 |issue=4

|pages= 673–684

|doi=10.1214/aos/1176343541

|doi-access= free}}

Overview

Given a random variable X with probability distribution \mathbb{P}, density f, and moment generating function (MGF) M_X(\theta) = \mathbb{E}[e^{\theta X}] < \infty, the exponentially tilted measure \mathbb{P}_\theta is defined as follows:

:\mathbb{P}_\theta(X \in dx) = \frac{\mathbb{E}[e^{\theta X}\mathbb{I}[X \in dx]]}{M_X(\theta)}=e^{\theta x - \kappa(\theta)}\mathbb{P}(X\in dx),

where \kappa(\theta) is the cumulant generating function (CGF) defined as

:\kappa(\theta) = \log\mathbb{E}[e^{\theta X}] = \log M_X(\theta).

We call

:\mathbb{P}_\theta(X \in dx)=f_\theta(x)

the \theta-tilted density of X. It satisfies f_\theta(x) \propto e^{\theta x}f(x).

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

:\mathbb{P}_{\theta}(X\in dx) = e^{\theta^T x - \kappa(\theta)}\mathbb{P}(X\in dx),

where \kappa(\theta) = \log \mathbb{E}[\exp\{\theta^T X\}].

=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( \mu, \sigma ^2) the tilted density f_\theta(x) is the N( \mu + \theta \sigma ^2, \sigma ^2) density. The table below provides more examples of tilted densities.

class="wikitable"
Original distribution{{Cite book|last=Asmussen Soren & Glynn Peter|title=Stochastic Simulation|publisher=Springer|year=2007|isbn=978-0-387-30679-7|pages=130}}{{cite journal|last1=Fuh|first1=Cheng-Der|last2=Teng|first2=Huei-Wen|last3=Wang|first3=Ren-Her|title=Efficient Importance Sampling for Rare Event Simulation with Applications|url=https://archive.org/details/arxiv-1302.0583|date=2013|arxiv=1302.0583 }}

! θ-Tilted distribution

\mathrm{Gamma} (\alpha, \beta)

| \mathrm{Gamma}(\alpha, \beta - \theta)

\mathrm{Binomial}(n, p)

| \mathrm{Binomial}\left(n, \frac{pe^{\theta}}{1-p+pe^{\theta}}\right)

\mathrm{Poisson}(\lambda)

|\mathrm{Poisson}(\lambda e^{\theta})

\mathrm{Exponential}(\lambda)

|\mathrm{Exponential}(\lambda - \theta)

\mathcal{N}(\mu, \sigma^2)

|\mathcal{N}(\mu + \theta\sigma^2, \sigma^2)

\mathcal{N}(\mu, \Sigma)

|\mathcal{N}(\mu + \Sigma\theta, \Sigma)

\chi^2(\kappa)

|\mathrm{Gamma}\left(\frac{\kappa}{2}, \frac{2}{1-2\theta}\right)

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) = \alpha /(1 + x) ^\alpha, x > 0, where f_\theta(x) is well defined for \theta < 0 but is not a standard distribution. In such examples, the random variable generation may not always be straightforward.Asmussen, Soren & Glynn, Peter (2007). Stochastic Simulation. Springer. pp. 164–167. {{ISBN|978-0-387-30679-7}}

In statistical mechanics, the energy of a system in equilibrium with a heat bath has the Boltzmann distribution: \mathbb{P}(E\in dE) \propto e^{-\beta E} dE, where \beta is the inverse temperature. Exponential tilting then corresponds to changing the temperature: \mathbb{P}_\theta (E\in dE) \propto e^{-(\beta - \theta) E}dE .

Similarly, the energy and particle number of a system in equilibrium with a heat and particle bath has the grand canonical distribution: \mathbb{P}((N, E)\in (dN, dE) ) \propto e^{\beta \mu N -\beta E} dNdE, where \mu is the chemical potential. Exponential tilting then corresponds to changing both the temperature and the chemical potential.

=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,

:\kappa_\theta(\eta) = \log(\mathbb{E}_\theta[e^{\eta X}]) = \kappa(\theta + \eta) - \kappa(\theta).

We can see this by observing that

:F_\theta(x) = \int\limits_{\infty}^x\exp\{\theta y - \kappa(\theta)\}f(y)dy.

Thus,

:

\begin{align}

\kappa_{\theta}(\eta) &= \log \int e^{\eta x}dF_{\theta}(x) \\

&= \log \int e^{\eta x}e^{\theta x - \kappa(\theta)}dF(x) \\

&= \log\mathbb{E}[e^{(\eta+\theta)X-\kappa(\theta)}] \\

&= \log(e^{\kappa(\eta+\theta)-\kappa(\theta)}) \\

&= \kappa(\eta+\theta)-\kappa(\theta)

\end{align}

.

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,

:\ell = \frac{d\mathbb{P}}{d\mathbb{P}_\theta} = \frac{f(x)}{f_{\theta}(x)} = e^{- \theta x + \kappa(\theta)}.

Properties

  • If \kappa(\eta)=\log \mathrm{E}[\exp(\eta X)] is the CGF of X, then the CGF of the \theta-tilted X is

::\kappa_\theta(\eta) = \kappa(\theta + \eta) - \kappa(\theta).

:This means that the i-th cumulant of the tilted X is \kappa^{(i)}(\theta). In particular, the expectation of the tilted distribution is

::\mathrm{E}_\theta[X]=\tfrac{d}{d\eta}\kappa_\theta(\eta)|_{\eta=0} = \kappa'(\theta).

:The variance of the tilted distribution is

::\mathrm{Var}_\theta[X]=\tfrac{d^2}{d\eta^2}\kappa_\theta(\eta)|_{\eta=0} = \kappa''(\theta).

  • Repeated tilting is additive. That is, tilting first by \theta_1 and then \theta_2 is the same as tilting once by \theta_1+\theta_2.
  • If X is the sum of independent, but not necessarily identical random variables X_1, X_2, \dots, then the \theta-tilted distribution of X is the sum of X_1, X_2, \dots each \theta-tilted individually.

::D_\text{KL}(P \parallel P_\theta)=\mathrm{E} \left[\log\tfrac{P}{P_\theta}\right]

:between the tilted distribution P_\theta and the original distribution P of X.

  • Similarly, since \mathrm{E}_{\theta}[X]=\kappa'(\theta), we have the Kullback-Leibler divergence as

::D_\text{KL}(P_\theta \parallel P) = \mathrm{E}_\theta \left[\log\tfrac{P_\theta}{P} \right] = \theta \kappa'(\theta) - \kappa(\theta).

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|X\in A. With an appropriate choice of \theta, sampling from \mathbb{P}_\theta 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_{\theta}(\bar{x}) = f(\bar{x})\exp\{n(\theta \bar{x} - \kappa(\theta))\}.

Applying the Edgeworth expansion for f_{\theta}(\bar{x}), we have

:f_{\theta}(\bar{x}) = \psi(z)(\mathrm{Var}[\bar{X}])^{-1/2}\left\{1 + \frac{\rho_3(\theta)h_3(z)}{6} + \frac{\rho_4(\theta)h_4(z)}{24}\dots\right\},

where \psi(z) is the standard normal density of

:z = \frac{\bar{x} - \kappa_{\bar{x}} ' (\theta)}{\kappa_{\bar{x}} ''(\theta)},

:\rho_n(\theta) = \kappa^{(n)}(\theta)\{\kappa ''(\theta)^{n/2}\},

and h_n are the hermite polynomials.

When considering values of \bar{x} progressively farther from the center of the distribution, |z|\rightarrow \infty and the h_n(z) terms become unbounded. However, for each value of \bar{x}, we can choose \theta such that

::\kappa '(\theta) = \bar{x}.

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

:f(\bar{x}) \approx \left(\frac{n}{2\pi\kappa ''(\theta)}\right)^{1/2}\exp\{n(\kappa(\theta) - \theta\bar{x})\}.{{Cite book|title=Saddlepoint Approximations with Applications|url=https://archive.org/details/saddlepointappro00butl|url-access=limited|last=Butler|first=Ronald|publisher=Cambridge University Press|year=2007|isbn=9780521872508|pages=[https://archive.org/details/saddlepointappro00butl/page/n169 156]–157}}{{Cite book|title=Advances in GLIM and Statistical Modelling|last=Seeber|first=G.U.H.|publisher=Springer|year=1992|isbn=978-0-387-97873-4 |pages=195–200}}

=Rejection sampling=

Using the tilted distribution \mathbb{P}_{\theta} as the proposal, the rejection sampling algorithm prescribes sampling from f_\theta(x) and accepting with probability

:\frac{1}{c} \exp(-\theta x + \kappa(\theta)),

where

:c = \sup\limits_{x\in X}\frac{d\mathbb{P}}{d\mathbb{P}_{\theta}}(x).

That is, a uniformly distributed random variable p \sim \mbox{Unif}(0,1) is generated, and the sample from f_\theta(x) is accepted if

:p \leq \frac{1}{c} \exp(-\theta x + \kappa(\theta)).

=Importance sampling=

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

:\mathbb{E}(h(X)) = \mathbb{E}_{\theta}[\ell(X)h(X)],

where

:\ell(X) = \frac{d\mathbb{P}}{d\mathbb{P}_{\theta}}

is the likelihood function. So, one samples from f_{\theta} to estimate the probability under the importance distribution \mathbb{P}(dX) and then multiplies it by the likelihood ratio. Moreover, we have the variance given by

:\mbox{Var}(X) = \mathbb{E}[(\ell(X)h(X)^2].

==Example==

Assume independent and identically distributed \{X_i\} such that \kappa(\theta) < \infty. In order to estimate \mathbb{P}(X_1 + \cdots + X_n > c), we can employ importance sampling by taking

:h(X) = \mathbb{I}(\sum_{i = 1}^n X_i > c).

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

:\mathbb{P}(\sum_{i = 1}^n X_i > na) = \mathbb{E}_{\theta_a} \left[\exp\{-\theta_a\sum_{i = 1}^n X_i + n\kappa(\theta_a)\}\mathbb{I}(\sum_{i = 1}^n X_i > na) \right],

where \theta_a denotes the \theta defined by the saddle-point equation

:\kappa '(\theta_a) = a.

=Stochastic processes=

Given the tilting of a normal R.V., it is intuitive that the exponential tilting of X_t, a Brownian motion with drift \mu and variance \sigma^2, is a Brownian motion with drift \mu + \theta\sigma^2 and variance \sigma^2. Thus, any Brownian motion with drift under \mathbb{P} can be thought of as a Brownian motion without drift under \mathbb{P}_{\theta^*}. To observe this, consider the process X_t = B_t + \mu_t. f(X_t) = f_{\theta^*}(X_t)\frac{d\mathbb{P}}{d\mathbb{P}_{\theta^*}} = f(B_t)\exp\{\mu B_T - \frac{1}{2}\mu^2T\}. The likelihood ratio term, \exp\{\mu B_{T} - \frac{1}{2}\mu^2 T\}, is a martingale and commonly denoted M_T. Thus, a Brownian motion with drift process (as well as many other continuous processes adapted to the Brownian filtration) is a \mathbb{P}_{\theta^*}-martingale.{{Cite book|last=Asmussen Soren & Glynn Peter|title=Stochastic Simulation|publisher=Springer|year=2007|isbn=978-0-387-30679-7|pages=407}}{{Cite book|title=Stochastic Calculus and Financial Applications|url=https://archive.org/details/stochasticcalcul00stee|url-access=limited|last=Steele|first=J. Michael|publisher=Springer|year=2001|isbn=978-1-4419-2862-7 |pages=[https://archive.org/details/stochasticcalcul00stee/page/n224 213]–229}}

==Stochastic Differential Equations==

The above leads to the alternate representation of the stochastic differential equation dX(t) = \mu(t)dt + \sigma(t) dB(t): dX_{\theta}(t) = \mu_{\theta}(t) dt + \sigma(t) dB(t), where \mu_{\theta}(t) = \mu(t) + \theta\sigma(t). Girsanov's Formula states the likelihood ratio \frac{d\mathbb{P}}{d\mathbb{P}_{\theta}} = \exp\{-\int\limits_0^T\frac{\mu_{\theta}(t) - \mu(t)}{\sigma^2(t)}dB(t) + \int\limits_0^T(\frac{\sigma^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) = \mu(X(t))dt+ dB(t). We may focus on the SDE since we know that X(t) can be written \int\limits_0^t dX(t) + X(0). As previously stated, a Brownian motion with drift can be tilted to a Brownian motion without drift. Therefore, we choose \mathbb{P}_{proposal}=\mathbb{P}_{\theta^*}. The likelihood ratio \frac{d\mathbb{P}_{\theta^*}}{d\mathbb{P}}(dX(s): 0 \leq s \leq t) =

\prod\limits_{\tau\geq t}\exp\{\mu(X(\tau))dX(\tau) - \frac{\mu(X(\tau))^2}{2}\}dt = \exp\{\int\limits_0^t\mu(X(\tau))dX(\tau) - \int\limits_0^t\frac{\mu(X(s))^2}{2}\}dt. This likelihood ratio will be denoted M(t). To ensure this is a true likelihood ratio, it must be shown that \mathbb{E}[M(t)] = 1. Assuming this condition holds, it can be shown that f_{X(t)}(y) = f_{X(t)}^{\theta^*}(y)\mathbb{E}_{\theta ^*}[M(t)|X(t) = y]. So, rejection sampling prescribes that one samples from a standard Brownian motion and accept with probability \frac{f_{X(t)}(y)}{f_{X(t)}^{\theta ^*}(y)}\frac{1}{c} = \frac{1}{c}\mathbb{E}_{\theta ^*}[M(t)|X(t) = y].

Choice of tilting parameter

=Siegmund's algorithm=

Assume i.i.d. X's with light tailed distribution and \mathbb{E}[X] > 0. In order to estimate \psi(c) = \mathbb{P}(\tau(c) < \infty) where \tau(c) = \inf\{t:\sum\limits_{i=1}^t X_i> c\}, when c is large and hence \psi(c) small, the algorithm uses exponential tilting to derive the importance distribution. The algorithm is used in many aspects, such as sequential tests,D. Siegmund (1985) Sequential Analysis. Springer-Verlag G/G/1 queue waiting times, and \psi is used as the probability of ultimate ruin in ruin theory. In this context, it is logical to ensure that \mathbb{P}_\theta(\tau(c) < \infty) = 1. The criterion \theta > \theta_0, where \theta_0 is s.t. \kappa'(\theta_0) = 0 achieves this. Siegmund's algorithm uses \theta = \theta^*, if it exists, where \theta^* is defined in the following way:

\kappa(\theta^*) = 0.

It has been shown that \theta^* is the only tilting parameter producing bounded relative error (\underset{x \rightarrow \infty}{\lim\sup}\frac{Var\mathbb{I}_{A(x)}}{\mathbb{P}A(x)^2} < \infty).{{Cite book|last=Asmussen Soren & Glynn Peter|first=Peter|title=Stochastic Simulation|publisher=Springer|year=2007|isbn=978-0-387-30679-7|pages=164–167}}

=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 X_1, X_2,...be i.i.d. r.v.’s with distribution G; for simplicity we assume X\geq 0. Define \mathfrak{F}_n = \sigma(X_1,...,X_n,U_1,..., U_n) , where U_1, U_2, . . . are independent (0, 1) uniforms. A randomized stopping time for X_1, X_2, . . . is then a stopping time w.r.t. the filtration \{\mathfrak{F}_n\}, . . . Let further \mathfrak{G} be a class of distributions G on [0, \infty) with k_G = \int_0^\infty e^{\theta x}G(dx) < \infty and define G_\theta by \frac{dG_\theta}{dG(x)} = e^{\theta x - k_G}. We define a black-box algorithm for ECM for the given \theta and the given class \mathfrak{G}of distributions as a pair of a randomized stopping time \tau and an \mathfrak{F}_\tau- measurable r.v. Z such that Z is distributed according to G_\theta for any G \in \mathfrak{G}. Formally, we write this as \mathbb{P}_G (Z 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_\theta .Asmussen, Soren & Glynn, Peter (2007). Stochastic Simulation. Springer. pp. 416–420. {{ISBN|978-0-387-30679-7}}

See also

References