Feynman–Kac formula explained

The Feynman–Kac formula, named after Richard Feynman and Mark Kac, establishes a link between parabolic partial differential equations and stochastic processes. In 1947, when Kac and Feynman were both faculty members at Cornell University, Kac attended a presentation of Feynman's and remarked that the two of them were working on the same thing from different directions.[1] The Feynman–Kac formula resulted, which proves rigorously the real-valued case of Feynman's path integrals. The complex case, which occurs when a particle's spin is included, is still an open question.[2]

It offers a method of solving certain partial differential equations by simulating random paths of a stochastic process. Conversely, an important class of expectations of random processes can be computed by deterministic methods.

Theorem

Consider the partial differential equation\frac(x,t) + \mu(x,t) \frac(x,t) + \tfrac \sigma^2(x,t) \frac(x,t) -V(x,t) u(x,t) + f(x,t) = 0,defined for all

x\inR

and

t\in[0,T]

, subject to the terminal conditionu(x,T)=\psi(x),where

\mu,\sigma,\psi,V,f

are known functions,

T

is a parameter, and

u:R x [0,T]\toR

is the unknown. Then the Feynman–Kac formula expresses

u(x,t)

as a conditional expectation under the probability measure

Q

where

X

is an Itô process satisfying\mathrmX_t = \mu(X,t)\,\mathrmt + \sigma(X,t)\,\mathrm W^Q_t,and
Q
W
t
a Wiener process (also called Brownian motion) under

Q

.

Intuitive interpretation

Suppose that the position

Xt

of a particle evolves according to the diffusion processdX_t = \mu(X,t)\,\mathrmt + \sigma(X,t)\,\mathrm W^Q_t.Let the particle incur "cost" at a rate of

f(Xs,s)

at location

Xs

at time

s

. Let it incur a final cost at

\psi(XT)

.

Also, allow the particle to decay. If the particle is at location

Xs

at time

s

, then it decays with rate

V(Xs,s)

. After the particle has decayed, all future cost is zero.

Then

u(x,t)

is the expected cost-to-go, if the particle starts at

(t,Xt=x).

Partial proof

A proof that the above formula is a solution of the differential equation is long, difficult and not presented here. It is however reasonably straightforward to show that, if a solution exists, it must have the above form. The proof of that lesser result is as follows:

Let

u(x,t)

be the solution to the above partial differential equation. Applying the product rule for Itô processes to the process Y(s) = \exp\left(-\int_t^s V(X_\tau,\tau)\, d\tau\right)u(X_s,s) +\int_t^s \exp\left(-\int_t^r V(X_\tau,\tau)\, d\tau\right)f(X_r,r) \, drone gets:\begindY_s = & d\left(\exp\left(-\int_t^s V(X_\tau,\tau)\, d\tau\right)\right) u(X_s,s) +\exp\left(-\int_t^s V(X_\tau,\tau)\, d\tau\right)\,du(X_s,s) \\[6pt]& + d\left(\exp\left(-\int_t^s V(X_\tau,\tau)\, d\tau\right)\right)du(X_s,s) + d\left(\int_t^s \exp\left(-\int_t^r V(X_\tau,\tau)\, d\tau\right) f(X_r,r) \, dr\right)\end

Sinced\left(\exp\left(- \int_t^s V(X_\tau,\tau)\, d\tau\right)\right) = -V(X_s,s) \exp\left(-\int_t^s V(X_\tau,\tau)\, d\tau\right) \,ds, the third term is

O(dtdu)

and can be dropped. We also have that d\left(\int_t^s \exp\left(- \int_t^r V(X_\tau,\tau)\, d\tau\right)f(X_r,r)dr\right) =\exp\left(-\int_t^s V(X_\tau,\tau)\, d\tau\right) f(X_s,s) ds.

Applying Itô's lemma to

du(Xs,s)

, it follows that\begindY_s = & \exp\left(-\int_t^s V(X_\tau,\tau)\, d\tau\right)\,\left(-V(X_s,s) u(X_s,s) +f(X_s,s)+\mu(X_s,s)\frac+\frac+\tfrac\sigma^2(X_s,s)\frac\right)\,ds \\[6pt]& + \exp\left(- \int_t^s V(X_\tau,\tau)\, d\tau\right)\sigma(X,s)\frac\,dW.\end

The first term contains, in parentheses, the above partial differential equation and is therefore zero. What remains is:dY_s=\exp\left(-\int_t^s V(X_\tau,\tau)\, d\tau\right)\sigma(X,s)\frac\,dW.

Integrating this equation from

t

to

T

, one concludes that:Y(T) - Y(t) = \int_t^T\exp\left(-\int_t^s V(X_\tau,\tau)\, d\tau\right)\sigma(X,s)\frac\,dW.

Upon taking expectations, conditioned on

Xt=x

, and observing that the right side is an Itô integral, which has expectation zero,[3] it follows that:E[Y(T)\mid X_t=x] = E[Y(t)\mid X_t=x] = u(x,t).

The desired result is obtained by observing that:E[Y(T)\mid X_t=x] =E \left [\exp\left(-\int_t^T V(X_\tau,\tau)\, d\tau\right) u(X_T,T) + \int_t^T \exp\left(-\int_t^r V(X_\tau,\tau)\, d\tau\right)f(X_r,r)\,dr \,\Bigg|\, X_t=x \right ]and finally u(x,t) = E \left [\exp\left(-\int_t^T V(X_\tau,\tau)\, d\tau\right) \psi(X_T) + \int_t^T \exp\left(-\int_t^s V(X_\tau,\tau)\,d\tau\right) f(X_s,s)\,ds \,\Bigg|\, X_t=x \right ]

Remarks

f(x,t)

.

u:RN x [0,T]\toR

becomes:[5] \frac + \sum_^N \mu_i(x,t)\frac + \frac \sum_^N \sum_^N\gamma_(x,t) \frac -r(x,t)\,u = f(x,t), where, \gamma_(x,t) = \sum_^N \sigma_(x,t)\sigma_(x,t), i.e.

\gamma=\sigma\sigmaT

, where

\sigmaT

denotes the transpose of

\sigma

.

A

be the infinitesimal generator of the diffusion process,\frac + A u -r(x,t)\,u = f(x,t),

\exp\left(-\int_0^t V(x(\tau))\, d\tau\right) in the case where x(τ) is some realization of a diffusion process starting at . The Feynman–Kac formula says that this expectation is equivalent to the integral of a solution to a diffusion equation. Specifically, under the conditions that

uV(x)\geq0

, E\left[\exp\left(- u \int_0^t V(x(\tau))\, d\tau\right) \right] = \int_^ w(x,t)\, dx where and \frac = \frac \frac - u V(x) w.The Feynman–Kac formula can also be interpreted as a method for evaluating functional integrals of a certain form. IfI = \int f(x(0)) \exp\left(-u\int_0^t V(x(t))\, dt\right) g(x(t))\, Dx where the integral is taken over all random walks, then I = \int w(x,t) g(x)\, dx where is a solution to the parabolic partial differential equation \frac = \frac \frac - u V(x) w with initial condition .

Applications

Finance

In quantitative finance, the Feynman–Kac formula is used to efficiently calculate solutions to the Black–Scholes equation to price options on stocks[7] and zero-coupon bond prices in affine term structure models.

For example, consider a stock price

St

undergoing geometric Brownian motiondS_t = (r_t dt + \sigma_t dW_t) S_twhere

rt

is the risk-free interest rate and

\sigmat

is the volatility. Equivalently, by Itô's lemma,d\ln S_t = \left(r_t - \tfrac 1 2 \sigma_t^2\right)dt + \sigma_t \, dW_t.Now consider a European call option on an

St

expiring at time

T

with strike

K

. At expiry, it is worth

(XT-K)+.

Then, the risk-neutral price of the option, at time

t

and stock price

x

, isu(x, t) = E\left[e^{-\int_t^T r_s ds} (S_T - K)^+ | \ln S_t = \ln x \right].Plugging into the Feynman–Kac formula, we obtain the Black–Scholes equation:\begin\partial_t u + Au - r_t u = 0 \\u(x, T) = (x-K)^+\endwhereA = (r_t -\sigma_t^2/2)\partial_ + \frac 12 \sigma_t^2 \partial_^2 = r_t x\partial_x + \frac 1 2 \sigma_t^2 x^2 \partial_^2. More generally, consider an option expiring at time

T

with payoff

g(ST)

. The same calculation shows that its price

u(x,t)

satisfies\begin\partial_t u + Au - r_t u = 0 \\u(x, T) = g(x).\endSome other options like the American option do not have a fixed expiry. Some options have value at expiry determined by the past stock prices. For example, an average option has a payoff that is not determined by the underlying price at expiry but by the average underlying price over some predetermined period of time. For these, the Feynman–Kac formula does not directly apply.

Quantum mechanics

In quantum chemistry, it is used to solve the Schrödinger equation with the Pure Diffusion Monte Carlo method.[8]

See also

Further reading

Notes and References

  1. Book: Kac, Mark . Enigmas of Chance: An Autobiography . University of California Press . 1987 . 0-520-05986-7 . 115–16 .
  2. Book: Glimm . James . Jaffe . Arthur . Quantum Physics: A Functional Integral Point of View . 1987 . Springer . New York, NY . 978-0-387-96476-8 . 43–44 . 10.1007/978-1-4612-4728-9 . 2 . 13 April 2021.
  3. Book: Øksendal . Bernt . Stochastic Differential Equations. An Introduction with Applications . 2003 . Springer-Verlag . 3540047581 . 30 . 6th . en . Theorem 3.2.1.(iii).
  4. Web site: PDE for Finance.
  5. See Book: Pham, Huyên. Continuous-time stochastic control and optimisation with financial applications . 2009. Springer-Verlag . 978-3-642-10044-4 .
  6. Kac. Mark . On Distributions of Certain Wiener Functionals . Transactions of the American Mathematical Society. Mark Kac . 65 . 1 . 1–13. 1990512. 1949. 10.2307/1990512. free. This paper is reprinted in Book: Mark Kac: Probability, Number Theory, and Statistical Physics, Selected Papers . K. . Baclawski . M. D. . Donsker . The MIT Press . Cambridge, Massachusetts . 1979 . 268–280 . 0-262-11067-9 .
  7. Book: Paolo Brandimarte . Numerical Methods in Finance and Economics: A MATLAB-Based Introduction. 6 June 2013. John Wiley & Sons. 978-1-118-62557-6. Chapter 1. Motivation.
  8. Caffarel . Michel . Claverie . Pierre . Development of a pure diffusion quantum Monte Carlo method using a full generalized Feynman–Kac formula. I. Formalism . The Journal of Chemical Physics . 15 January 1988 . 88 . 2 . 1088–1099 . 10.1063/1.454227 . 1988JChPh..88.1088C .