I Misunderstood Rejection Sampling All This Time
buttondown.com·5w·
Discuss: Hacker News
Flag this post

September 22, 2025 NULL BITMAP.png

If you’re like me, you have cobbled together an understanding of statistics following your mediocre second-year stats class by watching YouTube videos and skipping to sections of textbooks that are appropriate to the problem you are trying to solve at any particular moment and by asking your data scientists friends questions.

If you, like me, followed this route, you might know rejection sampling exclusively as “that thing people do to sample points on a disk.” To sample points on a disk:

  • Sample points in the bounding box of the disk (this is easy because it’s two random() calls to sample in a rectangle),
  • keep points that fall inside the disk. If this is your…

Similar Posts

Loading similar posts...