Bayes' Theorem - Example: A disjoint union

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

КОМЕНТАРІ • 191

  • @CodingGeek101
    @CodingGeek101 2 дні тому +1

    I felt enlightened after watching this video.
    Learned total probability theorem as well! Best video for Baye's Theorem on UA-cam hands down. Thank you Sir 🙏❤

  • @jerica2432
    @jerica2432 3 роки тому +72

    You taught me this for free much quicker than what my college tuition-paid professor ever could.

  • @sinnerg8968
    @sinnerg8968 3 роки тому +13

    I have given up my statistics major and almost shifted to arts and commerce but after I saw your 8 minute and 31 seconds of pure awesomeness, I have decided to stick to my major and be a failing student.

  • @musancube2308
    @musancube2308 5 років тому +85

    I ve failed statistics three times but through ur tutorials I ve regained my hopes in passing thi module. thank you

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

      You got this girl 💪❤️

    • @Lana-jg7lg
      @Lana-jg7lg 4 роки тому

      Musa Ncube I hope you passed bro

    • @CodingGeek101
      @CodingGeek101 2 дні тому

      I know it's been 5 years, but I hope you passed statistics. It's very hard I know but keep pushing. Do let us know how it went. Wish you best in life 🙏❤

  • @quitekid2863
    @quitekid2863 7 місяців тому +4

    Crazy how he explains it the way I want it to be explained. That’s an ideal teacher right there.

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

    ur such an amazing teacher what i failed to understand in my class after listening to an hour of lecture you thought the same thing in a better way and that too in few minutes . thank you sir

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

    I don't think you know what a daddy you are. You help us uni guys so much, thank you so much!

  • @okey5
    @okey5 6 років тому +12

    I tried understanding this for ages from my textbook unsuccessfully, this helped immensely

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

    This was incredible. Your excitement for the problem helped make the theory exceptionally clear and concise. Thank you!

  • @suyashsreekumar3031
    @suyashsreekumar3031 5 років тому +16

    Thank you sir for your clear and simple explanation of Bayes theorem.

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

    just love your videos, understood why-to-do instead of the traditional what-to-do, ad I just wanted to keep listening, which is not common for me, thanks

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

    Bayes theorem was a puzzle for me for manymany years, because my education was frequentist, and the stats people were still disputing each other. My bosses boss once called me into the office and asked me about the Monty Hall riddle.... I just happened to guess the right answer! So I got to keep my job! Anyway, 'I like how you said 'having balls..'.. all mathematicians must have balls, including the women because it automatically means you have an infinite number spheres and circles too! Beautiful harmonic shapes, and now I understand something that is fundamental to being a scientist and a mathematician! Thank you!

  • @Wayfarer17683
    @Wayfarer17683 3 роки тому +3

    Years later, thank you sir. This helped me so much. Very detailed!

  • @fly-hg4ii
    @fly-hg4ii Місяць тому

    It has been 6 years, but ur video still helps me solve math prob, thanks!

  • @francys5567
    @francys5567 6 років тому +7

    I am so glad I've found this video. The Bayes' theorem is made so easy, thanks very much, great job!

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

    I also calculated 5/12 for P(A) by simply counting up all the balls (12) and all the blue balls (5) and voilá 5/12. It's nice to know they match.

  • @ayushsatyam2616
    @ayushsatyam2616 6 років тому +20

    Great work sir the video helped me so much. your idea is a bit different and simple from the commonly taught expression of Baye's theorem.thanks

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

    I literally watched just this one video and now I can solve soooo many problems!! Thanks a lot 😄

  • @mehrishyousuf592
    @mehrishyousuf592 6 років тому +3

    Thanks for this simple yet clear explanation.

  • @jasmineakuacaut-pinto2924
    @jasmineakuacaut-pinto2924 2 роки тому +1

    I really enjoy ypur teaching. Makes maths so simple to understand. Glad i found you 🤩🤩

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

    I have learned more in 1 day than in a whole semester

  • @michaelbauers8800
    @michaelbauers8800 5 років тому +140

    The people who downvoted this got here accidently while searching for Beyonce's latest video

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

      Michael Bauers hahahah

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

      I was looking for Beyoncé’s theorem too.

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

      True Story

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

    Thank you Sir for the beautiful explanation.

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

    Bayes theorem - underappreciated - probably a bit too new for many people (published after the Rev Bayes' death, he died in 1761).
    Nice explanation - thanks

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

    You deserve more recognition 🙇

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

    i love you, i have literally never understood anything in life better

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

    Brilliant example!

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

    Its so hard method even the balls thing is really so hard but you put alot of effort in to it so thank you ❤️❤️

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

    Thank you so much atleast am gonna pass college finally

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

    Thanks sir wish i had a math sur like u

  • @Mega_Mikey
    @Mega_Mikey 5 років тому +19

    I appreciate the breakdown of the first part, but can’t we just look at the two buckets and go “ok there are 12 balls total and 5 are blue...5/12 is the answer”?

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

      exactly what im thinking

    • @earlworth
      @earlworth 3 роки тому +12

      Here you can count them, but in many problems it is the denominator of Bayes' theorem - the "given something else happened" bit - which is the hardest thing to calculate. Here's another example:
      P(criminal is guilty | evidence) = P(evidence | guilty) x P(guilty) / P(evidence)
      but what is P(evidence)?
      It is P(evidence and guilty) + P(evidence and not guilty)
      - or in other words:
      P(evidence | guilty) x P(guilty) + P(evidence | not guilty) x P(not guilty)
      - and that is equivalent to the video: P(A | B1) x P(B1) + P(A | B2) x B2 .
      The whole point is that counting the balls works only when you can indeed count the balls, whereas the process he showed works in a far broader array of situations :)

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

      in this example yes, but the data types in the separate buckets could be different and may not lend themselves to being lumped together, so calculating the probabilities separately is then useful

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

    The way I did it mentally was sort of compute the blueness of each bucket, i.e. 1/2 for the first and 1/3 for the second. I then added the two bluenesses together to get 5/6. I then computed how much of the blueness was contributed by B1 by dividing the blueness of B1 by the total blueness(1/2 divided by 5/6 = 3/5). This should work for any number of buckets.

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

    Amazing pedagogy!

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

    You taught me this in 10min ,while my teacher couldn’t in 5 months

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

    It would be bit easy for me to understand with subtitles. But you explain good😊

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

    Beautifully explained.

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

    very well explained ....Man i wish I had your logic!

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

    Great job sir, may God bless you!

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

    Great video, clears up a few things for me :)
    Just a minor thing you could improve would be to write your equals sign a tad bigger since they now can be mistaken for just a 'times' dot, I guess it's obvious from context but I jumped into one of the videos and wasn't completely sure about the equation first

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

    Simply explained. Thanks

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

    Very helpful, thank you

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

    Thank you this was so helpful!!!!!!!!!

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

    Knowing there are 2 buckets, one with 3 blue balls and one with 2 blue balls, my initial thought was I don't care how many yellow balls there are. Therefore, of a total of 5 blue balls, 3/5 chance of being in bucket 1. I'm not sure if this is flawed logic, but it made more sense given the initial question.
    The actual math is important for more complicated questions.

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

      Your logic works if number of balls in each bucket is the same, but breaks down if that's not the case. Consider if instead bucket 2 had 200 blue balls and 400 nonblue balls. Bayes theorem still gives 3/5 as answer. It doesn't give 3/203 as answer.

  • @harouttatarian3255
    @harouttatarian3255 6 років тому +4

    5 greens balls in total
    3 greens in B1 and 2 greens in B2
    P of B1 given that the ball is green is = 3/5

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

      Similarly, since both buckets are equally likely, P(A) is total blue balls out of total balls which is 5/12

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

    Didn't get the P(A) = P(A∩B1) + P(A∩B2) bit.
    Probability of A (getting a blue ball) is the probability of A and B1 (blue ball from bucket 1) plus probability of A and B2 (blue ball from bucket2).
    Why the "intersect" ∩ ?

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

    Very Nice way of explanation

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

    Thank you!

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

    Thank You so much for helping out with this.

  • @skyboundzoo7529
    @skyboundzoo7529 6 років тому

    Awesome teaching - thanks for the knowledge

  • @Loots1
    @Loots1 3 роки тому +6

    Thanks for having the courage to talk about your blue balls!

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

    Thank you ,this is very useful to me.

  • @thesclasswithsilas
    @thesclasswithsilas 8 місяців тому

    Very helpful👏

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

    Could u please show with an example how can we use Bayes theorem to predict who is more likely to win the presidential bid?
    Thanks

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

    Thank you Infinity times....

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

    Fenómeno Trefor, besos de Riquelme!

  • @gabrielamartendal1466
    @gabrielamartendal1466 6 років тому

    Você explica muito bem, parabéns.

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

    You're great! You just need a better mic 🎤 and that's it 😉

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

    Nice explanation thank you

  • @yusmanisleidissotolongo4433
    @yusmanisleidissotolongo4433 10 місяців тому

    Thanks so much!

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

    P(bucket 1 | blue) = p(blue from bucket 1)/p(blue) = (1/2 * 1/2)/(1/2 * 1/2 + 1/2 * 1/3) = (1/4)/(5/22) = 3/5.
    Im not doing any bayes theorem set up here, but it looks like im implictely using the formula.

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

    God bless you. Thats all i have to say.

  • @skygautam
    @skygautam 6 років тому

    Amazing explanation thanks .

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

    Someone correct me but seeing the final answer my mind immediately jumped to the fact that there are only 5 blue balls total. Given that the ball is the blue, our new sample space should be 5, so when we ask what the odds are of it being in bucket one, we just look at how many blue balls are in bucket one, still giving 3/5ths.

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

      Your reasoning only works if number of balls in each bucket is the same, as is the case in the video example. If bucket 2 had 20 blue and 40 nonblue, the answer would still be 3/5, if you do the Bayes theorem, not 3/23 as would be suggested by your reasoning. This is assuming probability of picking from each bucket is still 1/2.

  • @suhailmusa4450
    @suhailmusa4450 5 років тому +6

    Suhail's Theorem to get P(A):
    Count Blue = 5
    Count Yellow = 7
    Sum = 12
    P(A) = 5/12
    Nobel Prize here I come

  • @yousufazad6914
    @yousufazad6914 6 років тому

    Awesome explanation!

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

    There is something confusing here. When you write P(A) = P(A intersect B1) + P( A intersect B2), you are implying that A, B1 and B2 are subsets of some universal set, say U. What is U?

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

      I totally agree with you.
      I tend to have mind map when probability topics are discussed, and would try to visualize the entire sample space vs the individual subspaces, usually via tree diagram, or venn diagram, some sort of diagram that shows event and sample space in one view.

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

    Best explanation ❣️

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

    Thanks, u are a great teacher, however could u repeat the dame examples using table & tree diagram?

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

      @@DrTrefor Thanks for the reply. Watching your UA-cam videos on Statistics is my favorite pastime. I love them. Thanks once again

  • @azbenzaki5542
    @azbenzaki5542 6 років тому

    you're a hero man!!!

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

    thank you so much

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

    that's pretty awesome thank you very much

  • @kareng4120
    @kareng4120 6 років тому

    Can u make more videos this is really helpful

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

    for finding P(A), why can't we directly count the total number of balls and the total number of blue balls in both the buckets that comes to be 5/12 so we can directly put values in the formula?

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

      or just count the blue balls 5 , and 3 in b1 to get 3/5 ...

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

      @@liiiinder I just explained the logic of doing this to a guy in the comments, his name was hehehahaha sth. Basically you'd be merging the two buckets, and only keeping the blues and then changing the blues in bucket 1 to be different from blues in bucket 2 and then just taking a simple dist. what is the chance of bucket 1 given a blue ball is now what is the chance of say red given we have drawn a ball. (imagining blue balls of bucket 1 are now red, and blue balls of bucket 2 are like black)

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

      I think what remains is how well your logic generalises. Bayes is good because it generalises well regardless of number of variables and complexity of the question.

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

    Why did you move P(B1) and P(B2) from the denominator to the numerator

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

    Good Explanation!

  • @Madhu-wr4om
    @Madhu-wr4om 3 роки тому +1

    hey, your video was really helpful! If there were three different variables to consider like what if we have three different coloured balls, will the same apply?

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

      Absolutely, the formula generalizes to n variables nicely.

    • @Madhu-wr4om
      @Madhu-wr4om 3 роки тому

      @@DrTrefor Okay thanks!

  • @dexterns7369
    @dexterns7369 6 років тому

    That was really helpful, thank you very much

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

    Thank yous so much sir

  • @josephcold
    @josephcold 6 років тому

    This is so so so good.

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

    Would the probability of finding a blue ball from bucket 1 or bucket 2, be called an independent event or conditionally independent event?

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

    Impossible to express this particular problem without audio, visual, and pictorial format. Impossible to complete any amount of psych research without those 3 variables

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

    you saved me :)

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

    I'm enamored with Bayes theorem. I watch the videos and understand them, but I don't find myself thinking intuitively using Bayes or conditional probability. So I want to know if thats ever a thing. Do the people who study this a lot, or teach it, ever reach a point where they see it all around them? I enjoy it either way but I have wondered whether I'm just not wired see and use Bayes creatively in life.

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

    THANK YOU !!!!

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

    Isn't it easier to compute the 5/12 probability by just observing that one has a total of 12 balls with 5 of them being blue? Given that the process of extracting one ball is overall random (as if all the balls were in one single bucket for this process).

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

    Thank you. This helped

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

    good stuff. i love it

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

    It was nice sir....you solved the problem at the point where finding P(A) and differentiating it with P(A|B) was concerned....
    Thank you sir.....
    But please tell me what do you call that stylus thing using which you write this ??

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

    thanks. in 7:00 timeline, How P(B1 | A) comes? since A is unknown to us. Shouldn't it be P (A | B1),where B1 is know and A is unknown?

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

    at 3:53 why did we add the intersection? How does (a intersection b) differ from (a|b) in intuitive sense.

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

      ​@@DrTrefor I did realize it later on. Thanks for clarifying.

  • @MsUlmer
    @MsUlmer 6 років тому

    Question: when moving P(B) by multiplication... how does that change the relationship from an intersect to a given that?
    Example:
    P(A|B) = P(A n B)/ P(B)
    Multiply the denominator by P(B) = 1
    Then the numerator by P(B) = it becomes a given that | rather than remain and n. OR
    P(A|B)*P(B)....
    How/why does it go from an intersect to a given when the denominator is multiplied to the numberator?

    • @MsUlmer
      @MsUlmer 6 років тому

      Eureka. I see where my thinking broke. Forgotten algebraic rule. You must do the act on both sides of the =.
      Given that
      P(A|B) = P(A n B)/ P(B)
      AND I multiply up P(B)
      THEN I must do the multiplication on both sides of the equation...
      Resulting in:
      P(A|B) *P(B) = P(A n B)
      Right??

  • @yoseppandji8698
    @yoseppandji8698 7 років тому

    Thank you, man! You help me a lot hahaha. Continue the good work!

  • @MegaFanFan21
    @MegaFanFan21 6 років тому

    You're AMAZING !!

  • @PMayhew
    @PMayhew 6 років тому

    Has the equation P(A) = P(A ∪ B1) +(A ∪ B2) been derived from the probability of union of two events rule P(X∪Y) = P(X)+P(Y)?

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

    Dude are you jack whitehall brother??

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

    Hi, I randomly tried to solve the question of "B1 given blue balls".
    1)Given blue balls, hence I eliminate the yellow balls in both bucket,
    2) that leave B1 with 3 blue balls and B2 with 2 Blue balls.
    3) So the chances of selecting B1 is 3/5.
    May i know is this concept correct? Don't want to learn the wrong concept. lol

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

      Analytically yes. It checks out. I tried it with a different example. Let's check the logic. I think you're just not doing as many steps as bayes but logically you should be doing it. We want to know if we drew a blue ball, what's the chance it's from bucket one. so by eliminating yellow you're getting P(A|B1) and P(A|B2). You're actually neglecting P(B1) = P(B2) and I can't fully fathom where you've brought that into computation, I think at this point you simply merged the two and changed the nature of the elements, like now the blues in bucket 1 are different from blues in bucket two. so then you just gave a simple probability dist based on the bucket 1 blues and the total pool. I think your concept may be correct, not sure how well it'll generalize to all the other concepts that bayes covers but I think your logic is correct. If you're not sure what you did, you've basically merged the two buckets, removed yellow to just have the blues and to keep the fraction standing you then changed the blues of each bucket, like now you're solving for what's the chance to draw a red from a bucket with 4 reds and 3 blacks, 4 reds being the blues in bucket 1 and 3 blacks being the blues in bucket 2. "What is the chance of getting bucket 1 given drawing a blue has been converted to what is the chance of drawing a red given we have drawn a ball."

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

      The matter rn is how well your logic generalises, bayes is good because it generalises well regardless of the number of variables and complexity of the question.

  • @viraj_singh
    @viraj_singh 6 років тому

    that helped me. Thanks a lot.

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

    Is it just me or he actually looks like Kevin Peterson?

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

    One question, trefor. If the essence of Bayes theorem is to update the prior belief, what do we update here?

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

      oh okay. so if we repeat the experiment, we might get to a constant value of the probability then?