Save this video free

Stats 102C - Lecture 22

Miles Chen · 43:37 · Watch on YouTube

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Overview

Miles Chen connects Gibbs sampling to unsupervised document clustering, modeling 19 passages from Green Eggs and Ham and Go, Dog. Go! with two clusters and a 59-word vocabulary. The method combines a beta prior for cluster proportions with Dirichlet-multinomial word models, then updates each passage's cluster assignment in turn; interactive demos show how different initializations can produce different results after one sweep.

Key takeaways

Chapters

0:00 Course Updates and Interactive Statistics Animations
1:36 Linear Congruential Generators and Modulo 32
3:31 A Miniature Mersenne Twister Bit-by-Bit
6:50 Metropolis Letter Swaps for Substitution-Cipher Decoding
9:30 Unsupervised Clustering with Bag-of-Words Counts
18:30 Beta and Dirichlet-Multinomial Document Models
29:00 Gibbs Updates Reassign Documents from Predictive Word Counts
39:28 Interactive Gibbs Sampling Sweeps and Cluster Results

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

Transcript excerpt

0:03 All right. Happy Monday, everybody. Happy It's week eight. No, nine. Eight. What is it? Nine. It's Thanksgiving week. I feel like I'm barely holding it together, too. I don't know. Uh I'm like behind. I haven't I haven't even finished grading your exams. I'm like, "Okay, I'm going to do all everything over Thanksgiving break." I've got uh a bunch of letters of recommendation to write. I've got uh and then um and then I have to like finish writing everyone the final exams and all of that. And then but this past weekend instead of working on that stuff I was like I was vibe coding and uh because it was fun and I'm like oh this is still

0:51 like my job and educational and um so so I made a bunch of animations um and stuff and that that like uh but anyway if you say oh it helped me learn and understand then I'll feel like Okay, I'm still doing my I'm still doing my job here. It's some of it's related directly related to our lecture today on document clustering, but I'm so excited. I wanted to show you some other stuff. Oh, wait. What happened here? Why am I Why do I have Why do I have crosshairs? That's disturbing. Okay. Okay. All right. So, smileschen.github.io.

1:39 Okay. So I have uh I created a couple animations on random number generators. So this is the linear congruential generator and you can change. So this one I think we talked about this early early early on in the course and I just like this is how we used to generate random numbers and then now we have better ways to do it and um and so anyway um this will generate like with the modulus being 32, you can generate 32

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.