A few days ago, a student asked the following question:

Consider a bounded domain and a Brownian motion conditioned to stay inside . How does it look like ? What is the invariant distribution ?

This is very simple, and surprisingly interesting. This involves the first eigenfunction of the Laplacian on . To make everything simple, and because this does not change anything, it suffices to study the situation where . In other words, what does a real Brownian motion conditioned to stay inside the segment look like.

** Discretisation **

One could directly do the computations in a continuous setting but, as it is often the case, it is simpler to consider the usual random walk discretisation of a Brownian motion. For this purpose, consider a time discretisation and a standard random walk with increment : with probability the random walk goes up and with probability it goes down . For clarity, assume that there exists an integer such that . Suppose as well that it is conditioned on the event for . Later, we will consider the limiting case and , in this order, to recover the Brownian motion case.

** Conditioning **

First, let us compute the probability transitions of the random walk conditioned on the event for . For clarity, let us denote the conditioned random walk by . This is a Doob h-transform, and the resulting process is a non-homogenous Markov chain. In this simple case the computations are straightforward. The conditioned Markov chain has transition probabilities given by with where . One can compute the probability that the conditioned Markov chain follows a given trajectory of ,

where is the transition kernel of the unconditioned Markov chain and is a normalisation constant. The Doob h-transform simply consists in noticing that this also reads

where the conditioned Markov kernel is and the function is defined by

Of course we have for all . The quantity is the probability that a random walk starting at at time remains inside for time . Consequently, in order to find the transition probabilities of the conditioned kernel, it suffices to compute the quantities for all . Since we are interested in the limiting case , it actually suffices to consider the case . It can be computed recursively since with the appropriate boundary conditions. In other words, adopting the obvious matrix notations, the vector satisfies

where is the usual tridiagonal matrix given by if, and only if, and otherwise. It is related to the discrete Laplacian operator. Indeed, because all the eigenvalues of are real with modulus strictly inferior to , it follows that where is the highest eigenvalue of and the associated eigenfunction. The eigenvalues of are well-known, and as , the highest eigenvalue converges to and the associated eigenfunction converges to the first eigenfunction of the Laplacian on the domain with Dirichlet boundary. In our case it is and

In other words, the random walk with increments conditioned to stay inside has probability transitions given by

Next section investigates the limiting case .

** Conclusion **

We have computed the dynamics of the conditioned random walk with space-increments . To obtain the dynamics of the conditioned Brownian motion it suffices to consider the limiting case . The drift of the resulting diffusion is given by

The same computation gives the volatility of the resulting diffusion. It is given by

As the consequence, this shows that a Brownian motion conditioned to stay inside follows the stochastic differential equation where is the first eigenfunction of the Laplacian on with Dirichlet boundary conditions. More generaly, the same argument would show that a Brownian motion in conditioned to stay inside a nice bounded domain evolves according to the stochastic differential equation

where is the first eigenfunction of the Laplacian on . This is a Langevin diffusion and one can immediately see that the invariant distribution of this diffusion is given by

For example, the following plot depicts the first eigenfunction of the Laplacian on the domain .

## Some Interesting Probability Examples « Honglang Wang's Blog said,

April 19, 2012 at 3:54 am

[…] What does a real Brownian motion conditioned to stay inside the segment look like? (it can help to better understand BM) […]

## dynkin said,

April 2, 2013 at 1:56 pm

Hi. Very interesting post. Can You please give some refference of a more detailed text: either book or article or handout …whatever? Thanks very much!

## Alekk said,

April 2, 2013 at 2:04 pm

Thanks!

References on which part of the post?

## dynkin said,

April 2, 2013 at 2:14 pm

Hi. Well, if there could be one sort of manual or handout about all the these things… that’d be wondreful

I’m interested in random walks in bounded domains and i’ve found this post very useful.

## dynkin said,

April 2, 2013 at 2:22 pm

The issue I’m studying right now is the calculation of the multiplicity of the points of a random walk in an d-dimensional hypercube, starting on on some of the points of the border with given coordinates. So it would be just as what You describe here. The question is how to determine the zones with high frequency of visits of a random walk in dependence with the coordinates (or relative position) of the starting point of this randow walk.

## Alekk said,

April 2, 2013 at 2:28 pm

I do not really understand exactly what you mean by “multiplicity of the points of a random walk in an d-dimensional hypercube, starting on on some of the points of the border with given coordinates”. You can ask a specific question at http://math.stackexchange.com/ and if this is a research level question at http://mathoverflow.net/.

## dynkin said,

April 2, 2013 at 2:36 pm

OK, thanks a lot. Well, may be i didn’t express my question properly. However, do you have some references in form of a book, article, course of lectures of the random walks conditioned to stay inside a bounded domain?

Thanks

## Alekk said,

April 2, 2013 at 2:44 pm

No sorry, I do not have more references than the first few google pages.

## dynkin said,

April 2, 2013 at 2:48 pm

Ok, thanks anyway. Just wanted to have a more detailed description of the things of this post in this particular context, with more detailed proofs, theorems and so on…