ArticleslgStudy

computer science

Metropolis-adjusted Langevin algorithm

Metropolis-adjusted Langevin algorithm is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Metropolis-adjusted Langevin algorithm rather than just read about it. In short: In computational statistics, the Metropolis-adjusted Langevin algorithm (MALA) or Langevin Monte Carlo (LMC) is a Markov chain Monte Carlo (MCMC) method for obtaining random samples – sequences of random observations – from a probability distribution for which direct sampling is difficult. As the name suggests, MALA uses a combination of two mechanisms to generate the states of a random walk that has the target prob…

Key takeaways

  • Metropolis-adjusted Langevin algorithm belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Metropolis-adjusted Langevin algorithm to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Metropolis-adjusted Langevin algorithm from memory before moving on to harder problems.

Reference excerpt

In computational statistics, the Metropolis-adjusted Langevin algorithm (MALA) or Langevin Monte Carlo (LMC) is a Markov chain Monte Carlo (MCMC) method for obtaining random samples – sequences of random observations – from a probability distribution for which direct sampling is difficult. As the name suggests, MALA uses a combination of two mechanisms to generate the states of a random walk that has the target probability distribution as an invariant measure:

new states are proposed using (overdamped) Langevin dynamics, which use evaluations of the gradient of the target probability density function; these proposals are accepted or rejected using the Metropolis–Hastings algorithm, which uses evaluations of the target probability density (but not its gradient). Informally, the Langevin dynamics drive the random walk towards regions of high probability in the manner of a gradient flow, while the Metropolis–Hastings accept/reject mechanism improves the mixing and convergence properties of this random walk. MALA was originally proposed by Julian Besag in 1994, (although the method Smart Monte Carlo was already introduced in 1978 ) and its properties were examined in detail by Gareth Roberts together with Richard Tweedie and Jeff Rosenthal. Many variations and refinements have been introduced since then, e.g. the manifold variant of Girolami and Calderhead (2011). The method is equivalent to using the Hamiltonian Monte Carlo (hybrid Monte Carlo) algorithm with only a single discrete time step.

Further details Let π {\displaystyle \pi } denote a probability density function on R d {\displaystyle \mathbb {R} ^{d}} , one from which it is desired to draw an ensemble of independent and identically distributed samples. We consider the overdamped Langevin Itô diffusion

X ˙ = ∇ log ⁡ π ( X ) + 2 W ˙ {\displaystyle {\dot {X}}=\nabla \log \pi (X)+{\sqrt {2}}{\dot {W}}}

driven by the time derivative of a standard Brownian motion W {\displaystyle W} . (Note that another commonly used normalization for this diffusion is

X ˙ = 1 2 ∇ log ⁡ π ( X ) + W ˙ , {\displaystyle {\dot {X}}={\frac {1}{2}}\nabla \log \pi (X)+{\dot {W}},}

which generates the same dynamics.) In the limit as t → ∞ {\displaystyle t\to \infty } , this probability distribution ρ ( t ) {\displaystyle \rho (t)} of X ( t ) {\displaystyle X(t)} approaches a stationary distribution, which is also invariant under the diffusion, which we denote ρ ∞ {\displaystyle \rho _{\infty }} . It turns out that, in fact, ρ ∞ = π {\displaystyle \rho _{\infty }=\pi } . Approximate sample paths of the Langevin diffusion can be generated by many discrete-time methods. One of the simplest is the Euler–Maruyama method with a fixed time step τ > 0 {\displaystyle \tau >0} . We set X 0 := x 0 {\displaystyle X_{0}:=x_{0}} and then recursively define an approximation X k {\displaystyle X_{k}} to the true solution X ( k τ ) {\displaystyle X(k\tau )} by

X k + 1 := X k + τ ∇ log ⁡ π ( X k ) + 2 τ ξ k , {\displaystyle X_{k+1}:=X_{k}+\tau \nabla \log \pi (X_{k})+{\sqrt {2\tau }}\xi _{k},}

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Metropolis-adjusted Langevin algorithm

Start with the simplest possible case. Write down what Metropolis-adjusted Langevin algorithm claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Metropolis-adjusted Langevin algorithm before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Metropolis-adjusted Langevin algorithm ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Metropolis-adjusted Langevin algorithm

In research
Metropolis-adjusted Langevin algorithm appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Metropolis-adjusted Langevin algorithm in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Metropolis-adjusted Langevin algorithm is common in secondary-school and first-year university syllabi. It links to neighbouring topics Markov chain Monte Carlo, Monte Carlo methods, Sampling techniques, so understanding it makes those chapters shorter.
In everyday life
Look for Metropolis-adjusted Langevin algorithm outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Metropolis-adjusted Langevin algorithm in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Metropolis-adjusted Langevin algorithm means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Metropolis-adjusted Langevin algorithm out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Metropolis-adjusted Langevin algorithm in simple terms?

In computational statistics, the Metropolis-adjusted Langevin algorithm (MALA) or Langevin Monte Carlo (LMC) is a Markov chain Monte Carlo (MCMC) method for obtaining random samples – sequences of random observations – from a probability distribution for which direct sampling is difficult. As the n…

Why does Metropolis-adjusted Langevin algorithm matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Metropolis-adjusted Langevin algorithm?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Metropolis-adjusted Langevin algorithm.

Tags

  • Markov chain Monte Carlo
  • Monte Carlo methods
  • Sampling techniques

Keep exploring