# Local time (mathematics)

In the mathematical theory of stochastic processes, local time is a stochastic process associated with semimartingale processes such as Brownian motion, that characterizes the amount of time a particle has spent at a given level. Local time appears in various stochastic integration formulas, such as Tanaka's formula, if the integrand is not sufficiently smooth. It is also studied in statistical mechanics in the context of random fields.

## Formal definition

For a continuous real-valued semimartingale $(B_{s})_{s\geq 0}$ , the local time of $B$ at the point $x$ is the stochastic process which is informally defined by

$L^{x}(t)=\int _{0}^{t}\delta (x-B_{s})\,d[B]_{s},$ where $\delta$ is the Dirac delta function and $[B]$ is the quadratic variation. It is a notion invented by Paul Lévy. The basic idea is that $L^{x}(t)$ is an (appropriately rescaled and time-parametrized) measure of how much time $B_{s}$ has spent at $x$ up to time $t$ . More rigorously, it may be written as the almost sure limit

$L^{x}(t)=\lim _{\varepsilon \downarrow 0}{\frac {1}{2\varepsilon }}\int _{0}^{t}1_{\{x-\varepsilon which may always be shown to exist. Note that in the special case of Brownian motion (or more generally a real-valued diffusion of the form $dB=b(t,B)dt+dW$ where $W$ is a Brownian motion), the term $d[B]_{s}$ simply reduces to $ds$ , which explains why it is called the local time of $B$ at $x$ . For a discrete state-space process $(X_{s})_{s\geq 0}$ , the local time can be expressed more simply as

$L^{x}(t)=\int _{0}^{t}1_{\{x\}}(X_{s})\,ds.$ ## Tanaka's formula

Tanaka's formula also provides a definition of local time for an arbitrary continuous semimartingale $(X_{s})_{s\geq 0}$ on $\mathbb {R} :$ $L^{x}(t)=|X_{t}-x|-|X_{0}-x|-\int _{0}^{t}\left(1_{(0,\infty )}(X_{s}-x)-1_{(-\infty ,0]}(X_{s}-x)\right)\,dX_{s},\qquad t\geq 0.$ A more general form was proven independently by Meyer and Wang; the formula extends Itô's lemma for twice differentiable functions to a more general class of functions. If $F:\mathbb {R} \rightarrow \mathbb {R}$ is absolutely continuous with derivative $F',$ which is of bounded variation, then

$F(X_{t})=F(X_{0})+\int _{0}^{t}F'_{-}(X_{s})\,dX_{s}+{\frac {1}{2}}\int _{-\infty }^{\infty }L^{x}(t)\,dF''(x),$ where $F'_{-}$ is the left derivative.

If $X$ is a Brownian motion, then for any $\alpha \in (0,1/2)$ the field of local times $L=(L^{x}(t))_{x\in \mathbb {R} ,t\geq 0}$ has a modification which is a.s. Hölder continuous in $x$ with exponent $\alpha$ , uniformly for bounded $x$ and $t$ . In general, $L$ has a modification that is a.s. continuous in $t$ and càdlàg in $x$ .

Tanaka's formula provides the explicit Doob–Meyer decomposition for the one-dimensional reflecting Brownian motion, $(|B_{s}|)_{s\geq 0}$ .

## Ray–Knight theorems

The field of local times $L_{t}=(L_{t}^{x})_{x\in E}$ associated to a stochastic process on a space $E$ is a well studied topic in the area of random fields. Ray–Knight type theorems relate the field Lt to an associated Gaussian process.

In general Ray–Knight type theorems of the first kind consider the field Lt at a hitting time of the underlying process, whilst theorems of the second kind are in terms of a stopping time at which the field of local times first exceeds a given value.

### First Ray–Knight theorem

Let (Bt)t ≥ 0 be a one-dimensional Brownian motion started from B0 = a > 0, and (Wt)t≥0 be a standard two-dimensional Brownian motion W0 = 0 ∈ R2. Define the stopping time at which B first hits the origin, $T=\inf\{t\geq 0\colon B_{t}=0\}$ . Ray and Knight (independently) showed that

$\left\{L^{x}(T)\colon x\in [0,a]\right\}{\stackrel {\mathcal {D}}{=}}\left\{|W_{x}|^{2}\colon x\in [0,a]\right\}\,$ (1)

where (Lt)t ≥ 0 is the field of local times of (Bt)t ≥ 0, and equality is in distribution on C[0, a]. The process |Wx|2 is known as the squared Bessel process.

### Second Ray–Knight theorem

Let (Bt)t ≥ 0 be a standard one-dimensional Brownian motion B0 = 0 ∈ R, and let (Lt)t ≥ 0 be the associated field of local times. Let Ta be the first time at which the local time at zero exceeds a > 0

$T_{a}=\inf\{t\geq 0\colon L_{t}^{0}>a\}.$ Let (Wt)t ≥ 0 be an independent one-dimensional Brownian motion started from W0 = 0, then

$\left\{L_{T_{a}}^{x}+W_{x}^{2}\colon x\geq 0\right\}{\stackrel {\mathcal {D}}{=}}\left\{(W_{x}+{\sqrt {a}})^{2}\colon x\geq 0\right\}.\,$ (2)

Equivalently, the process $(L_{T_{a}}^{x})_{x\geq 0}$ (which is a process in the spatial variable $x$ ) is equal in distribution to the square of a 0-dimensional Bessel process, and as such is Markovian.

### Generalized Ray–Knight theorems

Results of Ray–Knight type for more general stochastic processes have been intensively studied, and analogue statements of both (1) and (2) are known for strongly symmetric Markov processes.