VIEW THIS AS

Auto mode follows the Route Engine until you choose a viewpoint.

YOU ARE HERE

ROUTE CHECK

CONNECTED TO

WHAT NEXT

Use the canonical route for this room, or HELP if you are unsure.

Why Mathematics? | Importance Resampling Bootstrap: Proposal Distributions and Correction Weights

Why is mathematics important when rare but influential bootstrap regions are too inefficient to reach by uniform resampling? Importance resampling deliberately samples from a proposal distribution that visits those regions more often, then reweights replicates back to the target bootstrap distribution.

Did You Know? The importance weight of a bootstrap replicate depends on its whole frequency vector: every time an observation appears, its target-to-proposal probability ratio contributes another factor.

Full chapter index

Chapters 1–7 · Understand the question
  1. The rare-region question
  2. The documented weight
  3. Proposal and target
  4. A worked frequency vector
  5. Worked importance weight
  6. Why the product appears
  7. Self-normalised estimates
Chapters 8–14 · Reproduce the example
  1. Weight degeneracy
  2. Support requirement
  3. Tail targeting
  4. Defensive mixtures
  5. Log weights
  6. Quantile estimation
  7. Confidence intervals
Chapters 15–21 · Check assumptions
  1. A reliability example
  2. A risk example
  3. Comparison with unequal survey weights
  4. Comparison with balanced bootstrap
  5. Comparison with tilted bootstrap
  6. Validation plan
  7. Limits
Chapters 22–28 · Explore applications
  1. A spreadsheet workflow
  2. A coding workflow
  3. Applications and careers
  4. A student investigation
  5. Common misconceptions
  6. Connection to recent mathematics articles
  7. Guidance for students and parents
Chapters 29–34 · Study and verify
  1. Practice questions
  2. Frequently asked questions
  3. A reporting checklist
  4. Effective sample size arithmetic
  5. Final importance-resampling audit
  6. Useful next reading

CHAPTER 1 OF 34 · Understand the question

1. The rare-region question

Back to contents

Confidence limits live in distribution tails. Ordinary resampling may spend most computation near the centre. Importance resampling changes selection probabilities to visit a relevant tail more often.

Contents · Next chapter

CHAPTER 2 OF 34 · Understand the question

2. The documented weight

Back to contents

R imp.weights states that for frequency vector f, proposal probabilities p and target probabilities q, the replicate weight is product((q/p)^f). Read the official documentation.

Contents · Previous chapter · Next chapter

CHAPTER 3 OF 34 · Understand the question

3. Proposal and target

Back to contents

The proposal p generates resamples. The target q defines the bootstrap distribution for inference, often uniform q_i=1/n. Results are not interpreted under p until likelihood-ratio weights correct the change.

Contents · Previous chapter · Next chapter

CHAPTER 4 OF 34 · Understand the question

4. A worked frequency vector

Back to contents

Let q=(.25,.25,.25,.25), p=(.10,.20,.30,.40), and a size-four replicate have frequencies f=(1,0,1,2). It contains observation 1 once, 3 once and 4 twice.

qpf
.25,.25,.25,.25.10,.20,.30,.401,0,1,2
Importance-resampling inputs.

Contents · Previous chapter · Next chapter

CHAPTER 5 OF 34 · Understand the question

5. Worked importance weight

Back to contents

The weight is (0.25/0.10)^1(0.25/0.20)^0(0.25/0.30)^1(0.25/0.40)^2≈0.8138. The zero frequency removes observation 2’s ratio from this product.

Weight
0.8138
Replicate correction.

Contents · Previous chapter · Next chapter

CHAPTER 6 OF 34 · Understand the question

6. Why the product appears

Back to contents

Independent selections multiply probabilities. A frequency vector compresses the ordered sample; raising each ratio to f_i reproduces the likelihood ratio between target and proposal resampling laws.

Contents · Previous chapter · Next chapter

CHAPTER 7 OF 34 · Understand the question

7. Self-normalised estimates

Back to contents

Weighted expectations are often computed as sum(w_b h_b)/sum(w_b). This removes an unknown common scale but introduces finite-sample bias. The exact estimator must be named.

Contents · Previous chapter · Next chapter

CHAPTER 8 OF 34 · Reproduce the example

8. Weight degeneracy

Back to contents

If a few weights dominate, effective computation is far smaller than B. A common diagnostic is ESS=(sum w)^2/sum(w^2), interpreted as a weight-concentration measure rather than real sample size.

Contents · Previous chapter · Next chapter

CHAPTER 9 OF 34 · Reproduce the example

9. Support requirement

Back to contents

Every resample possible under target q must have positive proposal probability p. If p_i=0 while q_i>0, some target samples are unreachable and weights cannot repair the missing support.

Contents · Previous chapter · Next chapter

CHAPTER 10 OF 34 · Reproduce the example

10. Tail targeting

Back to contents

A proposal should increase probability of resamples that move the statistic toward a desired endpoint. Poor targeting can increase variance rather than reduce it.

Contents · Previous chapter · Next chapter

CHAPTER 11 OF 34 · Reproduce the example

11. Defensive mixtures

Back to contents

The R documentation supports defensive mixture weights when several proposal distributions are used. Including some ordinary target sampling can protect against a badly chosen tail proposal.

Contents · Previous chapter · Next chapter

CHAPTER 12 OF 34 · Reproduce the example

12. Log weights

Back to contents

Products of many ratios can underflow or overflow. Calculate log w=sum f_i log(q_i/p_i), subtract the maximum log weight, exponentiate and normalise.

Contents · Previous chapter · Next chapter

CHAPTER 13 OF 34 · Reproduce the example

13. Quantile estimation

Back to contents

Weighted empirical distribution functions and weighted quantiles can estimate target tail locations. Quantile conventions and effective tail weight must be recorded.

Contents · Previous chapter · Next chapter

CHAPTER 14 OF 34 · Reproduce the example

14. Confidence intervals

Back to contents

Importance resampling can make tail endpoint estimation more efficient, but interval coverage still depends on the bootstrap approximation, statistic regularity and correct importance correction.

Contents · Previous chapter · Next chapter

CHAPTER 15 OF 34 · Check assumptions

15. A reliability example

Back to contents

Rare failure-pattern resamples may drive an upper uncertainty limit. A proposal can oversample high-influence failures, then weights recover the ordinary-bootstrap target.

Contents · Previous chapter · Next chapter

CHAPTER 16 OF 34 · Check assumptions

16. A risk example

Back to contents

Extreme-loss configurations are scarce under uniform resampling. Importance sampling can focus computation, but a poor proposal or unbounded weights produces unstable results.

Contents · Previous chapter · Next chapter

CHAPTER 17 OF 34 · Check assumptions

17. Comparison with unequal survey weights

Back to contents

Importance resampling probabilities are a computational device. Survey design weights represent population selection. They can interact but are not interchangeable.

Contents · Previous chapter · Next chapter

CHAPTER 18 OF 34 · Check assumptions

18. Comparison with balanced bootstrap

Back to contents

Balanced bootstrap coordinates inclusion counts while retaining the target marginal law. Importance resampling changes proposal probabilities and requires correction weights.

Contents · Previous chapter · Next chapter

CHAPTER 19 OF 34 · Check assumptions

19. Comparison with tilted bootstrap

Back to contents

Tilted bootstrap constructs proposal probabilities to place the statistic near chosen values. Importance sampling is the broader correction framework used after sampling from those proposals.

Contents · Previous chapter · Next chapter

CHAPTER 20 OF 34 · Check assumptions

20. Validation plan

Back to contents

Verify p and q sum to one, check support, reproduce one weight, inspect ESS and maximum normalised weight, compare weighted estimates across proposals and include ordinary sampling.

Contents · Previous chapter · Next chapter

CHAPTER 21 OF 34 · Check assumptions

21. Limits

Back to contents

Importance resampling can fail through missing support, extreme weights, a weak proposal, numerical overflow, small tail ESS, dependence or a wrong statistical bootstrap model.

Contents · Previous chapter · Next chapter

CHAPTER 22 OF 34 · Explore applications

22. A spreadsheet workflow

Back to contents

List p, q, frequencies and log-ratio contributions by observation. Sum log weights, normalise across replicates, calculate ESS and compare weighted with ordinary estimates.

Contents · Previous chapter · Next chapter

CHAPTER 23 OF 34 · Explore applications

23. A coding workflow

Back to contents

Implement log weights from the frequency matrix, unit-test 0.8138 up to common scaling, use stable log-sum-exp normalisation and reject proposals with missing target support.

Contents · Previous chapter · Next chapter

CHAPTER 24 OF 34 · Explore applications

24. Applications and careers

Back to contents

Importance sampling is used in risk, reliability, rare-event simulation, Bayesian computation and uncertainty quantification. Practitioners need probability, numerical analysis and domain knowledge.

Contents · Previous chapter · Next chapter

CHAPTER 25 OF 34 · Explore applications

25. A student investigation

Back to contents

Estimate a rare bootstrap quantile using uniform and targeted proposals at equal B. Compare endpoint error, ESS and maximum weight across repeated seeds.

Contents · Previous chapter · Next chapter

CHAPTER 26 OF 34 · Explore applications

26. Common misconceptions

Back to contents

Larger raw B does not imply large weighted ESS, unequal proposal probabilities are not survey weights, and reweighting cannot recover target regions with zero proposal support.

Contents · Previous chapter · Next chapter

CHAPTER 27 OF 34 · Explore applications

27. Connection to recent mathematics articles

Back to contents

The balanced-bootstrap guide coordinates counts without likelihood ratios. The percentile guide explains tail endpoints.

Contents · Previous chapter · Next chapter

CHAPTER 28 OF 34 · Explore applications

28. Guidance for students and parents

Back to contents

Students should calculate one likelihood ratio and one ESS. Parents can ask why rare cases were sampled more often and how the correction returns to the intended target.

Contents · Previous chapter · Next chapter

CHAPTER 29 OF 34 · Study and verify

29. Practice questions

Back to contents

  • Recompute 0.8138.
  • Explain frequency exponents.
  • Calculate ESS.
  • Diagnose p_i=0.
  • Compare proposal and target.

Contents · Previous chapter · Next chapter

CHAPTER 30 OF 34 · Study and verify

30. Frequently asked questions

Back to contents

### Which distribution generates samples? p.

### Which distribution defines inference? q.

### Why reweight? To correct the proposal change.

### Can weights degenerate? Yes.

Contents · Previous chapter · Next chapter

CHAPTER 31 OF 34 · Study and verify

31. A reporting checklist

Back to contents

Report target q, proposal p, support check, B, seed, frequency convention, log-weight method, normalisation, ESS, maximum weight and tail stability.

Contents · Previous chapter · Next chapter

CHAPTER 32 OF 34 · Study and verify

32. Effective sample size arithmetic

Back to contents

If all weights are equal, ESS=B. If one weight dominates, ESS approaches 1. This is a computational diagnostic for weighted replicates, not a replacement for the original data sample size.

Contents · Previous chapter · Next chapter

CHAPTER 33 OF 34 · Study and verify

33. Final importance-resampling audit

Back to contents

Confirm target/proposal distinction, common support, stable log weights, adequate tail ESS, defensive mixture when needed, reproducibility and no confusion with substantive sampling weights. Preserve the proposal probabilities and frequency matrix so another analyst can reconstruct every weight. Compare weighted estimates with an ordinary-bootstrap benchmark and explain any material difference. If tail ESS is small, widen the simulation plan or redesign the proposal before interpreting extra decimal places.

Contents · Previous chapter · Next chapter

CHAPTER 34 OF 34 · Study and verify

34. Useful next reading

Back to contents

Continue through the Mathematics Learning Hub. Rebuild one resampling or diagnostic calculation by hand before trusting a large automated run.

Contents · Previous chapter · Mathematics Learning Hub

Extended practice laboratory

Practice case 1: Define target q

Setup: Start from the article’s importance-resampling mechanism for case 1. Task: Change the named quantity, recompute the dependent result and compare with the original.

Check: Preserve the resampling unit, verify the probability or weighting identity, and state one diagnostic before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 2: Define proposal p

Setup: Start from the article’s importance-resampling mechanism for case 2. Task: Change the named quantity, recompute the dependent result and compare with the original.

Check: Preserve the resampling unit, verify the probability or weighting identity, and state one diagnostic before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 3: Check support

Setup: Start from the article’s importance-resampling mechanism for case 3. Task: Change the named quantity, recompute the dependent result and compare with the original.

Check: Preserve the resampling unit, verify the probability or weighting identity, and state one diagnostic before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 4: Build frequency vector

Setup: Start from the article’s importance-resampling mechanism for case 4. Task: Change the named quantity, recompute the dependent result and compare with the original.

Check: Preserve the resampling unit, verify the probability or weighting identity, and state one diagnostic before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 5: Calculate ratios

Setup: Start from the article’s importance-resampling mechanism for case 5. Task: Change the named quantity, recompute the dependent result and compare with the original.

Check: Preserve the resampling unit, verify the probability or weighting identity, and state one diagnostic before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 6: Apply exponents

Setup: Start from the article’s importance-resampling mechanism for case 6. Task: Change the named quantity, recompute the dependent result and compare with the original.

Check: Preserve the resampling unit, verify the probability or weighting identity, and state one diagnostic before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 7: Multiply weight

Setup: Start from the article’s importance-resampling mechanism for case 7. Task: Change the named quantity, recompute the dependent result and compare with the original.

Check: Preserve the resampling unit, verify the probability or weighting identity, and state one diagnostic before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 8: Use log weight

Setup: Start from the article’s importance-resampling mechanism for case 8. Task: Change the named quantity, recompute the dependent result and compare with the original.

Check: Preserve the resampling unit, verify the probability or weighting identity, and state one diagnostic before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 9: Normalise weights

Setup: Start from the article’s importance-resampling mechanism for case 9. Task: Change the named quantity, recompute the dependent result and compare with the original.

Check: Preserve the resampling unit, verify the probability or weighting identity, and state one diagnostic before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 10: Calculate weighted mean

Setup: Start from the article’s importance-resampling mechanism for case 10. Task: Change the named quantity, recompute the dependent result and compare with the original.

Check: Preserve the resampling unit, verify the probability or weighting identity, and state one diagnostic before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 11: Calculate ESS

Setup: Start from the article’s importance-resampling mechanism for case 11. Task: Change the named quantity, recompute the dependent result and compare with the original.

Check: Preserve the resampling unit, verify the probability or weighting identity, and state one diagnostic before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 12: Inspect maximum weight

Setup: Start from the article’s importance-resampling mechanism for case 12. Task: Change the named quantity, recompute the dependent result and compare with the original.

Check: Preserve the resampling unit, verify the probability or weighting identity, and state one diagnostic before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 13: Change proposal

Setup: Start from the article’s importance-resampling mechanism for case 13. Task: Change the named quantity, recompute the dependent result and compare with the original.

Check: Preserve the resampling unit, verify the probability or weighting identity, and state one diagnostic before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 14: Add defensive mixture

Setup: Start from the article’s importance-resampling mechanism for case 14. Task: Change the named quantity, recompute the dependent result and compare with the original.

Check: Preserve the resampling unit, verify the probability or weighting identity, and state one diagnostic before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 15: Target lower tail

Setup: Start from the article’s importance-resampling mechanism for case 15. Task: Change the named quantity, recompute the dependent result and compare with the original.

Check: Preserve the resampling unit, verify the probability or weighting identity, and state one diagnostic before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 16: Target upper tail

Setup: Start from the article’s importance-resampling mechanism for case 16. Task: Change the named quantity, recompute the dependent result and compare with the original.

Check: Preserve the resampling unit, verify the probability or weighting identity, and state one diagnostic before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 17: Use weighted quantile

Setup: Start from the article’s importance-resampling mechanism for case 17. Task: Change the named quantity, recompute the dependent result and compare with the original.

Check: Preserve the resampling unit, verify the probability or weighting identity, and state one diagnostic before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 18: Increase B

Setup: Start from the article’s importance-resampling mechanism for case 18. Task: Change the named quantity, recompute the dependent result and compare with the original.

Check: Preserve the resampling unit, verify the probability or weighting identity, and state one diagnostic before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 19: Change seed

Setup: Start from the article’s importance-resampling mechanism for case 19. Task: Change the named quantity, recompute the dependent result and compare with the original.

Check: Preserve the resampling unit, verify the probability or weighting identity, and state one diagnostic before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 20: Compare ordinary run

Setup: Start from the article’s importance-resampling mechanism for case 20. Task: Change the named quantity, recompute the dependent result and compare with the original.

Check: Preserve the resampling unit, verify the probability or weighting identity, and state one diagnostic before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 21: Add zero support

Setup: Start from the article’s importance-resampling mechanism for case 21. Task: Change the named quantity, recompute the dependent result and compare with the original.

Check: Preserve the resampling unit, verify the probability or weighting identity, and state one diagnostic before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 22: Audit numerical stability

Setup: Start from the article’s importance-resampling mechanism for case 22. Task: Change the named quantity, recompute the dependent result and compare with the original.

Check: Preserve the resampling unit, verify the probability or weighting identity, and state one diagnostic before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 23: Separate survey weights

Setup: Start from the article’s importance-resampling mechanism for case 23. Task: Change the named quantity, recompute the dependent result and compare with the original.

Check: Preserve the resampling unit, verify the probability or weighting identity, and state one diagnostic before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 24: Name limits

Setup: Start from the article’s importance-resampling mechanism for case 24. Task: Change the named quantity, recompute the dependent result and compare with the original.

Check: Preserve the resampling unit, verify the probability or weighting identity, and state one diagnostic before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 25: Write conclusion

Setup: Start from the article’s importance-resampling mechanism for case 25. Task: Change the named quantity, recompute the dependent result and compare with the original.

Check: Preserve the resampling unit, verify the probability or weighting identity, and state one diagnostic before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.