Naive Bayes classifier: A friendly approach

Поділитися
Вставка
  • Опубліковано 28 вер 2024

КОМЕНТАРІ • 197

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

    No concept is too difficult to understand if its explained in the way that it can be comprehended. Great job Luis! I keep coming back to your videos whenever I am stuck. You style of explanation with examples is amazing.

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

    you are the coach who could teach students two weeks before the exams and get all students to get distinctions. I only wish if you took up Master classes.. Guys would be pouring to take up your master classes

  • @arunabhadeb5916
    @arunabhadeb5916 4 роки тому +4

    Such a brilliant explanation. Thank you Luis. Kindly add more lectures on traditional ML related topics.

  • @08ae6013
    @08ae6013 5 років тому +157

    This is the best explanation of Naive Baye’s & Baye’s theorem ... you rocked it ... Thanks for this

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

    This is the best explanation of Naive Bayes I have seen or read. Better than Bishop. It starts with a crystal clear, intuitive example and concludes with a thorough explanation of how to apply Bayes' theorem. Thank you so much for this.

  • @ManzoorKhan-kk6qk
    @ManzoorKhan-kk6qk 4 роки тому

    Appreciate the way (visualization) you explained a more complicated concept.

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

    First time ever I understood this Naive Bayes. Thank you so much

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

    one of the best videos on Naive Bayes

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

    Fantastic explanation! Such amazing teaching skills! I wish every teacher was like you! Great work and thank you!

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

    Gemini: This video is about Naive Bayes classifier, a spam detector which is based on Bayes theorem.
    The video uses an example of building a spam detector to illustrate the concept. The idea is that we can classify an email as spam or not spam based on the presence of certain words in the email. For instance, emails containing the word "buy" are more likely to be spam than those which do not contain "buy".
    Bayes theorem allows us to calculate the probability of an event (e.g. an email being spam) given another event (e.g. the email containing the word "buy"). The video uses a simple example with two properties (presence of "buy" and presence of cheap") to illustrate this concept.
    However, the challenge arises when we want to consider more than two properties at the same time. Ideally, we would like to calculate the probability of an email being spam given the presence of all the properties we are considering (e.g. "buy", "cheap", "work").
    But calculating the probability of all these properties appearing together becomes cumbersome as the number of properties increases. This is where the Naive Bayes assumption comes in. Naive Bayes assumes that all these properties are independent of each other. This assumption although not always true, simplifies the calculation significantly.
    The video concludes by explaining how the Naive Bayes classifier works with this assumption and shows how to calculate the probability of an email being spam given multiple properties.

  • @aztmln
    @aztmln 5 років тому +1

    Thanks Luis. This was a lot easier to follow than most of my profs to be honest. The fact that you explained first and then put it in equation terms now helpsme remember the equation and understand it better. Many many thanks ! and God Bless

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

    so much more clearer than my professor explaining it for 80 minutes

  • @pratiksingh9480
    @pratiksingh9480 5 років тому

    My first encounter with your teaching style was in the Pytorch Udacity Challenge , I loved it ,and following you since then.

  • @matthewsherwood15
    @matthewsherwood15 5 років тому

    Amazing, been researching this for a while and the way you break this down really gets through

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

    Beautifully and clearly explained....Thank You sir.

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

    Explained intuitively! Thanks! :)

  • @1tejashri
    @1tejashri 2 роки тому

    Best explanation. Thank you.

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

    Thank you so much for the crisp and clear explanation !!

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

    Thanks for your detailed and friendly explanation. It really helps me a lot :)

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

    I think the probabilities you picked might be a bit confusing, didactically: P(S|B) happens to be equal to P(B|S) in the Bayes formula at 17min.

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

    Thanks, it's the best explanation!

  • @anilpillai9180
    @anilpillai9180 5 років тому +4

    Awesome explanation...👍

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

    Amazing explanation, thank you for making my life easier.

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

    Thank you as always. Top tier stuff.

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

    Great explanation

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

    Kindly Make a video on Expectation Maximization

  • @md.shafiqulislam5692
    @md.shafiqulislam5692 5 років тому +1

    Excellent explanation..

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

    Beautiful and Effective.
    Thank you!

  • @kunalr_ai
    @kunalr_ai 5 років тому +1

    Thanks for the episode

  • @zhenxingzhang6429
    @zhenxingzhang6429 5 років тому

    thank you! its really well explained and good animation. please do a video on Generalized linear model.

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

    Thanks A LOT! great video!

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

    dude.. you are amazing

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

    At 6:55 how did you conclude 0.5% ? Please make it clear

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

    Thanks

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

    excellent! best video out there :) many, many thanks

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

    Thx a lot

  • @frogfrog1993
    @frogfrog1993 5 років тому

    the best of best

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

    Perfect

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

    1:31 I counted 80 non spam mails, you should have chopped off one column there!

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

    How 10% of 5% is equal to 0.5?

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

    Probability that he is the god =100%

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

    Wow!!!!! Great

  • @ravishankerjonnalagadda1390
    @ravishankerjonnalagadda1390 5 років тому +1

    Hi Luis, it would be great to see you publish videos more frequently and yes, could you please tell how any of us could reach out to you be it email or personal message

    • @SerranoAcademy
      @SerranoAcademy  5 років тому

      Thank you! Definitely, the easiest is to add me on linkedin: linkedin.com/in/luisgserrano/ or you can also see my data in the "about" page in the channel.

    • @ravishankerjonnalagadda1390
      @ravishankerjonnalagadda1390 5 років тому

      @@SerranoAcademy thank you, adding you on LinkedIn

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

    Why is it assumed that 0.5% of the words contain buy and cheap

  • @abhimanyutiwari100
    @abhimanyutiwari100 5 років тому

    Could you explain how you calculated "0.5% 'buy' and 'cheap" (at 6:52)?

    • @hivjkry
      @hivjkry 5 років тому

      Abhimanyu tiwari I guess 5% of 10%
      (5/100)*10 in percentage units
      which is 0.5%. Good luck!

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

    You sound like Heath Ledger alias Joker :)

  • @كيوبتلتقنيةالمعلومات-ل5ك

    You dont get it if u dont know how to explain it ... great video

  • @ichallengemydog
    @ichallengemydog 5 років тому +62

    The two people who disliked were looking for baes, but got Bayes.

  • @Adenosene
    @Adenosene 5 років тому +33

    This is explained so well, this video is so beautiful that I want to cry

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

      same here

    • @OzScout66
      @OzScout66 4 роки тому +4

      I am crying as I type this line...... *snif* .....so good !

  • @drranjitha
    @drranjitha 5 років тому +10

    "So if you like formulas..." OMG! Thank you so much, Dr. Serrano. You helped my brain find the missing piece in my puzzle. The whole explanation was so clear but the formula helped me transition from Bayes to Naive Bayes. I was looking for the missing piece in youtube and somehow landed on your video. I actually came here after attending your AIND class.

  • @mrtandon5278
    @mrtandon5278 5 років тому +13

    It's been around 8 months, I'm moving towards ML and your guidance, teaching strategy are playing major role in it.
    I can't simply say thank you.
    Stay blessed.

    • @SerranoAcademy
      @SerranoAcademy  5 років тому +1

      Thank you, that's really nice to hear! Keep up the good work in ML!

  • @meirgoldenberg5638
    @meirgoldenberg5638 5 років тому +1

    Maybe I missed this part in the video, but Naive Bayes assumes only conditional independence. For example, this training set suggests that the words "Buy" and "Cheap" are far from being (unconditionally) independent. Namely, P("Buy")=P("Cheap")=25/100=1/4. So, if the two words were independent, we would expect P("Buy" and "Cheap")=1/16=6.25%. However, there are 12 emails containing both words out of 100, which is 12%.

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

      I have exactly the same remark

  • @sayakpaul3152
    @sayakpaul3152 5 років тому +22

    Beautiful Luis. You clearly draw the distinction between an educator and an instructor.

  • @NitinPandya26
    @NitinPandya26 5 років тому +8

    Great Explanation for Bayes Theorem, I have never understood naive Bayes so well....Thanks for this Luis

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

    Awesome session.. Thanks a million!! God Bless..

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

    Thank you very much for this video. I've spent days trying to work out intuition on how to apply the Naive Bayes for spam detection, but all other videos just repeat the Bayes probability formula and show you the answer. Formulas give you 0 understanding unless you figure out the logic behind the approach, and only then they become useful.

  • @chaitakmukherjee
    @chaitakmukherjee 5 років тому +2

    This is the really the best explanation of naive bayes...that beats even Andrew Ng's and many other's...

  • @NitinPandya26
    @NitinPandya26 5 років тому +4

    Hey Luis, can you explain bayes theorem with laplace corrections applied to it when, cond prob is zero

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

      Just add the numerator with 'alpha' and denominator with 'k'*'alpha' for each class probabilities, where k is no of classes (here binary, so 2) and typically alpha is a hyper parameter (varies between 10^-3 to 1).

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

    Thank you, Luis. Your classes are amazing, keep the good work.
    Best regards from Brazil.

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

    Great explanation...It was very easy to understand Naive Bayes ...Thank you very much for this video...!!

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

    Came here from "codebasics" youtube channel.
    pretty amazingly explained by you man.. Thanks a lot..

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

    Great Explanation! Can someone please explain how we get for P(B/S) = 20/25? @ 17:45

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

    Really amazing sir❤ love from India, watching you videos on 3G internet 😅

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

    First I saw the video from 3b1b then from statquest. Both of them are great videos. But I was not able to find a connection between them. Your video helped me to connect all the dots

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

    I love these easy explanations though it's that easy I cant connect them to the formulas and stuff I read before. That would have been great if you've done that too.

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

    Thank You for Such Clear and Well structured Explanation!.

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

    Wow ... I love the way you present this topic. Thank you very much.

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

    Absolutely fantastic explaination. Thank you so much for this.

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

    Explained with great simplicity, thanks for this!

  • @junecnol79
    @junecnol79 5 років тому +3

    thank you for excellent explanation !

  • @MrDejurado
    @MrDejurado 5 років тому +1

    This video is SOLID!!! Thank you so much for this and please keep making more videos! You made this concept so digestible it is not even funny.

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

    indeed! best explanation of Naive Baye’s & Baye’s theorem

  • @tubewatcher77
    @tubewatcher77 5 років тому +1

    Finally, I noticed that there is a difference between Bayes theorem and Naive Bayes.

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

    Really great 🙏 my understanding is much better now 😊

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

    awesome explanation. thank you very much :)

  • @JRobertoArt
    @JRobertoArt 5 років тому +2

    Great video dude, helped a lot. Thank U.

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

    Thank You for this video. You are an inspiration ❤️

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

    wow, that was wonderful explanation. thatnks!

  • @MichelC2000
    @MichelC2000 5 років тому +2

    This is really good! Thank you so much for your time and effort to make this topics accessible to the masses 🙂

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

    Best Naive Bayes explanation ever! thank U Luis

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

    Would love to see you explaining Kalmanfilter

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

    PLEASE COULD YOU SEND LINK TO DOWNLOAD THIS PRESENTATION?

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

    This is really FRIENDLY. Thank you!

  • @albertli7044
    @albertli7044 5 років тому +1

    your video should be the first result of "naive bayes"

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

    Muchísimas gracias, profesor Serrano! =)
    I've seen many explanations in UA-cam regarding naive bayes, most of them from channels that I really appreciate, but your explanation is the best one by far. Thank you so much for making the link between the logic and the bayes formula!

  • @Shadowdoctor117
    @Shadowdoctor117 5 років тому +1

    Amazing breakdown! I liked how you made it visually first and gradually turned it into the formula. That really made it click in my head!

  • @feggak
    @feggak 5 років тому +1

    Holy, what a good explanation of the concept, damn dude. Thanks alot!

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

    Excellent explanation. Thank you 🙏

  • @corymaklin7864
    @corymaklin7864 5 років тому +1

    Very well done thank you

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

    very clear explanation, thank you!

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

    The people who unliked this are the spams :P

  • @jamesimmordino4855
    @jamesimmordino4855 7 місяців тому

    Great explanation , perfectly paced.

  • @kjoemack7013
    @kjoemack7013 5 років тому +1

    no thank you Luis you are an excellent educator

  • @ShubhamSingh-cw5pd
    @ShubhamSingh-cw5pd 4 роки тому

    Amazing explaination so far .. I am watching this in morning and you literally made my morning ... I have one question (after that I would understand it perfectly).. After training your Naive Bayes model, the output of the whole model is in terms of probability, ie, P(S/(buy and cheap)) and P(not S / (buy and cheap)).. right ? if yes, what happens in testing phase of the naive bayes model, I mean how this works during testing phase.. eagerly waiting for your reply sir :)

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

    Thank you very very much, I would probably liked your video twice if it was possible. It's so clear and plain that after a while, I again came back to it for reviewing naive bayes.

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

    Thomas Bayes wouldn’t have explained it better !! Thank you for this explanation 👏🏼👏🏼👏🏼

  • @UncleLoren
    @UncleLoren 5 років тому

    GREAT explanation. But it didn't click for me until the 2nd half. Stick with it folks....and thank you, Professor Serrano!

  • @dragolov
    @dragolov 5 років тому +1

    Thank you so much for this video, Luis! Respect!

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

    This is a beautiful explanation!

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

    Excellent video. So well explained!