HOME

TheInfoList



OR:

In mathematics, the walk-on-spheres method (WoS) is a numerical probabilistic
algorithm In mathematics and computer science, an algorithm () is a finite sequence of rigorous instructions, typically used to solve a class of specific problems or to perform a computation. Algorithms are used as specifications for performing ...
, or
Monte-Carlo method Monte Carlo methods, or Monte Carlo experiments, are a broad class of computational algorithms that rely on repeated random sampling to obtain numerical results. The underlying concept is to use randomness to solve problems that might be determini ...
, used mainly in order to approximate the solutions of some specific
boundary value problem In mathematics, in the field of differential equations, a boundary value problem is a differential equation together with a set of additional constraints, called the boundary conditions. A solution to a boundary value problem is a solution to ...
for
partial differential equations In mathematics, a partial differential equation (PDE) is an equation which imposes relations between the various partial derivatives of a multivariable function. The function is often thought of as an "unknown" to be solved for, similarly to ...
(PDEs). The WoS method was first introduced by Mervin E. Muller in 1956 to solve
Laplace's equation In mathematics and physics, Laplace's equation is a second-order partial differential equation named after Pierre-Simon Laplace, who first studied its properties. This is often written as \nabla^2\! f = 0 or \Delta f = 0, where \Delta = \na ...
, and was since then generalized to other problems. It relies on probabilistic interpretations of PDEs, and simulates paths of
Brownian motion Brownian motion, or pedesis (from grc, πήδησις "leaping"), is the random motion of particles suspended in a medium (a liquid or a gas). This pattern of motion typically consists of random fluctuations in a particle's position insi ...
(or for some more general variants,
diffusion processes Molecular diffusion, often simply called diffusion, is the thermal motion of all (liquid or gas) particles at temperatures above absolute zero. The rate of this movement is a function of temperature, viscosity of the fluid and the size (mass) of ...
), by sampling only the exit-points out of successive spheres, rather than simulating in detail the path of the process. This often makes it less costly than "grid-based" algorithms, and it is today one of the most widely used "grid-free" algorithms for generating Brownian paths.


Informal description

Let \Omega be a bounded
domain Domain may refer to: Mathematics *Domain of a function, the set of input values for which the (total) function is defined ** Domain of definition of a partial function **Natural domain of a partial function **Domain of holomorphy of a function *Do ...
in \mathbb^d with a sufficiently regular boundary \Gamma, let ''h'' be a function on \Gamma, and let x be a point inside \Omega. Consider the
Dirichlet problem In mathematics, a Dirichlet problem is the problem of finding a function which solves a specified partial differential equation (PDE) in the interior of a given region that takes prescribed values on the boundary of the region. The Dirichlet pro ...
: :\begin \Delta u (x) =0 & \mboxx \in \Omega \\ u(x) = h(x) & \mboxx \in \Gamma. \end It can be easily shown that when the solution u exists, for x \in \Omega: :u(x) = \mathbb_x h(W_) /math> where is a -dimensional
Wiener process In mathematics, the Wiener process is a real-valued continuous-time stochastic process named in honor of American mathematician Norbert Wiener for his investigations on the mathematical properties of the one-dimensional Brownian motion. It i ...
, the expected value is taken conditionally on , and is the first-exit time out of . To compute a solution using this formula, we only have to simulate the first exit point of independent Brownian paths since with the
law of large numbers In probability theory, the law of large numbers (LLN) is a theorem that describes the result of performing the same experiment a large number of times. According to the law, the average of the results obtained from a large number of trials sho ...
: : \mathbb_x h(W_\tau) \sim \frac \sum_^n h(W^i_\tau) The WoS method provides an efficient way of sampling the first exit point of a Brownian motion from the domain, by remarking that for any -sphere centred on , the first point of exit of out of the sphere has a uniform distribution over its surface. Thus, it starts with equal to , and draws the largest sphere \mathcal_0 centered on and contained inside the domain. The first point of exit from \mathcal_0 is uniformly distributed on its surface. By repeating this step inductively, the WoS provides a sequence of positions of the Brownian motion. According to intuition, the process will converge to the first exit point of the domain. However, this algorithm takes almost surely an infinite number of steps to end. For computational implementation, the process is usually stopped when it gets sufficiently close to the border, and returns the projection of the process on the border. This procedure is sometimes called introducing an \varepsilon-shell, or \varepsilon-layer.


Formulation of the method

Choose \varepsilon > 0. Using the same notations as above, the Walk-on-spheres algorithm is described as follows: # Initialize : x^ = x # While d(x^, \Gamma) > \varepsilon: ##Set r_n = d(x^, \Gamma). ##Sample \gamma_n a vector uniformly distributed over the unit sphere, independently from the preceding ones. ##Set x^ := x^ + r_n \gamma_n #When d(x^, \Gamma) \le \varepsilon: #x_f := p_(x^), the orthogonal projection of x^ on \Gamma #Return x_f The result x_f is an estimator of the first exit point from \Omega of a Wiener process starting from x, in the sense that they have close probability distributions (see below for comments on the error).


Comments and practical considerations


Radius of the spheres

In some cases the distance to the border might be difficult to compute, and it is then preferable to replace the radius of the sphere by a lower bound of this distance. One must then ensure that the radius of the spheres stays large enough so that the process reaches the border.


Bias in the method and GFFP

As it is a Monte-Carlo method, the error of the estimator can be decomposed into the sum of a
bias Bias is a disproportionate weight ''in favor of'' or ''against'' an idea or thing, usually in a way that is closed-minded, prejudicial, or unfair. Biases can be innate or learned. People may develop biases for or against an individual, a group ...
, and a
statistical error In statistics and optimization, errors and residuals are two closely related and easily confused measures of the deviation of an observed value of an element of a statistical sample from its "true value" (not necessarily observable). The error ...
. The statistical error is reduced by increasing the number of paths sampled, or by using
variance reduction In mathematics, more specifically in the theory of Monte Carlo methods, variance reduction is a procedure used to increase the precision of the estimates obtained for a given simulation or computational effort. Every output random variable fro ...
methods. The WoS theoretically provides exact (or unbiased) simulations of the paths of the Brownian motion. However, as it is formulated here, the \varepsilon-shell introduced to ensure that the algorithm terminates also adds an error, usually of order \mathcal(\varepsilon). This error has been studied, and can be avoided in some geometries by using
Green's Functions In mathematics, a Green's function is the impulse response of an inhomogeneous linear differential operator defined on a domain with specified initial conditions or boundary conditions. This means that if \operatorname is the linear differenti ...
First Passage method: one can change the geometry of the "spheres" when close enough to the border, so that the probability of reaching the border in one step becomes positive. This requires the knowledge of Green's functions for the specific domains. (see also
Harmonic measure In mathematics, especially potential theory, harmonic measure is a concept related to the theory of harmonic functions that arises from the solution of the classical Dirichlet problem. In probability theory, the harmonic measure of a subset of th ...
) When it is possible to use it, the
Green's function In mathematics, a Green's function is the impulse response of an inhomogeneous linear differential operator defined on a domain with specified initial conditions or boundary conditions. This means that if \operatorname is the linear differenti ...
first-passage (GFFP) method is usually preferred, as it is both faster and more accurate than the classical WoS.


Complexity

It can be shown that the number of steps taken for the WoS process to reach the \varepsilon-shell is of order \mathcal ( , \log(\varepsilon) , ) . Therefore, one can increase the precision to a certain extent without making the number of steps grow notably. As it is commonly the case for Monte-Carlo methods, this algorithm performs particularly well when the dimension is higher than 3, and one only needs a small set of values. Indeed, the computational cost increases linearly with the dimension, whereas the cost of grid dependant methods increase exponentially with the dimension.


Variants, extensions

This method has been largely studied, generalized and improved. For example, it is now extensively used for the computation of physical properties of materials (such as
capacitance Capacitance is the capability of a material object or device to store electric charge. It is measured by the change in charge in response to a difference in electric potential, expressed as the ratio of those quantities. Commonly recognized a ...
, electrostatic internal energy of molecules, etc.). Some notable extensions include:


Elliptic equations

The WoS method can be modified to solve more general problems. In particular, the method has been generalized to solve Dirichlet problems for equations of the form \Delta u = cu + f (which include the Poisson and linearized Poisson−Boltzmann equations) or for any elliptic partial differential equation with constant coefficients. More efficient ways of solving the linearized Poisson–Boltzmann equation have also been developed, relying on Feynman−Kac representations of the solutions.


Time dependency

Again, within a regular enough border, it possible to use the WoS method to solve the following problem : :\begin \partial_t u(x,t) + \frac\Delta_x u (x, t) =0 & \mboxx \in \Omega \mbox t < T\\ u(x, T) = h(x, T) & \mbox x \in \bar\\ u(x, t) = h(x, t) & \mbox x \in \Gamma. \end of which the solution can be represented as: :u(x,t) = \mathbb_ (h(X_, T \wedge \tau)) , where the expectation is taken conditionally on X_t = x To use the WoS through this formula, one needs to sample the exit-time from each sphere drawn, which is an independent variable \tau_0 with Laplace transform (for a sphere of radius R): : \mathbb(\exp(- s \tau_0)) = \frac The total time of exit from the domain \tau can be computed as the sum of the exit-times from the spheres. The process also has to be stopped when it has not exited the domain at time T.


Other extensions

The WoS method has been generalized to estimate the solution to elliptic partial differential equations everywhere in a domain, rather than at a single point. The WoS method has also been generalized in order to compute hitting times for processes other than Brownian motions. For example, hitting times of Bessel processes can be computed via an algorithm called "Walk on moving spheres". This problem has applications in mathematical finance. The WoS can be adapted to solve the Poisson and Poisson–Boltzmann equation with flux conditions on the boundary. Finally, WoS can be used to solve problems where coefficients vary continuously in space, via connections with the volume rendering equation.


See also

*
Feynman–Kac formula The Feynman–Kac formula, named after Richard Feynman and Mark Kac, establishes a link between parabolic partial differential equations (PDEs) and stochastic processes. In 1947, when Kac and Feynman were both Cornell faculty, Kac attended a prese ...
* Stochastic processes and boundary value problems *
Euler–Maruyama method In Itô calculus, the Euler–Maruyama method (also called the Euler method) is a method for the approximate numerical solution of a stochastic differential equation (SDE). It is an extension of the Euler method for ordinary differential equations ...
to sample the paths of general diffusion processes


Notes


References


Further reading

*{{cite book, last1=Sabelfeld, first1=Karl K., title=Monte Carlo methods in boundary value problems, date=1991, publisher=Springer-Verlag, location=Berlin tc.isbn=9783540530015


External links


Some continuous Monte-Carlo methods for the Dirichlet problem
The paper in which Marvin Edgar Muller introduced the method.
Brownian Motion
by Peter Mörters and Yuval Peres. See Chapter 3.3 on harmonic measure, Green's functions and exit-points. Variants of random walks Numerical differential equations Boundary value problems Partial differential equations