ArticleslgStudy

computer science

Preconditioned Crank–Nicolson algorithm

Preconditioned Crank–Nicolson 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 Preconditioned Crank–Nicolson algorithm rather than just read about it. In short: In computational statistics, the preconditioned Crank–Nicolson algorithm (pCN) is a Markov chain Monte Carlo (MCMC) method for obtaining random samples – sequences of random observations – from a target probability distribution for which direct sampling is difficult. The most significant feature of the pCN algorithm is its dimension robustness, which makes it well-suited for high-dimensional sampling problems.

Key takeaways

  • Preconditioned Crank–Nicolson 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 Preconditioned Crank–Nicolson algorithm to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Preconditioned Crank–Nicolson algorithm from memory before moving on to harder problems.

Reference excerpt

In computational statistics, the preconditioned Crank–Nicolson algorithm (pCN) is a Markov chain Monte Carlo (MCMC) method for obtaining random samples – sequences of random observations – from a target probability distribution for which direct sampling is difficult. The most significant feature of the pCN algorithm is its dimension robustness, which makes it well-suited for high-dimensional sampling problems. The pCN algorithm is well-defined, with non-degenerate acceptance probability, even for target distributions on infinite-dimensional Hilbert spaces. As a consequence, when pCN is implemented on a real-world computer in large but finite dimension N, i.e. on an N-dimensional subspace of the original Hilbert space, the convergence properties (such as ergodicity) of the algorithm are independent of N. This is in strong contrast to schemes such as Gaussian random walk Metropolis–Hastings and the Metropolis-adjusted Langevin algorithm, whose acceptance probability degenerates to zero as N tends to infinity. The algorithm as named was highlighted in 2013 by Cotter, Roberts, Stuart and White, and its ergodicity properties were proved a year later by Hairer, Stuart and Vollmer. In the specific context of sampling diffusion bridges, the method was introduced in 2008.

Description of the algorithm

Overview

The pCN algorithm generates a Markov chain ( X n ) n ∈ N {\displaystyle (X_{n})_{n\in \mathbb {N} }} on a Hilbert space H {\displaystyle {\mathcal {H}}} whose invariant measure is a probability measure μ {\displaystyle \mu } of the form

μ ( E ) = 1 Z ∫ E exp ⁡ ( − Φ ( x ) ) μ 0 ( d x ) {\displaystyle \mu (E)={\frac {1}{Z}}\int _{E}\exp(-\Phi (x))\,\mu _{0}(\mathrm {d} x)}

for each measurable set E ⊆ H {\displaystyle E\subseteq {\mathcal {H}}} , with normalising constant Z {\displaystyle Z} given by

Z = ∫ H exp ⁡ ( − Φ ( x ) ) μ 0 ( d x ) , {\displaystyle Z=\int _{\mathcal {H}}\exp(-\Phi (x))\,\mu _{0}(\mathrm {d} x),}

where μ 0 = N ( 0 , C 0 ) {\displaystyle \mu _{0}={\mathcal {N}}(0,C_{0})} is a Gaussian measure on H {\displaystyle {\mathcal {H}}} with covariance operator C 0 {\displaystyle C_{0}} and Φ : H → R {\displaystyle \Phi \colon {\mathcal {H}}\to \mathbb {R} } is some function. Thus, the pCN method applied to target probability measures that are re-weightings of a reference Gaussian measure. The Metropolis–Hastings algorithm is a general class of methods that try to produce such Markov chains ( X n ) n ∈ N {\displaystyle (X_{n})_{n\in \mathbb {N} }} , and do so by a two-step procedure of first proposing a new state X n + 1 ′ {\displaystyle X'_{n+1}} given the current state X n {\displaystyle X_{n}} and then accepting or rejecting this proposal, according to a particular acceptance probability, to define the next state X n + 1 {\displaystyle X_{n+1}} . The idea of the pCN algorithm is that a clever choice of (non-symmetric) proposal for a new state X n + 1 ′ {\displaystyle X'_{n+1}} given X n {\displaystyle X_{n}} might have an associated acceptance probability function with very desirable properties.

The pCN proposal The special form of this pCN proposal is to take

X n + 1 ′ = 1 − β 2 X n + β Ξ n + 1 , {\displaystyle X'_{n+1}={\sqrt {1-\beta ^{2}}}X_{n}+\beta \Xi _{n+1},}

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Preconditioned Crank–Nicolson algorithm

Start with the simplest possible case. Write down what Preconditioned Crank–Nicolson 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 Preconditioned Crank–Nicolson 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 Preconditioned Crank–Nicolson 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 Preconditioned Crank–Nicolson algorithm

In research
Preconditioned Crank–Nicolson 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 Preconditioned Crank–Nicolson 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
Preconditioned Crank–Nicolson 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 Preconditioned Crank–Nicolson 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.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Preconditioned Crank–Nicolson algorithm” →

Affiliate

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

How to study Preconditioned Crank–Nicolson algorithm in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Preconditioned Crank–Nicolson 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 Preconditioned Crank–Nicolson algorithm out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Preconditioned Crank–Nicolson algorithm in simple terms?

In computational statistics, the preconditioned Crank–Nicolson algorithm (pCN) is a Markov chain Monte Carlo (MCMC) method for obtaining random samples – sequences of random observations – from a target probability distribution for which direct sampling is difficult. The most significant feature of…

Why does Preconditioned Crank–Nicolson 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 Preconditioned Crank–Nicolson 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 Preconditioned Crank–Nicolson algorithm.

Tags

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

Keep exploring