Save this video free

Stats 102C - Lecture 11 - More Rejection Sampling

Miles Chen · 45:38 · Watch on YouTube

Stats 102C - Lecture 11 - More Rejection Sampling Watch on YouTube →

Overview

Miles Chen explains rejection sampling with non-uniform proposals, deriving the envelope constant and acceptance rule, then applying them to sample a half-normal target using an exponential proposal. The example gives M = sqrt(2e/pi) ≈ 1.315 and an expected acceptance rate of about 76%; Chen also shows how rejection sampling works with an unnormalized kernel and why proposal tail behavior matters.

Key takeaways

Chapters

0:00 Midterm Results and the Monte Carlo Integration Challenge
2:00 Rejection Sampling with Non-Uniform Proposals
8:30 Choosing an Exponential Proposal for a Half-Normal Target
16:30 Accepting Proposals Using the Envelope Ratio
22:00 Simulation Results and the 1/M Acceptance Probability
31:00 Rejection Sampling with an Unnormalized Target Kernel
35:45 Scaling the Kernel and Envelope Together
38:00 Why a Half-Normal Proposal Cannot Cover an Exponential Target
41:45 Proposal Design and the Difference from Importance Sampling

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:02 I hope Wait, sorry, let me Okay, all right. So we will continue on looking at rejection sampling. I just posted scores from the midterm exam and uh I did uh I uh the raw median was a 78, so I added seven points to everybody's score. So that brings the median up to 85. I think um Q3 is 92 and Q1 is 72. Um So yeah, 72, 85, 92.

0:50 Um and then, you know, some students got 107. Um so the score that you see in the uh in the grade book already includes that seven point um uh adjustment. And um and that's that. Hey, I don't have office hours today, but um you can come see your exams at any of my in-person office hours uh and things like that. So um So that's that. Um Yeah, overall, I think the one that uh the problem that gave students the most difficulty was the uh part C of problem one where you had to write the code to

1:39 um do the Monte Carlo um uh the code to do the Monte Carlo integration. So uh so maybe I'll have to uh cover that that one aspect uh a bit again. But um but most the other ones overall pretty good, I think. Okay. So, um so we've been talking about rejection sampling, and again, this is all uh because we want to be able to generate a sample from the target distribution, okay? And so, in Wednesday's lecture, um what we showed was you can have a target distribution,

2:26 and uh instead of directly drawing samples from that target distribution, um you draw values from a different distribution. Like uh and on Wednesdays, we were drawing from a uniform distribution. And what we did was we

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Miles Chen.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.