ArticleslgStudy

computer science

Pseudo-marginal Metropolis–Hastings algorithm

Pseudo-marginal Metropolis–Hastings 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 Pseudo-marginal Metropolis–Hastings algorithm rather than just read about it. In short: In computational statistics, the pseudo-marginal Metropolis–Hastings algorithm is a Monte Carlo method to sample from a probability distribution. It is an instance of the popular Metropolis–Hastings algorithm that extends its use to cases where the target density is not available analytically.

Key takeaways

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

Reference excerpt

In computational statistics, the pseudo-marginal Metropolis–Hastings algorithm is a Monte Carlo method to sample from a probability distribution. It is an instance of the popular Metropolis–Hastings algorithm that extends its use to cases where the target density is not available analytically. It relies on the fact that the Metropolis–Hastings algorithm can still sample from the correct target distribution if the target density in the acceptance ratio is replaced by an estimate. It is especially popular in Bayesian statistics, where it is applied if the likelihood function is not tractable (see example below).

Algorithm description The aim is to simulate from some probability density function π ( θ ) {\displaystyle \pi (\theta )} . The algorithm follows the same steps as the standard Metropolis–Hastings algorithm except that the evaluation of the target density is replaced by a non-negative and unbiased estimate. For comparison, the main steps of a Metropolis–Hastings algorithm are outlined below.

Metropolis–Hastings algorithm

Given a current state θ n {\displaystyle \theta _{n}} the Metropolis–Hastings algorithm proposes a new state according to some density θ ′ ∼ Q ( ⋅ ∣ θ n ) {\displaystyle \theta '\sim Q(\cdot \mid \theta _{n})} . The algorithm then sets θ n + 1 = θ ′ {\displaystyle \theta _{n+1}=\theta '} with probability

a ( θ n , θ ′ ) = min ( 1 , π ( θ ′ ) π ( θ n ) Q ( θ n ∣ θ ′ ) Q ( θ ′ ∣ θ n ) ) {\displaystyle a(\theta _{n},\theta ')=\min \left(1,{\frac {\pi (\theta ')}{\pi (\theta _{n})}}{\frac {Q(\theta _{n}\mid \theta ')}{Q(\theta '\mid \theta _{n})}}\right)}

otherwise the old state is kept, that is, θ n + 1 = θ n {\displaystyle \theta _{n+1}=\theta _{n}} .

Pseudo-marginal Metropolis–Hastings algorithm If the density π {\displaystyle \pi } is not available analytically the above algorithm cannot be employed. The pseudo-marginal Metropolis–Hastings algorithm in contrast only assumes the existence of an unbiased estimator π ^ θ {\displaystyle {\hat {\pi }}_{\theta }} , i.e. the estimator must satisfy the equation E [ π ^ θ ] = π ( θ ) . {\displaystyle \mathbb {E} [{\hat {\pi }}_{\theta }]=\pi (\theta ).} Now, given θ n {\displaystyle \theta _{n}} and the respective estimate π ^ θ n {\displaystyle {\hat {\pi }}_{\theta _{n}}} the algorithm proposes a new state according to some density θ ′ ∼ Q ( ⋅ ∣ θ n ) {\displaystyle \theta '\sim Q(\cdot \mid \theta _{n})} . Next, compute an estimate π ^ θ ′ {\displaystyle {\hat {\pi }}_{\theta '}} and set θ n + 1 = θ ′ {\displaystyle \theta _{n+1}=\theta '} with probability

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Pseudo-marginal Metropolis–Hastings algorithm

Start with the simplest possible case. Write down what Pseudo-marginal Metropolis–Hastings 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 Pseudo-marginal Metropolis–Hastings 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 Pseudo-marginal Metropolis–Hastings 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 Pseudo-marginal Metropolis–Hastings algorithm

In research
Pseudo-marginal Metropolis–Hastings 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 Pseudo-marginal Metropolis–Hastings 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
Pseudo-marginal Metropolis–Hastings algorithm is common in secondary-school and first-year university syllabi. It links to neighbouring topics Monte Carlo methods, Statistical algorithms, so understanding it makes those chapters shorter.
In everyday life
Look for Pseudo-marginal Metropolis–Hastings 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 “Pseudo-marginal Metropolis–Hastings algorithm” →

Affiliate

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

How to study Pseudo-marginal Metropolis–Hastings algorithm in 20 minutes

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

Frequently asked questions

What is Pseudo-marginal Metropolis–Hastings algorithm in simple terms?

In computational statistics, the pseudo-marginal Metropolis–Hastings algorithm is a Monte Carlo method to sample from a probability distribution. It is an instance of the popular Metropolis–Hastings algorithm that extends its use to cases where the target density is not available analytically.

Why does Pseudo-marginal Metropolis–Hastings 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 Pseudo-marginal Metropolis–Hastings 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 Pseudo-marginal Metropolis–Hastings algorithm.

Tags

  • Monte Carlo methods
  • Statistical algorithms

Keep exploring