Metropolis - Hastings : Data Science Concepts

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ก.ย. 2024

ความคิดเห็น • 217

  • @dzmitrykoniukhau1362
    @dzmitrykoniukhau1362 2 ปีที่แล้ว +94

    Guys, realize for a sec how cool is that we are living in the time of the Internet.
    I got a topic for my seminar (Monte Carlo samplings) where I need to elaborate the topic of Metropolis - Hastings sampling among others. So I started to read the book my prof recommended me, couldn't understand a sh*t so I am going to TH-cam, searching for the corresponding videos, finding this one and understand EVERYTHING. 30 years ago I would have to go to the library and ask there another book and spent there ages until I'll understand it. Now it is simple as that!
    Bro, thank you sooo much for the way you are explaining the stuff! Those parts with the toy examples and the intuition behind it are so helpful!
    This is not the first time you are saving my ass!!!
    From Belarus with Love!

  • @ericpenarium
    @ericpenarium 3 ปีที่แล้ว +88

    This is seriously next level teaching. I’ve never heard such a clear explanation of M-H before! Amazing job.

  • @michaelzumpano7318
    @michaelzumpano7318 3 ปีที่แล้ว +120

    This is a topic that has a lot of layers, but you did a great job of taking it apart and putting it back together! You’re a great teacher.

    • @ritvikmath
      @ritvikmath  3 ปีที่แล้ว +5

      Thank you so much!

  • @edwardmartin100
    @edwardmartin100 3 ปีที่แล้ว +17

    Awesome. The last five minutes on intuition is especially good

  • @MrTSkV
    @MrTSkV 3 ปีที่แล้ว +61

    This is an impressive alloy of math and intuition behind it - not something you get to see very often in short educational videos like this, because it's really REALLY hard to do. But you sir are one of the few exceptions. Bravo! Please never stop.
    I'm sorry for my English, just wanted to say how impressed I am. Have a good one!

    • @ritvikmath
      @ritvikmath  3 ปีที่แล้ว +11

      thanks for the kind words! Also, I really like how you used the word "alloy"; I'm going to start using that :)

  • @shutonggu5478
    @shutonggu5478 8 หลายเดือนก่อน +3

    I have tried to understand what hacks the relationship between MC and posterior probability is for the whole day; but after looking at your video, just in 20 min, I understand it. The teaching is so clear and easy to understand! Very high-quality teaching!

  • @JayleeWu
    @JayleeWu ปีที่แล้ว +3

    Hey there! Just would like to thank you for all these wonderful high-quality work you've made and shared with us. I've seen bunch of different versions of videos covering similar topics, but yours is definitely my favorite so far! Great pace control, clear explanation and wonderful teaching style. Well done man. Please keep it up! cheers! 💪👏🙏

  • @Anzah1
    @Anzah1 3 ปีที่แล้ว +3

    Landed here after watching a couple of videos on M-H, and none of them were remotely as clear as your explanation! and your explanation made me really appreciate the intuitive simplicity and beauty of the math. Great work! Really wish I had a teacher like you during my bachelors :D

  • @skua-se1bp
    @skua-se1bp 2 ปีที่แล้ว +2

    You did a fantastic job by explaining so many things within 20 minutes and with no jargon!

  • @bretasopik
    @bretasopik 10 หลายเดือนก่อน +1

    Amazing explanation! I usually do not comment on TH-cam but here I make an exception. Good job!

  • @i-fanlin568
    @i-fanlin568 2 ปีที่แล้ว +3

    Your explanation of the proposal density is the best I ever found! Thank you so much for your sharing!

  • @vickylim3213
    @vickylim3213 9 หลายเดือนก่อน

    You did make the person who doesn’t have english as mother tongue understand the topic!! You have so much talent at teaching! Great job!

  • @rishi71095
    @rishi71095 ปีที่แล้ว +1

    The first thing I do now when I don't understand a concept is to see if you have a video on it. You make the best videos on the most complicated topics and make them so easy to understand. Simply the best! Thank you for your efforts!

    • @Yesuuh
      @Yesuuh ปีที่แล้ว +1

      i agree veeray... this guy has the magic touch!

    • @rishi71095
      @rishi71095 ปีที่แล้ว +1

      Haha absolutely! 😁

  • @bankayxy00
    @bankayxy00 ปีที่แล้ว

    Came here thinking I understood Metropolis-Hastings, enriched myself with doubts during the lecture, wrapped everything up with you at the end. I'm now leaving with a more full understanding. You are an amazing teacher!

  • @jaytimbadia2191
    @jaytimbadia2191 2 ปีที่แล้ว +4

    So clearly explained. After so many years, I finally understood this. Thank you so much! It would be really great if you can explain on how we can differentiate on samplings!

  • @raphaelbaur4335
    @raphaelbaur4335 3 ปีที่แล้ว +4

    Amazing, deserves more views and could easily replace many of the lectures on MH out there!

  • @xuxizhi6494
    @xuxizhi6494 7 หลายเดือนก่อน

    Very clear explaination! Specifically, I love the intuition part at the end so much. Thanks for your excellent work!

    • @ritvikmath
      @ritvikmath  7 หลายเดือนก่อน

      You're so welcome!

  • @NuclearSpinach
    @NuclearSpinach ปีที่แล้ว +1

    Wrapping up a statistics PhD and I still come back to this video every few months to re-calibrate my intuition

  • @PhilippeZwick
    @PhilippeZwick 8 หลายเดือนก่อน

    I watched a lot of videos for this topic and at around 15:51 thanks to your intution it flipped the switch in me and finally the reason behind all of this makes sense - feels good. Thank you so much!

  • @Feschmesser2
    @Feschmesser2 2 ปีที่แล้ว +3

    Awesome explanation, best resource i have found to really understand the intuition behind MH. Thank for your effort!

    • @ritvikmath
      @ritvikmath  2 ปีที่แล้ว

      Glad it was helpful!

  • @MegaNightdude
    @MegaNightdude 3 ปีที่แล้ว +1

    You're a saint. Thanks to people like you, the world has a chance.

  • @Zooooooombie
    @Zooooooombie 2 ปีที่แล้ว

    This succeeded for me where all other videos failed.. great explanation!

  • @crazyjerry543
    @crazyjerry543 3 ปีที่แล้ว +3

    You definitely deserve more exposure!! Thanks a lot for these great explanations:)

  • @jacoblink4380
    @jacoblink4380 ปีที่แล้ว

    Mate, this is the most amazing and clear content re MCMC ive yet seen. incredible. thank you so much!

  • @leoware9319
    @leoware9319 2 ปีที่แล้ว +1

    This is so great. Best video I have found on this topic by far.

  • @gamalieliissacnyambacha3029
    @gamalieliissacnyambacha3029 10 หลายเดือนก่อน

    You clarify complex concepts to make them easier to understand; this will significantly help me in my Advanced Workbook assignment, thanks.

  • @xinzhou4360
    @xinzhou4360 2 ปีที่แล้ว

    Kindly remind, there is a typo that the MAX(1, r_{f}r_{g}) should be MIN(1, r_{f}r_{g}). Many thanks, Ritvik, your video helped me a lot.

  • @rebeccalynch6315
    @rebeccalynch6315 3 ปีที่แล้ว +2

    seriously you are saving me for upcoming exams
    thank you!

  • @letranthu5165
    @letranthu5165 3 ปีที่แล้ว +1

    The series of your videos is indeed amazing! Thank you so so much!

  • @MiaoQin-m2u
    @MiaoQin-m2u 14 วันที่ผ่านมา

    Thanks for sharing. I think I understand MH algorithm. You are so cool to explain profound theories in simple words!

  • @איילתדמור
    @איילתדמור ปีที่แล้ว

    In my statistics course they first presented the markov chain and then proved that its stationary distribution is the one we are looking for which was very confusing. What helped me a lot in this video is that you showed the derivation of the chain. Thanks for the great explanation and intuition at the end!

  • @aarontan5748
    @aarontan5748 ปีที่แล้ว

    Watched two years ago, when I was a undergrad. Now I came back watched it again and again when I am grad. Great video!

  • @proxyme3628
    @proxyme3628 ปีที่แล้ว +1

    Great video and explanation. Wish those articles and videos dumping math formulas watch this video and learn now to explain.

  • @sxz452
    @sxz452 ปีที่แล้ว

    The best explanation of Metropolis Hastings on the internet.

  • @taotaotan5671
    @taotaotan5671 3 ปีที่แล้ว +1

    Your channel is super helpful. I finally understand MCMC and successfully programmed!

  • @pxz3900
    @pxz3900 ปีที่แล้ว

    Absolutely best math teacher on this planet. Everytime I am searching for a math concept , if there's a video by ritvikmath, I know I am saved.

  • @arianova5312
    @arianova5312 ปีที่แล้ว

    Great video, the intuition part is amazing. Thanks!

  • @bassoonatic777
    @bassoonatic777 3 ปีที่แล้ว

    Fantastic job. This is the best explanation and description of MH that I've ever heard.

  • @michaelrainer7487
    @michaelrainer7487 2 ปีที่แล้ว

    Ritvikmath is the only person who was able to finally explain Bayes to me. By far the best explanation I have ever seen. A+

  • @fengjeremy7878
    @fengjeremy7878 ปีที่แล้ว

    The explanation of ituition is great!

  • @ZinzinsIA
    @ZinzinsIA ปีที่แล้ว

    Very very clear summary of MH algorithm with explanation of every step. Really great and helpful work, thanks a lot !

    • @ritvikmath
      @ritvikmath  ปีที่แล้ว

      Glad it was helpful!

  • @thienle4434
    @thienle4434 3 ปีที่แล้ว +1

    Wonderful job Ritvik. Thank you.

  • @paintednow
    @paintednow 2 ปีที่แล้ว +1

    Man, this is the best presentation of Metropolis-Hastings I have seen, yet. Respect - keep up the good work!

  • @rikki146
    @rikki146 ปีที่แล้ว

    Your explanation is next level. Thank you very much!

    • @ritvikmath
      @ritvikmath  ปีที่แล้ว

      You're very welcome!

  • @moimonalisa5129
    @moimonalisa5129 2 ปีที่แล้ว

    Thank you for the video. Every math is based on intuition and you give it back when I'm about to loose mine. I paused a while and put attention on the max, then I was surprised when it suddenly changed to min. LOL..

  • @learn5081
    @learn5081 3 ปีที่แล้ว +2

    This is extremely helpful! Thank you so much!! Also I appreciate your sharing your own experience learning this!

  • @yianqian3709
    @yianqian3709 2 ปีที่แล้ว

    Thank you so much!! This is the clearest explanation of MH I have ever seen.

  • @tannys
    @tannys 3 ปีที่แล้ว +1

    best video on MH. you make a great teacher!

  • @GamerHDNL
    @GamerHDNL ปีที่แล้ว

    Truly increadible clarity, thank you very much!

  • @ginnyli2913
    @ginnyli2913 3 ปีที่แล้ว +2

    Noticed your change from MAX to MIN at around 10:23. HAHAHAH, great move!

  • @IreneGao-n9i
    @IreneGao-n9i ปีที่แล้ว

    Thanks for your explanations!! Very useful and clear to help the understanding!!

    • @ritvikmath
      @ritvikmath  ปีที่แล้ว

      Glad it was helpful!

  • @sararay6263
    @sararay6263 2 ปีที่แล้ว

    Great job Ritvik..such a cool explanation..love it!! Keep up the good work. Cheers!!

  • @timlonsdale
    @timlonsdale 2 ปีที่แล้ว

    I'm binging your videos. God tier teaching!

  • @AnganMitra007
    @AnganMitra007 2 ปีที่แล้ว

    Great presentation and thanks for the intuition!

  • @jackcashman1190
    @jackcashman1190 4 หลายเดือนก่อน

    Incredible explanation.

  • @elenapatsalou9229
    @elenapatsalou9229 ปีที่แล้ว

    You are great!!! keep going, finally, I understood the metropolis hastings algorithm idea xD

  • @tianlongwang7238
    @tianlongwang7238 ปีที่แล้ว

    hihi thanks for the video, i paused before 10:23 and working on the intuition of this, then i realize it shoud not be max of the two, and then i drag the bar and found you secretly change max to min. But the explanation is perfect and helped a lot!!!

  • @AlexanderNeblett
    @AlexanderNeblett 2 หลายเดือนก่อน

    Amazing explanation! Thank you.

  • @abhijitchoudhary01
    @abhijitchoudhary01 ปีที่แล้ว +1

    Look where you are currently at, look where you have been proposed to go. If the place where you have been proposed to go is of higher probability then you better go there. 👏👏❣

  • @matthewkumar7756
    @matthewkumar7756 3 ปีที่แล้ว +2

    This is the best explanation I've came across this. I've been trying to build the intuition outside of the math.
    In implementing this, say through a computer simulation, I frequently see that if the acceptance probability is between 0 and 1, it's compared to a random draw of the uniform distribution. I'm missing a link in the intuition/math about this component specifically. Can you elaborate a bit more? I kind of get it, but kind of don't.
    Looking forward to checking out the rest of your videos!

    • @ritvikmath
      @ritvikmath  3 ปีที่แล้ว +2

      that's actually a tricky concept to grasp; it took me some time too.
      Pretend the acceptance probability is 0.1. That means we want to accept this event 10% of the time and reject it 90% of the time. Now suppose we generate some uniform random number u between 0 and 1. Consider the two cases:
      1) u < 0.1 : this happens with probability exactly 10% (since it came from a uniform random distribution)
      2) u >= 0.1 : this happens with probability exactly 90% (since it came from a uniform random distribution)
      So we can exactly use the value of u to decide whether to accept or reject.

    • @matthewkumar7756
      @matthewkumar7756 3 ปีที่แล้ว

      @@ritvikmath What you describe above makes that step in the implementation so much more clear!
      Thanks for circling back to this (and so quickly), I really appreciate it.

    • @pradyumnadas6265
      @pradyumnadas6265 3 ปีที่แล้ว

      @@ritvikmath Why not sample from a binomial distribution with p = 0.1?

  • @diomerda111
    @diomerda111 2 ปีที่แล้ว

    man, you are so gifted as a teacher, keep up the good work :)

  • @itspulcio
    @itspulcio 2 ปีที่แล้ว +1

    Love this explenation!

  • @juanvillegas5580
    @juanvillegas5580 ปีที่แล้ว

    Wow this was such a nice explanation, kudos!

  • @claudiodicarlo2094
    @claudiodicarlo2094 2 ปีที่แล้ว

    insane quality video

  • @isaacadjetey9618
    @isaacadjetey9618 ปีที่แล้ว

    Yes , I was wondering why you had max instead of min at start. But you made the correction. Thanks

  • @bhardwajsatyam
    @bhardwajsatyam 11 หลายเดือนก่อน

    If only I had this video 2 years before it was published.

  • @yukachuenkarenyu2862
    @yukachuenkarenyu2862 9 หลายเดือนก่อน

    Thank you so so much that I finally understand metropolis hasting.🎉

    • @ritvikmath
      @ritvikmath  9 หลายเดือนก่อน

      I'm so glad!

  • @stefancovic5999
    @stefancovic5999 วันที่ผ่านมา

    Excellent video! Thank you!

    • @ritvikmath
      @ritvikmath  วันที่ผ่านมา

      You are welcome!

  • @DanyCywiak
    @DanyCywiak 4 หลายเดือนก่อน

    Amazing and super helpful video! 👏🏻👏🏻

    • @ritvikmath
      @ritvikmath  4 หลายเดือนก่อน

      Glad it was helpful!

  • @alexmonfis9305
    @alexmonfis9305 2 ปีที่แล้ว

    I'm doing a master on data science and you are saving me on bayesian stats! Thanks

  • @leieiei14
    @leieiei14 3 ปีที่แล้ว

    I found this video very helpful after I got confused in my course. Thank you very much!

  • @haresh5_5
    @haresh5_5 4 หลายเดือนก่อน

    simply amazing

  • @ingenierocivilizado728
    @ingenierocivilizado728 ปีที่แล้ว

    Very well explained! Thank you so much!

    • @cao2106
      @cao2106 ปีที่แล้ว

      Do you have any python code that uses MCMC to predict closing prices? Can I have it, thanks

  • @cynthpielin7334
    @cynthpielin7334 2 ปีที่แล้ว

    Thank you! Really amazing lesson. I really appreciate the intuition part at the end!

  • @zcqin
    @zcqin 4 หลายเดือนก่อน

    That is a great video, just one mistake on the whiteboard, though the idea is the same: the Max() function should be the Min() function.

  • @hannahnelson4569
    @hannahnelson4569 2 หลายเดือนก่อน

    I learned something! Very good video!

  • @pavanpatel5050
    @pavanpatel5050 2 ปีที่แล้ว

    Amazing explanation! MH was magic to me until I watched this! Thank you 🙏

  • @xingyihu9948
    @xingyihu9948 2 ปีที่แล้ว

    Thank you so much you explanation is the best!

  • @andreaskrmmerbagge8831
    @andreaskrmmerbagge8831 4 หลายเดือนก่อน

    Super well explained!

  • @robertbarta2793
    @robertbarta2793 ปีที่แล้ว

    Unbelievable well explained! Thx!

  • @xiaozhouzhu9933
    @xiaozhouzhu9933 3 ปีที่แล้ว +3

    Great video! Is Gibbs Sampling next?

    • @ritvikmath
      @ritvikmath  3 ปีที่แล้ว

      Yes! Coming out later today

  • @stefanocarini8117
    @stefanocarini8117 5 หลายเดือนก่อน

    Crystal clear! Thank you! :)

    • @ritvikmath
      @ritvikmath  5 หลายเดือนก่อน

      Glad it was helpful!

  • @talespereira6553
    @talespereira6553 ปีที่แล้ว

    This video was perfect! so clear!

  • @javadvahedi6278
    @javadvahedi6278 ปีที่แล้ว +1

    First of all many thanks for the nice and useful content and teaching approach. Secondly, could you introduce any textbook related your video series on Montecarlo calro, Markov chain,..., thanks in advance

  • @moeinpoi
    @moeinpoi 2 ปีที่แล้ว

    Wish there was a triple-like button. Perfect explanation. Thanks a lot!

  • @HetirasDzn
    @HetirasDzn 3 ปีที่แล้ว

    Thank you for the intuitive explanation.

  • @vasanthakumarg4538
    @vasanthakumarg4538 ปีที่แล้ว

    Great work!

  • @fraserrennie
    @fraserrennie ปีที่แล้ว

    Outstanding video

  • @omarfaroukzouak8089
    @omarfaroukzouak8089 8 หลายเดือนก่อน

    Thank you so much! That is truly helpful!

    • @ritvikmath
      @ritvikmath  8 หลายเดือนก่อน +1

      You're so welcome!

  • @noncsan
    @noncsan 2 หลายเดือนก่อน

    Hi, very amazing explanation! Do you have an intuition behind how the Hastings factor (rg in your video) works in case of the proposal distribution is asymmetric?

  • @dz7967
    @dz7967 10 หลายเดือนก่อน

    Nice video! One question: would we risk getting stuck at one of the higher-density areas when there are several peaks in p(x)

  • @SophieStardollCT
    @SophieStardollCT 9 หลายเดือนก่อน

    This is awesome, thank you

    • @ritvikmath
      @ritvikmath  9 หลายเดือนก่อน

      You're very welcome!

  • @liorbenharosh
    @liorbenharosh 3 ปีที่แล้ว +1

    hey man I love watching your videos I learn a lot from each one of them. I have noticed that I'm more likely to watch the video if the thumbnail contains you. Black background is probably not good as well. Just wanted to share it with you, maybe you should change the thumbnail format. The format of the videos themselves is really nice in my opinion, no need for change there.

    • @ritvikmath
      @ritvikmath  3 ปีที่แล้ว

      thank you for the feedback! I've been experimenting with different styles and direct feedback like this means so much!

  • @pan19682
    @pan19682 2 ปีที่แล้ว

    it is a very amazing lecture. you are really a very good gifted teacher. pls make more videos go on educating us

  • @CossZt6
    @CossZt6 6 หลายเดือนก่อน

    A question about the unnormalized distribution f(x): In a practical situation can f(x) consist of empirical data, for example, formulated as a histogram of occurrences of some quantity?

  • @tianjoshua4079
    @tianjoshua4079 3 ปีที่แล้ว

    This video is so well-made. Every time I rewatched it I learned something new. I suddenly get confused as to why we need the detailed balance condition. It seems to me that the acceptance rule works well on its own. And the acceptance rule is intuitive. Why do we need to derive the acceptance rule through the detailed balance condition?

    • @user-sl6gn1ss8p
      @user-sl6gn1ss8p 3 ปีที่แล้ว

      that's to make sure you're sampling the right distribution (through the markov chain, after the burn in). The acceptance rule can be show to be sampling from that condition and to lead to the desired "markov walk" because it satisfies this condition. Also historically the algorithm was created with this in mind, I think.

  • @sachinkshajil
    @sachinkshajil 3 ปีที่แล้ว +1

    Thank you, so very much for this video. It is very very helpful.

  • @MultiCraftTube
    @MultiCraftTube 3 ปีที่แล้ว

    Thank you for this great explanation!

  • @polares01
    @polares01 3 ปีที่แล้ว

    I love you man, thank you so much

  • @jiadong7873
    @jiadong7873 2 ปีที่แล้ว

    this is an amzing video!