Conditional Probabilities, Clearly Explained!!!

Sdílet
Vložit
  • čas přidán 2. 08. 2024
  • One the most fundamental concepts in Probability, Statistics and Bayesian Statistics is Conditional Probability. In this StatQuest, we walk you through what Conditional Probabilities are and how to calculate them using raw data as well as unconditional probabilities. BAM!!!
    For a complete index of all the StatQuest videos, check out:
    statquest.org/video-index/
    If you'd like to support StatQuest, please consider...
    Buying my book, The StatQuest Illustrated Guide to Machine Learning:
    PDF - statquest.gumroad.com/l/wvtmc
    Paperback - www.amazon.com/dp/B09ZCKR4H6
    Kindle eBook - www.amazon.com/dp/B09ZG79HXC
    Patreon: / statquest
    ...or...
    CZcams Membership: / @statquest
    ...a cool StatQuest t-shirt or sweatshirt:
    shop.spreadshirt.com/statques...
    ...buying one or two of my songs (or go large and get a whole album!)
    joshuastarmer.bandcamp.com/
    ...or just donating to StatQuest!
    www.paypal.me/statquest
    Lastly, if you want to keep up with me as I research and create new StatQuests, follow me on twitter:
    / joshuastarmer
    0:00 Awesome song and introduction
    1:11 Filling in a contingency table
    4:45 Calculating conditional probabilities from counts
    8:00 Calculating conditional probabilities from unconditional probabilities.
    #StatQuest #Probability #Bayesian

Komentáře • 381

  • @statquest
    @statquest  Před 3 lety +74

    NOTE: Conditional probabilities can be written two ways: a "long" version and a "short" version. In this video I use the long version (because it's easier for me to read)...
    P(A and B | B) = P(A and B)/P(B)
    ...however, the short version is commonly used...
    P(A | B) = P(A and B)/P(B)
    Both mean the same thing, in other words: P(A and B | B) = P(A | B). The short version implies the "and B" part.
    Support StatQuest by buying my book The StatQuest Illustrated Guide to Machine Learning or a Study Guide or Merch!!! statquest.org/statquest-store/

    • @exploringdiversity572
      @exploringdiversity572 Před 3 lety +4

      Your version is much easier for non-statisticians like me :)

    • @statquest
      @statquest  Před 3 lety +8

      @@exploringdiversity572 bam!

    • @chandrashekar316
      @chandrashekar316 Před 4 měsíci +1

      omg this cleared up so much confusion i had from reading my text book where they were using the shorthand

  • @pomegranate8593
    @pomegranate8593 Před 2 lety +171

    I love how I need a video that seems designed for 7 year olds to understand my uni course.
    Great vid thanks

  • @shinej11
    @shinej11 Před 2 lety +86

    I always thought I was incapable of learning math, but it had always intrigued me. I just discovered what was missing; a good teacher. Thank you very much.

  • @asrao3788
    @asrao3788 Před 2 měsíci +7

    In India due to competition for engineering entrance exam teacher majorly focus on question types rather than concept in depth. Im glad there is a place where people learn for fun not just for competition, also appreiciate teachers like you who can turn subjects into magic. Keep up the good work! From now on I'm permanent on this channel. You are the best!

  • @jacob.9664
    @jacob.9664 Před 3 měsíci +7

    Soda and Candy > Mechanical engineering degree. Thank you it was very helpful!

  • @azinkhodadadi7912
    @azinkhodadadi7912 Před 2 lety +7

    I should of paid you instead of my useless lecturer at university! This is so much more useful thank you!

  • @pkmath12345
    @pkmath12345 Před 3 lety +58

    Very nice video for sure. Conditional prob is one of the topics students feel the most difficulty when they start studying for stat! Great job!

  • @HardikBhakhar
    @HardikBhakhar Před 2 měsíci +3

    Never thought that to understand conditional probabilities is this easy … thanks prof 🎯

  • @mikejohns1347
    @mikejohns1347 Před 2 lety +31

    I "stumbled" upon the contingency table method many years ago when trying teach myself the basics of probability. This approach is really the only approach for developing a solid understanding of conditional probability, as well as joint and marginal probability. I've never seen anyone present it this way and I'm so glad to see it here! Just more evidence that Josh Starmer is an absolute master instructor.

    • @statquest
      @statquest  Před 2 lety +3

      BAM! Thank you very much! :)

    • @endahfajarwati8336
      @endahfajarwati8336 Před 2 lety +1

      you know, me too.

    • @Ash-bc8vw
      @Ash-bc8vw Před 2 lety +1

      Hey this table reminds me of confusion matrix from a ML classification problem

  • @turtle3341
    @turtle3341 Před 2 lety +10

    this is how i wish people taught stuff, i really hope these ways of learning statistics get the recognition they deserve! please keep it up !!!!

  • @phuctran4679
    @phuctran4679 Před 3 lety +3

    Thank you Josh & the team. I'm so grateful I've found your channel. You make me truly love statistics!

  • @rejithmadhavan5735
    @rejithmadhavan5735 Před 2 lety +4

    Logical explanation, precision and genuineness - your way of teaching exemplifies these essential qualities. Thanks so much Josh for these great lessons. Invaluable effort!

  • @buihung3704
    @buihung3704 Před 8 měsíci +6

    A 6 years old can understand this. That's genius

  • @jacktaylor1516
    @jacktaylor1516 Před 2 lety +2

    This is one of the best explanations of absolutely anything I've ever seen and heard. Well done. Subscribed.

  • @leandroimail
    @leandroimail Před 2 lety +5

    I love these classes. They are so easy to understand. Thks you for sharing with us!

  • @arpitkakkar2780
    @arpitkakkar2780 Před 2 lety +1

    Awesome. I always come here to get my doubts clear. Love the way you teach. Lots of BAM!!!

  • @AndrywMarques
    @AndrywMarques Před 3 lety +7

    Great video!
    I never saw the "long version" to write conditional probabilities before but it's better to understand. Very intuitive!

  • @dizetoot
    @dizetoot Před 2 lety +3

    THANK YOU! I've really been struggling to get an intuitive understanding of conditional probability and this has helped so much!

  • @fatimajahara4871
    @fatimajahara4871 Před rokem +1

    I love how the videos comprehend complex topics with easy-to-understand explanations. Thanks for all your effort :)

  • @onurkrmz9206
    @onurkrmz9206 Před 3 lety

    Today I discovered your channel and it is truly a gem. As a EEE student who tries to make sense of subject of probability and neural network stuff, I believe I will benefit a lot from your work and be thankful for rest of my life. Especially statistics is challenging as things get messy a lot and scary/unintuitive equations with confusing notations start to appear. I did not look at all of your videos yet, but I hope that you did statistics less scary for those like me. My best regards

    • @statquest
      @statquest  Před 3 lety

      Awesome! Here's a page that lists all of my videos (and playlists etc): statquest.org/video-index/

  • @colinirvine757
    @colinirvine757 Před 2 lety +3

    Great job Josh!!!!! This is such a clear and precisely laid out video perfect for my students.

  • @vavy5652
    @vavy5652 Před rokem +1

    You are literally saving me from my statistics exam! Thank you so much, your explanations are brilliant and you are really making me focus with your simple and funny ways. Thank you again!

  • @jacktrimboli2857
    @jacktrimboli2857 Před 2 lety +2

    I get a dopamine rush every time this man says bam

  • @amribrahim7850
    @amribrahim7850 Před 3 lety +1

    Awesome explanation. Thanks to you and Triple Bam members

  • @IarukaSkYouk
    @IarukaSkYouk Před 5 dny +1

    I FUCKING HATE PROBABILITIES SO MUCH I ACTUALYL GAVE UP 3 TIMES LEARNING THE COURSE (THE COURSE IS HIGH QUALITY IM JUST VERY STUPID) IM SO SO SO GLAD IM STARTING TO GET IT FROM YOUR VIDEOS JOSH. YOU'RE DEFINITELY THE #1 GUY ON CZcams.

  • @baqirhusain5652
    @baqirhusain5652 Před 2 lety +3

    You are a GOD of simple explanations

  • @Regular.Biceps
    @Regular.Biceps Před 2 lety +2

    Exceptional explanation... I'm Completely in love with your teaching style

  • @Florithepenguin
    @Florithepenguin Před 4 měsíci +1

    Struggled with this topic literally for years! You solved my problem within just 10 min.! 🎉

  • @ivlivs.c3666
    @ivlivs.c3666 Před rokem +2

    Incredibly well-explained. Thank you!

  • @talentlancer1358
    @talentlancer1358 Před 3 měsíci +2

    Thank you so much! This is the best video on conditional probability on internet.

  • @tyt03538
    @tyt03538 Před 3 lety +1

    This is the best video explaining conditional probability. Hands down.

  • @Oliver-cn5xx
    @Oliver-cn5xx Před 3 lety +4

    Hi Josh, I am a long time fan of your channel and all of the shameless self-promotion has guilted me into buying one of your study guides (LDA). They seem great, a nice supplement to your videos. Though I think you would benefit greatly from stripping down the ordering process, I mean for online purchases almost noone asks for complete addresses, phone numbers and names anymore. I fought very hard with myself to finish it and parting with that information, and I succeeded simply because of being so grateful for the videos you provide.
    You'd probably sell a lot more of these if you just ask for an email. Like most. Cheers

    • @statquest
      @statquest  Před 3 lety +2

      Thanks for the advice! I'll see what I can do to simplify the ordering process.

  • @jerryquid4057
    @jerryquid4057 Před rokem +1

    You're incredible. You make everything seem so easy

  • @tsigeasteraye4485
    @tsigeasteraye4485 Před 24 dny +1

    This is amazing way of explanation!

  • @zaf3153
    @zaf3153 Před rokem +1

    Super easy ti understand! Thanks alot

  • @swarnachoppella388
    @swarnachoppella388 Před 2 lety +3

    Thank you! Great content always🤩

  • @Nakameguro97
    @Nakameguro97 Před 2 lety +3

    Thank you SO MUCH for clarifying that AB = A and B, when A and B are events. I get confused because XY is literally multiplication when X and Y are random variables. It can be doubly confusing because both events and random variables (even though they are different types) can be passed into P(), the probability function. Function overloading is a thing in computer programming, but I’m shocked to see it in math. Also, the implied A and B in P(A | B) is a lifesaver, many times over. BTW, understanding the tables in this video is pivotal in grasping marginal distributions, Baye’s Theorem, and joint probability distributions - it feels like I’m getting the other three concepts for free!

  • @rishikeshpillay
    @rishikeshpillay Před 3 lety +1

    Thanks for this explanation.....It really help me to grasp this topic....

  • @yujan9103
    @yujan9103 Před 2 lety

    Well explained. Bit long but makes the concept clear as possible. A big THANK YOU Josh.

  • @MuspiMeroll
    @MuspiMeroll Před 2 měsíci +1

    i love you this actually helped so much

  • @vinodliyanage4128
    @vinodliyanage4128 Před 2 lety +1

    Best explanation ever. Thank you! ❤️

  • @ShashwatAgarwal007
    @ShashwatAgarwal007 Před 3 lety +2

    Happy Guru Purnima Sir, So blessed that this channel exists. ❤️🙏

  • @user-lc4nv3qy4i
    @user-lc4nv3qy4i Před 9 měsíci +1

    This was amazing and fun. Thank you!

  • @gabrielasantana3809
    @gabrielasantana3809 Před 2 lety +1

    And BAM! I subscribed….such a clear explanation

  • @pratyushkashyap849
    @pratyushkashyap849 Před rokem +1

    Incredible lecture!! Bamm😀

  • @sigmakings7285
    @sigmakings7285 Před 10 měsíci +1

    That's a great one.thank you😊

  • @ceseb23
    @ceseb23 Před 3 lety +1

    Great video, perfect explanation, marvelous song, as always :D
    I would love to see a video about Generalized Linear Models( other than logistic).

  • @RaceyBeats
    @RaceyBeats Před 2 lety +1

    So bloody good!

  • @ramprakash7872
    @ramprakash7872 Před 3 lety

    Conditional probability : Decoded. BAM !!! Tbh Some of your videos ( Very few actually. For example p-value 😁) were not very clear to me ( Well that's just me ! ) in the first instance but I digested through them somehow. But with little study & focus or just give a break for a while, the 2nd or 3rd look at your video makes the concept super clear to me and I don't need to look elsewhere. Thanks for making such videos and making statistics/probability easier.

    • @statquest
      @statquest  Před 3 lety

      I'm glad you are able to understand the concepts.

  • @anashaat95
    @anashaat95 Před rokem +1

    Thanks a lot. Clearly explained as you stated.

  • @between_the_lines6173
    @between_the_lines6173 Před 10 měsíci +1

    You're the statistics buddha! The analogies and the calming voice!

  • @sillyfarmerbilly8872
    @sillyfarmerbilly8872 Před 3 lety +4

    "statsquatch" I love it 😂
    Also I guess I never put together that you could use the probabilities to calculate conditional probabilies, super helpful

  • @BARAKABLESSING
    @BARAKABLESSING Před rokem +1

    This helped understand c prob. I am taking a mandatory into to stat class with no math experience and passion. Thanks

  • @AbcdAbcd-ol5hn
    @AbcdAbcd-ol5hn Před 2 lety +1

    😭😭😭😭thanks a lot😭😭😭god bless you, u are doing a noble job, may you get all the riches, love and happiness in the world

  • @uvofsam
    @uvofsam Před 3 lety +4

    Bam!! , what a bam person to explain everything about statistics so bamly!!

  • @simonroques8579
    @simonroques8579 Před 3 lety +1

    Excellent video..again ! So good to be hit by the triple bam !!! 😁

  • @sanjeevsingh-zz2hg
    @sanjeevsingh-zz2hg Před rokem +1

    Your way of teaching ! Bam!

  • @shamsulazhar
    @shamsulazhar Před 2 lety +2

    Finally, I understand this. BAM!!!!

  • @surendrabarsode8959
    @surendrabarsode8959 Před 3 lety +3

    Very well explained as usual!! BTW, do you have any plans for making videos on stochastic calculus topics like Brownian motion, Ito integral, martingale measures etc. If so, I am looking forward to them.

  • @josevaldes7493
    @josevaldes7493 Před 3 lety +1

    amazing googleplex BAM! Man you did it again. BRAVO

  • @shahf13
    @shahf13 Před 3 lety

    Great job josh you are my favorite teacher !! , can you think about making a video about Multicollinearity? bam

  • @kayhankashi9970
    @kayhankashi9970 Před 9 měsíci +1

    SUPERB explanation... BAAAM !!!!!

  • @joshuaperling2985
    @joshuaperling2985 Před 2 lety +1

    amazing! the best!!

  • @sleepydev4700
    @sleepydev4700 Před 3 lety

    Hundred Bam!! Great explanation as always
    Could you put the playlist link in the description, it will help us a lot, thanks.

    • @statquest
      @statquest  Před 3 lety

      Which playlist are you asking about?

  • @durgeshkshirsagar116
    @durgeshkshirsagar116 Před 3 lety +2

    Wow. Great explanation with nice song ❤️❤️

  • @janiceoou
    @janiceoou Před 3 lety +2

    I was looking for sth like this recently, thanks for somehow read my mind XD (I guess some kinda probability?? BAM!

  • @faiazrummankhan5589
    @faiazrummankhan5589 Před 3 lety +2

    This channel is the bible of " Making 'Understanding Statistics' Easy !"

  • @dyles1832
    @dyles1832 Před 3 lety +3

    The people demand a Montecarlo Simulations StatQuest!!!

    • @justinwhite2725
      @justinwhite2725 Před 3 lety +2

      That would be nice.

    • @statquest
      @statquest  Před 3 lety

      I'll keep that in mind. We may get to something like it when I cover bayesian statistics.

    • @tomr03status99
      @tomr03status99 Před 3 lety

      That could be nice

  • @EngRiadAlmadani
    @EngRiadAlmadani Před 3 lety +2

    BAMMM!!!!
    Great work
    Can you make video about bayesian classifier because it's depending on conditional probability

    • @statquest
      @statquest  Před 3 lety +2

      I've already done that. Here's the link: czcams.com/video/O2L2Uv9pdDA/video.html

  • @anthonyrinna1305
    @anthonyrinna1305 Před 5 měsíci +1

    First, I'll admit I had "Do you love orange soda?" from Keenan and Kel in the back of my mind. That said, this video has been immensely helpful, thank you!

  • @SarahFeng92
    @SarahFeng92 Před 10 měsíci +1

    Your channel is amazing, I wish I had discovered it earlier! Would you ever consider making the slides available for sale? I would absolutely buy them.

    • @statquest
      @statquest  Před 10 měsíci

      I have some of them for sale here: statquest.org/statquest-store/

  • @fabianarodriguez.
    @fabianarodriguez. Před rokem +1

    I GET IT NOW THANK U SO MUCH

  • @kensarmoreto1863
    @kensarmoreto1863 Před rokem +1

    although that i calculate conditional probability during college, i cannot get the concept of it leaving a gap in my stat knowledge...
    i stumbled in your video and i have a basic understanding about it. im just need a more examples regarding conditional probability to fully master this concept...
    Thanks Josh for your videos and hoping for more topics about stats and data analysis.

    • @statquest
      @statquest  Před rokem

      I'm glad my video was helpful! :)

  • @yonatanaquinteror2989
    @yonatanaquinteror2989 Před 2 lety +1

    Awesome! BAM!!!

  • @dhendroid2373
    @dhendroid2373 Před 2 lety +1

    This is how every tutorial should be!

  • @micahdesign6657
    @micahdesign6657 Před 2 lety +1

    best video ever !

  • @angelgamboa5902
    @angelgamboa5902 Před 2 lety +1

    amazing!!!!

  • @fabriciomagalhaessena2289

    Thank you so much for this video! It saves my life hahaha

  • @sudhamjayanthi
    @sudhamjayanthi Před rokem +1

    thank you, uncle bam!

  • @ahmadatta66
    @ahmadatta66 Před 2 lety +1

    "I hate using abbreviations"
    And I love you for that

  • @jbetanco7733
    @jbetanco7733 Před 2 lety +1

    good job

  • @RajSARAF495
    @RajSARAF495 Před rokem +1

    Beautiful ❤

  • @piruthuviraj5903
    @piruthuviraj5903 Před 2 lety +1

    Thank you so much...Now I cleared. 😁🥰🥰

  • @kekahazra9769
    @kekahazra9769 Před 5 měsíci +2

    Bam! I like the way you teach.....keep up!....Bam Bam!😅

    • @statquest
      @statquest  Před 5 měsíci

      Thank you very much! BAM! :)

  • @jackfrost8969
    @jackfrost8969 Před 3 měsíci +1

    Excellent excellent excellent

  • @sampathkumar3405
    @sampathkumar3405 Před 2 lety

    Josh , Please start a series for mathematics concepts for machine learning. Such as probability, linear algebra, statistics, calculus etc.. It'll great help for us.

    • @statquest
      @statquest  Před 2 lety

      I have a bunch of statistics videos here: statquest.org/video-index/

  • @LukaszWiklendt
    @LukaszWiklendt Před 3 lety +3

    It's interesting notation that you keep the superfluous condition on the left side of the pipe. I.e. using p(c=0 and s=1 | s=1) instead of p(c=0 | s=1). Do you find students understand it better this way?

    • @statquest
      @statquest  Před 3 lety +1

      Yes. To me it is much clearer.

  • @avrilduck8326
    @avrilduck8326 Před 2 měsíci

    After 4:40, I cried "that's enough" because it was relentless!!

  • @sumailsumailov1572
    @sumailsumailov1572 Před 2 lety +1

    So cool!

  • @shangauri
    @shangauri Před 3 lety +1

    Good one Josh. Any plans of making videos on "Time series Models" ?

  • @nagainu
    @nagainu Před rokem +1

    love it

  • @qwerty11111122
    @qwerty11111122 Před 3 lety +1

    Hi Josh! I've been working with DEseq2 a lot. Is dispersion shrinkage on your TODO list for statquest? I realize it's a little more of a niche topic for bioinformatics than broadly applicable tho

  • @animelife9351
    @animelife9351 Před 3 lety +1

    Because of you, I knew this Concept "BAM" 😹😸

  • @graningfire1776
    @graningfire1776 Před 3 měsíci

    Quadra BAMMMM ! ITS now clearly cleared in my mind

    • @statquest
      @statquest  Před 3 měsíci

      It's not clear? What time point, minutes and seconds, was confusing?

    • @graningfire1776
      @graningfire1776 Před 3 měsíci +1

      @@statquest sorry sir , I wish to write now but due to my mistake it become not .

  • @1973vgc
    @1973vgc Před 3 lety +2

    great!

  • @levine1886
    @levine1886 Před 3 lety

    Any chance you could post a video on when to run regular linear regression vs. time series ARIMA?

  • @marcustumelomakofane4578
    @marcustumelomakofane4578 Před 3 měsíci +1

    Omg, I love this so much 😂😂😂😂😂😂😂😂😂😂😂

  • @markobe08
    @markobe08 Před 3 lety +2

    Josh is the best

  • @incameet
    @incameet Před 3 lety

    Would love to see a video about KL divergence.

    • @statquest
      @statquest  Před 3 lety

      Me too and I hope to cover it sometime soon.

  • @matiasmocanu647
    @matiasmocanu647 Před 3 lety

    Hi!! could you please make a statquest about self organizing maps?