ArticleslgStudy

science

Importance sampling

Importance sampling is a 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 Importance sampling rather than just read about it. In short: Importance sampling is a Monte Carlo method for evaluating properties of a particular distribution, while only having samples generated from a different distribution than the distribution of interest. Its introduction in statistics is generally attributed to a paper by Teun Kloek and Herman K. van Dijk in 1978, but its precursors can be found in statistical physics as early as 1949.

Key takeaways

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

Reference excerpt

Importance sampling is a Monte Carlo method for evaluating properties of a particular distribution, while only having samples generated from a different distribution than the distribution of interest. Its introduction in statistics is generally attributed to a paper by Teun Kloek and Herman K. van Dijk in 1978, but its precursors can be found in statistical physics as early as 1949. Importance sampling is also related to umbrella sampling in computational physics. Depending on the application, the term may refer to the process of sampling from this alternative distribution, the process of inference, or both.

Basic theory Let X : Ω → R {\displaystyle X\colon \Omega \to \mathbb {R} } be a random variable in some probability space ( Ω , F , P ) {\displaystyle (\Omega ,{\mathcal {F}},\mathbb {P} )} . We wish to estimate the expected value of X {\displaystyle X} under P {\displaystyle \mathbb {P} } , denoted E P [ X ] {\displaystyle \mathbb {E} _{\mathbb {P} }[X]} . If we have statistically independent random samples X 1 , … , X n {\displaystyle X_{1},\ldots ,X_{n}} , generated according to P {\displaystyle \mathbb {P} } , then an empirical estimate of E P [ X ] {\displaystyle \mathbb {E} _{\mathbb {P} }[X]} is just

E ^ P [ X ] = 1 n ∑ i = 1 n X i w h e r e X i ∼ P ( X ) {\displaystyle {\widehat {\mathbb {E} }}_{\mathbb {P} }[X]={\frac {1}{n}}\sum _{i=1}^{n}X_{i}\quad \mathrm {where} \;X_{i}\sim \mathbb {P} (X)}

and the precision of this estimate depends on the variance of X {\displaystyle X} :

var P ⁡ [ E ^ P [ X ] ] = var P ⁡ [ X ] n . {\displaystyle \operatorname {var} _{\mathbb {P} }{\big [}{\widehat {\mathbb {E} }}_{\mathbb {P} }[X]{\big ]}={\frac {\operatorname {var} _{\mathbb {P} }[X]}{n}}.}

The basic idea of importance sampling is to sample from a different distribution to lower the variance of the estimation of E P [ X ] {\displaystyle \mathbb {E} _{\mathbb {P} }[X]} , or when sampling directly from P {\displaystyle \mathbb {P} } is difficult. This is accomplished by first choosing a random variable Y ≥ 0 {\displaystyle Y\geq 0} such that E P [ Y ] = 1 {\displaystyle \mathbb {E} _{\mathbb {P} }[Y]=1} and that P {\displaystyle \mathbb {P} } -almost everywhere Y ( ω ) ≠ 0 {\displaystyle Y(\omega )\neq 0} . With the variable Y {\displaystyle Y} we define a probability Q {\displaystyle \mathbb {Q} } that satisfies

E P [ X ] = E Q [ X Y ] . {\displaystyle \mathbb {E} _{\mathbb {P} }[X]=\mathbb {E} _{\mathbb {Q} }\left[{\frac {X}{Y}}\right].}

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Importance sampling

Start with the simplest possible case. Write down what Importance sampling claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In 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 Importance sampling 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 Importance sampling 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 Importance sampling

In research
Importance sampling appears in 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 Importance sampling 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
Importance sampling is common in secondary-school and first-year university syllabi. It links to neighbouring topics Monte Carlo methods, Stochastic simulation, Variance reduction, so understanding it makes those chapters shorter.
In everyday life
Look for Importance sampling 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 Importance sampling in 20 minutes

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

Frequently asked questions

What is Importance sampling in simple terms?

Importance sampling is a Monte Carlo method for evaluating properties of a particular distribution, while only having samples generated from a different distribution than the distribution of interest. Its introduction in statistics is generally attributed to a paper by Teun Kloek and Herman K. van…

Why does Importance sampling matter?

Because it connects several 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 Importance sampling?

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 Importance sampling.

Tags

  • Monte Carlo methods
  • Stochastic simulation
  • Variance reduction

Keep exploring