Rejection Sampling

  • Also called Best-of-n sampling
  • No CDF.md with a simple inverse
  • Importance sampling
  • Use a simpler distribution which is somewhat related to the target PDF.md
    • Sample by transformation
  • Now if we can take a Proto PDF.md where we can sample from the PDF.md g
  • Take a point from g with Probability.md
    • Either accept or reject if satisfies Probability.md
    • If accepted then return the sample
  • Drop a point from with that Probability.md
  • Depends on how close g is to f of course
    • If the ratio is small. (aka f is bigger), then there are many rejections and the algo will be slow. Impossible to not do in high dim spaces