Explain the concept of rejection sampling.

Quick Overview

Asks you to explain how rejection sampling turns draws from a simple proposal distribution into samples from a harder target distribution. Tests whether you can justify why the method is exact, reason about its acceptance rate, and say when it breaks down.

Explain the concept of rejection sampling.

Role: Data Scientist

Category: Statistics & Math

Difficulty: medium

Interview Round: Other

Explain the concept of rejection sampling. Assume you need samples from a target density that you can evaluate but cannot sample from directly, for example because its CDF has no closed-form inverse. ```hint Think in areas Picture the region under a curve you can sample from, scaled up until it covers the target's curve everywhere. ``` ```hint Count the cost Work out the probability that a single candidate is accepted, and what in your choices controls it. ``` ### What a Strong Answer Covers - The setup: target, proposal, and the envelope constant with the condition it must satisfy - The accept/reject step and why accepted draws follow the target exactly - The acceptance rate and how the choice of proposal affects efficiency - Working with a target known only up to a normalizing constant - Where it fails, including light-tailed proposals and high dimensions ### Follow-up Questions - Prove that the accepted samples have density f. - Your target is known only up to a normalizing constant. What changes in the algorithm and in the acceptance rate? - Why does rejection sampling become impractical in high dimensions, and what would you use instead? - How does rejection sampling compare with importance sampling?

Overview: Asks you to explain how rejection sampling turns draws from a simple proposal distribution into samples from a harder target distribution. Tests whether you can justify why the method is exact, reason about its acceptance rate, and say when it breaks down.

Nov 25, 2026
mediumData ScientistOtherStatistics & Math
0
0

Explain the concept of rejection sampling.

Assume you need samples from a target density that you can evaluate but cannot sample from directly, for example because its CDF has no closed-form inverse.

What a Strong Answer Covers Guidance

  • The setup: target, proposal, and the envelope constant with the condition it must satisfy
  • The accept/reject step and why accepted draws follow the target exactly
  • The acceptance rate and how the choice of proposal affects efficiency
  • Working with a target known only up to a normalizing constant
  • Where it fails, including light-tailed proposals and high dimensions

Follow-up Questions Guidance

  • Prove that the accepted samples have density f.
  • Your target is known only up to a normalizing constant. What changes in the algorithm and in the acceptance rate?
  • Why does rejection sampling become impractical in high dimensions, and what would you use instead?
  • How does rejection sampling compare with importance sampling?