What the Heck is Bayesian Stats ?? : Data Science Basics

Поділитися
Вставка
  • Опубліковано 2 лют 2025

КОМЕНТАРІ • 125

  • @TarunKumar-bw9lr
    @TarunKumar-bw9lr 3 роки тому +36

    I've been hearing about bayesian thinking from last 6 months and was watching multiple videos about it. I never understood priors, likelihood and posterior from rea life perspective but youtube recommended this hidden gem to me. I'm glad I came across your channel :)

  • @martingreler6236
    @martingreler6236 2 роки тому +3

    You're work is opening doors for me. Thank you!

  • @sarahscott7878
    @sarahscott7878 2 роки тому +4

    Wow, i never understood how bayesian thinking revolved around updating a prior belief. it was always so obscure to me, trying to reason around three distributions (prior, likelihood, posterior) But your one sentence "prior beliefs get updated w/ new data" really puts it into perspective. I had no idea the posterior was the updated prior. Thank you for such a great video!

  • @GregThatcher
    @GregThatcher 4 роки тому +3

    Great stuff. I've been trying to understand the Frequentist vs. Bayes reasoning for a long time, and now I get it. Thanks so much.

  • @realimaginary5328
    @realimaginary5328 3 роки тому +1

    Zero fluff and exceptional clarity. Updating my prior belief that I understood Bayesian thinking. Thank you Sir!

  • @ashishsharma214
    @ashishsharma214 26 днів тому

    God every minute of this video was too heavy. Took me around an hour to understand this 20 mins video, but thank you, you have literally made this concept so clear to me.

  • @rubencardenes
    @rubencardenes 3 роки тому +4

    So nicely explained! I really like how you go beyond the formulas, explaining the concepts, also with clear examples.

  • @bilalozbinzet2534
    @bilalozbinzet2534 3 роки тому +7

    This is the easiest, thus the best introduction to Bayesian Stat, I ever came cross. It transfer to knowledge from Frequentist Probability to Conditional Probability, then to Bayesian Probability in a concise manner. Thanks for it and the others...

  • @shiyangchen4010
    @shiyangchen4010 6 місяців тому +1

    Excellent work!!! You've made the content SO EASY to understand!

  • @pedrocolangelo5844
    @pedrocolangelo5844 3 роки тому +4

    I really don't know where I'd be without ritvikmath to explain these complex concepts in statistics. Thank you for an amazing video. This is certainly one of the best videos on Bayesian statistics on UA-cam.

  • @gaofan2856
    @gaofan2856 2 роки тому +1

    Excellent explanation. Thank you so much for your hard work. I'm watching your vids just for entertainment after work :)

  • @sasakevin3263
    @sasakevin3263 Рік тому

    The explanation of this concept is often presented in a dry manner with formulas, while some use engaging and intricate animations to explain it. However, you excel in your ability to intuitively convey how we should understand it. This approach is highly effective as it links science directly to our lives. I particularly appreciate your style.

  • @robinbartmann6774
    @robinbartmann6774 3 роки тому +2

    Hey ritvikmath
    This is pure genius - literally the best video I saw about explaing the basics of bayesian statistics. I really understood it now & as I am writing my thesis about prediciting carbon price with bayesian stats (and the new shrinkTVP package in R) this really helps me a lot.
    One idea that tripped me up a bit is between 9:30-10:00, as you talk about dividing 15/170 and I thought: isn't the probability that I hear the noise 20/170? After rewatching a few times I know what you mean - just something that might make it even better as it already is. Thanks for providing real value!

  • @BetoAlvesRocha
    @BetoAlvesRocha Рік тому

    What a great explanation about the Bayesian Reasoning. I'll have a test about Bayesian Inference and this video helped me to have more clues about this topic. Thanks for the kind introduction for this subject, mate!
    Cheers from Brazil!

    • @BetoAlvesRocha
      @BetoAlvesRocha Рік тому

      Just a piece of advice, mate: everytime you make a video using the white board, give us some seconds at the end to take a print screen of it. It helps a lot of the notes here. But, again, nicely done! Thanks for the amazing class!

  • @itsbearableforthisweek
    @itsbearableforthisweek 5 місяців тому

    I was lost in the middle but got it by the end, lovely! Good job.

  • @santosharakere
    @santosharakere 2 місяці тому

    The best intro to understand the fundamentals of Bayesian, thank you.

  • @DeltaPi314
    @DeltaPi314 3 роки тому

    This channel needs more subs, more likes and more views.
    How is Bayesian Stats being explained here better than my undergrad prof did live? HOW?!

  • @mrinalde
    @mrinalde 2 роки тому

    Good job Ritvik. There are few explanations I have seen in the past, I will recommend your video from now on :)

  • @jacksonli4705
    @jacksonli4705 4 місяці тому

    Been hearing about it, asked around many times but i still didn't get it. Thank you for finally elucidating this concept in a clear manner!

  • @albert6737
    @albert6737 3 роки тому

    Never have I ever thought of bayes theorem in this way. This video has changed my thinking. Thank you

  • @omarboukherys5216
    @omarboukherys5216 4 роки тому +22

    I was waiting for this video, plz do a serie about bayesian statistics and explain how we can do it, estimating parameters ....!!! 🙏🙏🙏

    • @ritvikmath
      @ritvikmath  4 роки тому +6

      Thanks for the suggestion!

    • @lossmoss
      @lossmoss 4 роки тому +2

      @@ritvikmath Yes, please do this if you have time.

    • @erikaavanic912
      @erikaavanic912 3 роки тому +2

      Agreed, that would be sooo so very helpful - your other videos make it a lot easier to understand. thank you!!

    • @adwaydas6194
      @adwaydas6194 3 роки тому +2

      I agree. Please do that. 🙏🙏🙏

  • @abdulelahaljeffery6234
    @abdulelahaljeffery6234 3 роки тому +1

    this is, seriously, top notch stuff ❤️❤️
    would love to have more bayesian topics ...
    how dose the markov chain monte carlo algorithm works? gibbs sampling? all those bayesian concepts

  • @federicocardona4716
    @federicocardona4716 4 місяці тому

    Excellent! Now I've finally got it, thanks to you. Congratulations!

  • @lauravargasgonzalez9317
    @lauravargasgonzalez9317 2 роки тому

    Another great video. Thanks a lot, you have no idea how much you had help me

  • @shubhampandilwar8448
    @shubhampandilwar8448 4 роки тому +2

    Very well explained. Bayesian statistics is always confusing to grab. This video made it clear. People without a lot of statistics can also grasp it very comfortably.

  • @immersivestudyandliving4272
    @immersivestudyandliving4272 4 роки тому +2

    I used Naive bayes classifier in my final class project last semester. You explained Baysian Stats nicely. Keep posting good contents 👍.

  • @benjamindilorenzo
    @benjamindilorenzo 4 роки тому +1

    nice! I was asking my professor this morning exactly this kind of questions: How can I differentiate between conditional probability and bayes theorem and when to use what? This Video breaks down very good the problems that need to be understood to notice the difference. By the way your videos get better, and you start to talk more calm and a bit better to understand.
    Thank you!

    • @ritvikmath
      @ritvikmath  4 роки тому

      Thanks for the kind words!

  • @djfl58mdlwqlf
    @djfl58mdlwqlf 3 роки тому +1

    this is insane
    your videos are so valuable

  • @spencerreid2765
    @spencerreid2765 2 роки тому +1

    You made it so clear and easy to understand, thank you very much.

  • @kimtaewoo5947
    @kimtaewoo5947 3 роки тому

    You are a really good educator. I'm excited to watch other videos in your channel.

  • @mgm8997
    @mgm8997 3 роки тому +2

    Awesome explanation! Keep up the excellent work 👏👏

  • @MS-fw4kf
    @MS-fw4kf 3 роки тому +1

    hands down one of the best explanations!

  • @hyz5741
    @hyz5741 4 роки тому +3

    I still remember that I took Bayesian Statistics in college, and that was one of my favorite class!

  • @Crualaiocht
    @Crualaiocht 3 роки тому +1

    Thank you for this explanation. I like your teaching style.

  • @asjsingh
    @asjsingh 2 роки тому

    Wow! That was an incredibly skillful and clear explanation of Bayesian stats. I had real trouble understanding it for the past year even after applying it in my work. This really spelled out what I was actually trying to do. Thank you!

  • @hamzaabbasi8619
    @hamzaabbasi8619 Місяць тому

    People like you are the reason why I pay my internet bill ❤

  • @saisiddharthametta5252
    @saisiddharthametta5252 2 роки тому +2

    This just cleared most of the doubts on the fundamentals I had during my undergrad days. Very intuitive and very helpful!

  • @marsellosful
    @marsellosful 2 роки тому +6

    A very good video. A suggestion: better to use different numbers in the example to avoid confusion. For example, at your first table, the "15" is two times, once at (B,N) and secondly at (S,~N). If you would say (S,~N)=20 then, again, it would be confusing as you add up the 15+20 and the total N is 20 (possible confusion). If (S,~N)= 16, then numbers would be different and the example would limit possible confusions. I got confused at the beginning and I thought you may find useful my observation.

    • @ritvikmath
      @ritvikmath  2 роки тому

      Good suggestion! Thank you

  • @sachingoud6064
    @sachingoud6064 3 роки тому

    Great work. Really like your videos!
    Thank You.

  • @paulbearcamps
    @paulbearcamps Рік тому

    Awesome video. Finally understand. Thanks so much for your help!

  • @yaseenmohmand1224
    @yaseenmohmand1224 Рік тому

    thank you for explaining this so well!
    I wish you had taken even longer to explain these concepts, the cuts in between the video are a little distracting.

  • @rajatadimeti2398
    @rajatadimeti2398 4 роки тому +1

    Thank you very much for clearly explaining the concept.

  • @yuzhujiang5018
    @yuzhujiang5018 4 роки тому +3

    I love how you explain the concepts. That's very clear and helpful. Could you please do some deep learning (CNN, RNN etc) videos? And also for ML, could you talk about the specific Validation methods that we can apply to Time Series. Thank you!!!!

    • @ritvikmath
      @ritvikmath  4 роки тому +1

      Great suggestion!

    • @hemantnyadav
      @hemantnyadav 4 роки тому

      Hi, I am also working on Time Series forecasting(One of very interesting for me)... If @ritvikmath makes videos it will be more interesting.

  • @adamtran5747
    @adamtran5747 2 роки тому

    Absolutely love the content

  • @ieserbes
    @ieserbes Рік тому

    Amazing explanation. Thank you so much.

  • @babaumar4188
    @babaumar4188 Рік тому

    Wow, amazing elucidation. Thank a lot.

  • @AYUSHKUMAR-cc7id
    @AYUSHKUMAR-cc7id 2 роки тому

    This is really good. Please do a complete series in forecasting and TimeSeries including auto regression/ moving averages/ARMA models/non linear models/GARCH/ARCH/cointegration etc. etc.)

  • @evenblackercrow4476
    @evenblackercrow4476 3 роки тому

    You're a great resource. Thanks very much

  • @dankelman-k7i
    @dankelman-k7i Рік тому

    What a perfect video! Thank you!

  • @esquire9445
    @esquire9445 3 місяці тому

    This is the 4th video I’ve watched trying to understand what Bayesian stats are… and it’s the first one that makes sense….

  • @samrudhithakar5682
    @samrudhithakar5682 Рік тому

    Dude! You are good! Really good.

  • @pipertripp
    @pipertripp Рік тому +1

    Regarding your final point, what's wrong with just having a weak prior? The data you collect will then drive the posterior and as you collect more data, the priors will become less and less relevant.

    • @هشامأبوسارة-ن7و
      @هشامأبوسارة-ن7و Рік тому

      100% right as the updating mechanism of Bayes theorem gives more weighting to the incoming data as you collect more data, hence rendering the prior belief less and less impactful on your decision.

  • @rahilbalarmartingarrix
    @rahilbalarmartingarrix 3 роки тому

    Great explanation!

  • @steveh4920
    @steveh4920 Рік тому

    great video - very well explained

  • @alishasapkota4311
    @alishasapkota4311 2 роки тому

    Thank you for best explanation. :)

  • @aidanabregov5929
    @aidanabregov5929 3 роки тому

    Wish I had discovered this BEFORE finals week!

  • @srilamaiti
    @srilamaiti 3 роки тому

    Nicely explained the concepts, formula and examples. Can you please make a video on hierarchical time series and multiple time series forcasting?

  • @rrio7171
    @rrio7171 Рік тому

    thank you, really good video easy to understand

  • @joycwang
    @joycwang 2 роки тому

    So well explained!

  • @caustinolino3687
    @caustinolino3687 9 місяців тому

    4:09 In approach 1, why do you calculate frequentist probability of the phone being in the bedroom upon hearing the cell phone noise as 15/150? Why should the denominator be 150, since 150 is the sum of both kinds of noises?
    135 of those 150 times it was in the bedroom, you heard some other noise. So in approach 1 asking P(N|B), you're asking the probability of in the bedroom after only the cell phone noise, not some other noise. So how are the 135 instances of some other noise relevant? Why isnt the relevant stat for "in the bedroom given the cell phone noise" 15/20 even in approach 1?

  • @BeeZedits
    @BeeZedits 2 роки тому

    sick flip!

  • @chenqu773
    @chenqu773 3 роки тому +1

    I watched this 3 times. Finally, I think I got it !

  • @fgdf1072
    @fgdf1072 3 роки тому

    is approach 1 could be regarded as kind of frequentist method?

  • @osamaali3748
    @osamaali3748 2 роки тому

    Man you are the best

  • @DeltaPi314
    @DeltaPi314 3 роки тому

    I am currently doing a seminar on Data Science for Risk Evaluation in Banking. And I am trying to apply this to calculating the Default Probability. Hope I got it right.

  • @ChocolateMilkCultLeader
    @ChocolateMilkCultLeader 3 роки тому

    Do you have any social media. Your videos on Bayesian statistics are amazing, and would love to share them with my network

  • @resocipher873
    @resocipher873 3 роки тому +1

    Might be a silly question but why doesn't the result in approach in 2 equal the final result? For example P(B/N) is 75% in approach 2 then after you expand it equals to 8.8%?

    • @dinber19
      @dinber19 2 роки тому

      Because he doesn't divide by P(N)

    • @Idonotwanthandle
      @Idonotwanthandle 6 місяців тому

      Also because 0.88 is rounded value, actually it is 0.8823…

  • @pedrazzinig
    @pedrazzinig 11 місяців тому

    Well done

  • @lalasalalasa2428
    @lalasalalasa2428 2 роки тому

    Yes I got a good understanding

  • @Idonotwanthandle
    @Idonotwanthandle 6 місяців тому

    To anyone wondering why Bayesian approach didn’t match “Approach 2” probabilities, this is because P(B) = 150/170 is not 0.88, but 0.882352… If you calculate precisely l, than 1/3 proportion would remain.

  • @sgpleasure
    @sgpleasure 3 роки тому +2

    So, if the objective is to find the probability to check either the bedroom or study, approach-1 was never the correct approach?

  • @Neuroszima
    @Neuroszima 3 дні тому

    Ok so i have one question:
    Should we accept probality *P(B|N)* from the "Bayesian update" (which is roughly (0.088 / (0.03 + 0.088) = 74.5%) or should we accept the probability stated with "Aproach 2"? Or are they different things completly? The reason i point this out is that you used the same symbols for both quantities and did not eplain the difference

  • @johanrodriguez241
    @johanrodriguez241 4 роки тому +1

    very clear, and very interesting but now i'm thinking about the next natural step, how to apply it in data science?. Could be nice to see different implementations like bayesian optimization to get an idea of its power.

  • @yashasvi5293
    @yashasvi5293 Рік тому

    The perfect video for understanding bayesian stats, priors, Likelyhood... thanks bhai.... I usually never comment but this thin was making me sick understanding🙂

  • @gcumauma3319
    @gcumauma3319 3 роки тому

    Excellent

  • @shravone3036
    @shravone3036 3 роки тому

    This was awsome!

  • @HuongGiangNguyen-qt3sm
    @HuongGiangNguyen-qt3sm Рік тому

    Thank you.

  • @jakewhitworth3116
    @jakewhitworth3116 3 роки тому

    So correct me if I’m wrong, Bayesian thinking is just taking the way you’d normally do conditional probability and just doing the inverse of that? My question makes me think I didn’t fully grasp the concept lol

  • @lamduongtung8783
    @lamduongtung8783 4 роки тому +1

    awesomeeeee

  • @roopanjalijasrotia3946
    @roopanjalijasrotia3946 2 роки тому

    You da best!!

  • @cyan_aura
    @cyan_aura 2 роки тому +1

    @ritvikmath If you start a patreon or even add donation options in youtube, I'll gladly pay, and I'm sure many folks would do the same. These explanations are truly remarkable and they drive the point home so effortlessly. Thanks a lot for your contribution to the ML/DS community.

  • @johnhausmann2391
    @johnhausmann2391 Рік тому

    This example is somewhat confusing. If I know it's in the apartment, then I would just check the place where it's most likely based on P(B) vs P(S). Why would I go through the extra step of calling my phone?

  • @kafaayari
    @kafaayari 3 роки тому

    This guy is genius.

  • @rosierui8119
    @rosierui8119 4 роки тому +1

    i'm your biggest fan in Shanghai!!

    • @momodoubjallow2585
      @momodoubjallow2585 4 роки тому

      Are you sure I watch his videos more in Guangzhou. :)

    • @ritvikmath
      @ritvikmath  4 роки тому

      Well, a big thanks to both of you haha :)

    • @momodoubjallow2585
      @momodoubjallow2585 4 роки тому

      @@ritvikmath you are welcome and keep the great work going!!!

  • @rajavelks6861
    @rajavelks6861 2 роки тому

    Thanks Ritvik.
    Rajavel KS
    Bengaluru

  • @ramankutty1245
    @ramankutty1245 4 роки тому

    Very good

  • @ivancarlson953
    @ivancarlson953 Рік тому

    In Summary, the phone being in the bedroom is 3.00x more likely there is noise than the phone being in the study. The phone being in the bedroom is 9.00x more likely there is no noise than the phone being in the study. There is no noise is 1.20x more likely the phone being in the bedroom than there is noise. There is noise is 2.50x more likely the phone being in the study than there is no noise. There is noise given the phone being in the study is 2.50x more likely than there is noise given the phone being in the bedroom. There is no noise given the phone being in the bedroom is 1.20x more likely than there is no noise given the phone being in the study.
    Let’s say the prevalence or prior probabilities for the phone being in the bedroom is 88.24% (odds of 7.50x or chances of 100 for every 113), and for the phone being in the study is 11.76% (0.13x or 100 for every 850), whether or not there is noise. In a world of the phone being in the bedroom, 10.00% (0.11x or 100 for every 1000) is there is noise, let’s say, and 90.00% (9.00x or 100 for every 111) is there is no noise. In a world of the phone being in the study, 25.00% (0.33x or 100 for every 400) is there is noise, let’s say, and 75.00% (3.00x or 100 for every 133) is there is no noise. Thus, the phone being in the bedroom is 0.40x as likely there is noise as the phone being in the study. Also, the phone being in the bedroom is 1.20x as likely there is no noise as the phone being in the study. We know this as the Likelihood Ratio, Risk Ratio, or Bayes Factor.
    The prevalence of there is noise, or there is no noise, regardless of the phone being in the bedroom or the phone being in the study, is 11.76% (0.13x or 100 for every 850), and 88.24% (7.50x or 100 for every 113), respectively. Therefore, which is more likely? In a world of there is noise, the posterior probability of the phone being in the bedroom is 75.00% (3.00x or 100 for every 133), and the phone being in the study is 25.00% (0.33x or 100 for every 400). In a world of there is no noise, the posterior probability of the phone being in the bedroom is 90.00% (9.00x or 100 for every 111), and the phone being in the study is 10.00% (0.11x or 100 for every 1000). The probability of the phone being in the bedroom, and there is no noise is 79.41% (3.86x or 100 for every 126). The probability of the phone being in the study, and there is noise is 2.94% (0.03x or 100 for every 3400). The probability of the phone being in the study, and there is no noise is 8.82% (0.10x or 100 for every 1133).
    Sensitivity analysis:
    What would the prevalence or prior probabilities for the phone being in the bedroom, and the phone being in the study, whether or not there is noise, need to be such that in a world where the phone being in the bedroom given there is noise, and the phone being in the study given there is noise, that both these posterior probabilities are equally likely? In other words, we’d be indifferent? The prevalence of the phone being in the bedroom would need to be 71.43% (2.50x or 100 for every 140), and the phone being in the study would need to be 28.57% (0.40x or 100 for every 350), all else being equal. Similarly, what would the prevalence or prior probabilities for the phone being in the bedroom, and the phone being in the study, whether or not there is no noise, need to be such that in a world where the phone being in the bedroom given there is no noise, and the phone being in the study given there is no noise, that both these posterior probabilities are equally likely? In other words, we’d be indifferent? The prevalence of the phone being in the bedroom would need to be 45.45% (0.83x or 100 for every 220), and the phone being in the study would need to be 54.55% (1.20x or 100 for every 183), all else being equal.
    What would the consequent probabilities or likelihoods for there is noise given the phone being in the bedroom, and there is no noise given the phone being in the bedroom, need to be such that in a world where the phone being in the bedroom given there is noise, and the phone being in the study given there is noise, that both these posterior probabilities are equally likely? In other words, we’d be indifferent? The likelihood of there is noise given the phone being in the bedroom would need to be 3.33% (0.03x or 100 for every 3000), and there is no noise given the phone being in the bedroom would need to be 96.67% (29.00x or 100 for every 103), all else being equal. Similarly, what would the consequent probabilities or likelihoods for there is noise given the phone being in the study, and there is no noise given the phone being in the study, need to be such that in a world where the phone being in the bedroom given there is noise, and the phone being in the study given there is noise, that both these posterior probabilities are equally likely? In other words, we’d be indifferent? The likelihood of there is noise given the phone being in the study would need to be 75.00% (3.00x or 100 for every 133), and there is no noise given the phone being in the study would need to be 25.00% (0.33x or 100 for every 400), all else being equal.
    What would the consequent probabilities or likelihoods for there is noise given the phone being in the bedroom, and there is no noise given the phone being in the bedroom, need to be such that in a world where the phone being in the bedroom given there is no noise, and the phone being in the study given there is no noise, that both these posterior probabilities are equally likely? In other words, we’d be indifferent? The likelihood of there is noise given the phone being in the bedroom would need to be 90.00% (9.00x or 100 for every 111), and there is no noise given the phone being in the bedroom would need to be 10.00% (0.11x or 100 for every 1000), all else being equal.

  • @dharmatycoon
    @dharmatycoon Рік тому

    I'm so confused as to how he can calculate that P(B|N) = 15/20 = 0.75, whilst with Bayes theorem he calculates that P(B|N) = 0.88/P(N).. Wouldn't that give us P(B|N) = 0.88/20 = 0.04?? That's a totally different number from 0.75!

  • @yarenlerler67
    @yarenlerler67 Рік тому

    Vaov!

  • @blvck265
    @blvck265 3 роки тому

    So Bayesian would work really well in cases where you have lots of data on already occurred past events, go to know! Now learn how to apply it lol.

  • @aishkhan7433
    @aishkhan7433 4 роки тому +1

    What's your insta or fb account?

  • @robertwest6244
    @robertwest6244 4 роки тому +1

    I think Bayesian methods receive too much criticism. All analyses can be used with really uninformative prior distributions that don’t take analyst bias into account