Bayes' Theorem - Example: A disjoint union

  Рет қаралды 246,926

Dr. Trefor Bazett

Dr. Trefor Bazett

6 жыл бұрын

In this video we work through a Bayes's Theorem example where the sample space is divided into two disjoint regions, and how to apply Bayes' Theorem in such a situation. This example of a "two bucket" Bayes' theorem problem can be extended to 3 or more buckets. Most "real world" examples don't involve literal buckets like this problem, but a division into two categories such as "vaccinated" vs "unvaccinated".
The formula: P(B1|A) = P(A|B1)P(B1)/(P(A|B1)P(B1) + P(A|B2)P(B2)
►FULL DISCRETE MATH PLAYLIST: • Discrete Math (Full Co...
OTHER COURSE PLAYLISTS:
►CALCULUS I: • Calculus I (Limits, De...
► CALCULUS II: • Calculus II (Integrati...
►MULTIVARIABLE CALCULUS (Calc III): • Calculus III: Multivar...
►VECTOR CALCULUS (Calc IV): • Calculus IV: Vector Ca...
►DIFFERENTIAL EQUATIONS: • How to solve ODEs with...
►LINEAR ALGEBRA: • Linear Algebra (Full C...
OTHER PLAYLISTS:
► Learning Math Series
• 5 Tips To Make Math Pr...
►Cool Math Series:
• Cool Math Series
BECOME A MEMBER:
►Join: / @drtrefor
MATH BOOKS & MERCH I LOVE:
► My Amazon Affiliate Shop: www.amazon.com/shop/treforbazett
SOCIALS:
►Twitter (math based): / treforbazett
►Instagram (photography based): / treforphotography

Пікірлер: 187
@quitekid2863
@quitekid2863 3 ай бұрын
Crazy how he explains it the way I want it to be explained. That’s an ideal teacher right there.
@jerica2432
@jerica2432 3 жыл бұрын
You taught me this for free much quicker than what my college tuition-paid professor ever could.
@niloykarmaker9106
@niloykarmaker9106 2 жыл бұрын
same tbh
@beastworld8109
@beastworld8109 9 ай бұрын
amen lmao
@musancube2308
@musancube2308 5 жыл бұрын
I ve failed statistics three times but through ur tutorials I ve regained my hopes in passing thi module. thank you
@kashishhashim6471
@kashishhashim6471 5 жыл бұрын
You got this girl 💪❤️
@Lana-jg7lg
@Lana-jg7lg 4 жыл бұрын
Musa Ncube I hope you passed bro
@sinnerg8968
@sinnerg8968 2 жыл бұрын
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.
@okey5
@okey5 6 жыл бұрын
I tried understanding this for ages from my textbook unsuccessfully, this helped immensely
@francys5567
@francys5567 6 жыл бұрын
I am so glad I've found this video. The Bayes' theorem is made so easy, thanks very much, great job!
@Statemachine709
@Statemachine709 3 ай бұрын
This was incredible. Your excitement for the problem helped make the theory exceptionally clear and concise. Thank you!
@melchiortod29
@melchiortod29 Жыл бұрын
I don't think you know what a daddy you are. You help us uni guys so much, thank you so much!
@suyashsreekumar3031
@suyashsreekumar3031 5 жыл бұрын
Thank you sir for your clear and simple explanation of Bayes theorem.
@raghunandanbs2005
@raghunandanbs2005 2 жыл бұрын
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
@Wayfarer17683
@Wayfarer17683 3 жыл бұрын
Years later, thank you sir. This helped me so much. Very detailed!
@mehrishyousuf592
@mehrishyousuf592 5 жыл бұрын
Thanks for this simple yet clear explanation.
@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!
@ayushsatyam2616
@ayushsatyam2616 6 жыл бұрын
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
@bineetapareek5316
@bineetapareek5316 8 ай бұрын
i love you, i have literally never understood anything in life better
@taqiyasir9216
@taqiyasir9216 2 жыл бұрын
Thank you Sir for the beautiful explanation.
@sahanaparasuram1948
@sahanaparasuram1948 3 жыл бұрын
I literally watched just this one video and now I can solve soooo many problems!! Thanks a lot 😄
@DrTrefor
@DrTrefor 3 жыл бұрын
Glad it helped!
@jasmineakuacaut-pinto2924
@jasmineakuacaut-pinto2924 2 жыл бұрын
I really enjoy ypur teaching. Makes maths so simple to understand. Glad i found you 🤩🤩
@skyboundzoo7529
@skyboundzoo7529 5 жыл бұрын
Awesome teaching - thanks for the knowledge
@harrychecker5509
@harrychecker5509 3 жыл бұрын
Beautifully explained.
@disabledassfk
@disabledassfk Жыл бұрын
You deserve more recognition 🙇
@riddhispeaks9662
@riddhispeaks9662 Жыл бұрын
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
@patrickbeard3786
@patrickbeard3786 7 ай бұрын
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.
@gabrielamartendal1466
@gabrielamartendal1466 6 жыл бұрын
Você explica muito bem, parabéns.
@yoseppandji8698
@yoseppandji8698 6 жыл бұрын
Thank you, man! You help me a lot hahaha. Continue the good work!
@observever7808
@observever7808 3 жыл бұрын
Brilliant example!
@okaythisisepic3212
@okaythisisepic3212 5 жыл бұрын
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
@streetbeats1672
@streetbeats1672 4 жыл бұрын
very well explained ....Man i wish I had your logic!
@amjad6361
@amjad6361 4 жыл бұрын
Great job sir, may God bless you!
@yousufazad6914
@yousufazad6914 6 жыл бұрын
Awesome explanation!
@michaelbauers8800
@michaelbauers8800 5 жыл бұрын
The people who downvoted this got here accidently while searching for Beyonce's latest video
@saurabhbcn
@saurabhbcn 4 жыл бұрын
Michael Bauers hahahah
@mgmartin51
@mgmartin51 3 жыл бұрын
I was looking for Beyoncé’s theorem too.
@epiren
@epiren 3 жыл бұрын
True Story
@rahul2k208
@rahul2k208 5 жыл бұрын
Thanks sir wish i had a math sur like u
@skygautam
@skygautam 6 жыл бұрын
Amazing explanation thanks .
@dexterns7369
@dexterns7369 6 жыл бұрын
That was really helpful, thank you very much
@haidernaqvi545
@haidernaqvi545 5 жыл бұрын
Very Nice way of explanation
@baishalipalodhi
@baishalipalodhi 5 жыл бұрын
Good Explanation!
@Manofthehours
@Manofthehours 10 ай бұрын
I have learned more in 1 day than in a whole semester
@jesannafew8590
@jesannafew8590 4 жыл бұрын
Thank You so much for helping out with this.
@adamTDE
@adamTDE 2 жыл бұрын
Amazing pedagogy!
@kanha12297
@kanha12297 5 жыл бұрын
Best explanation ❣️
@tanwenxuan2999
@tanwenxuan2999 5 жыл бұрын
Thank you ,this is very useful to me.
@zhenminliu
@zhenminliu 2 жыл бұрын
Simply explained. Thanks
@azbenzaki5542
@azbenzaki5542 6 жыл бұрын
you're a hero man!!!
@josephcold
@josephcold 5 жыл бұрын
This is so so so good.
@viraj_singh
@viraj_singh 6 жыл бұрын
that helped me. Thanks a lot.
@pratikprajapati9133
@pratikprajapati9133 5 жыл бұрын
Nice explanation thank you
@simphiwesono5635
@simphiwesono5635 3 жыл бұрын
Very helpful, thank you
@MegaFanFan21
@MegaFanFan21 5 жыл бұрын
You're AMAZING !!
@irenemutesi7045
@irenemutesi7045 2 жыл бұрын
Thank you so much atleast am gonna pass college finally
@Mega_Mikey
@Mega_Mikey 5 жыл бұрын
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 3 жыл бұрын
exactly what im thinking
@earlworth
@earlworth 3 жыл бұрын
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 жыл бұрын
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
@clickherenowz
@clickherenowz 5 жыл бұрын
So helpful thankyou!! Could you make a playlist for all of your Stats videos?
@topogigio10
@topogigio10 5 жыл бұрын
Fenómeno Trefor, besos de Riquelme!
@sanobet882
@sanobet882 2 жыл бұрын
Its so hard method even the balls thing is really so hard but you put alot of effort in to it so thank you ❤️❤️
@vaibhavsingh1049
@vaibhavsingh1049 5 жыл бұрын
Thank you. This helped
@lanaf3067
@lanaf3067 2 жыл бұрын
Thank you this was so helpful!!!!!!!!!
@dbb1611
@dbb1611 5 жыл бұрын
good stuff. i love it
@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
@thesclasswithsilas
@thesclasswithsilas 4 ай бұрын
Very helpful👏
@shakirinjahanmozumder2572
@shakirinjahanmozumder2572 4 жыл бұрын
Thank you Infinity times....
@madridi891
@madridi891 4 жыл бұрын
that's pretty awesome thank you very much
@kareng4120
@kareng4120 6 жыл бұрын
Can u make more videos this is really helpful
@mukulnimrani1062
@mukulnimrani1062 6 жыл бұрын
what is 1-3/5 i.e. 2/5? is it the probability of drawing a blue ball such that it is not from the first bucket?
@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 ??
@alteshaus3149
@alteshaus3149 3 жыл бұрын
Thank you!
@ojsawe42d16
@ojsawe42d16 2 жыл бұрын
You taught me this in 10min ,while my teacher couldn’t in 5 months
@Loots1
@Loots1 3 жыл бұрын
Thanks for having the courage to talk about your blue balls!
@yusmanisleidissotolongo4433
@yusmanisleidissotolongo4433 6 ай бұрын
Thanks so much!
@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.
@CodehanCodes
@CodehanCodes 4 жыл бұрын
Thank yous so much sir
@suhanikataria1819
@suhanikataria1819 3 жыл бұрын
It would be bit easy for me to understand with subtitles. But you explain good😊
@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)?
@karannchew2534
@karannchew2534 3 жыл бұрын
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" ∩ ?
@aizadanayal8727
@aizadanayal8727 7 ай бұрын
Would the probability of finding a blue ball from bucket 1 or bucket 2, be called an independent event or conditionally independent event?
@aaronisucama4390
@aaronisucama4390 5 жыл бұрын
Thank you
@singcovers8479
@singcovers8479 4 жыл бұрын
thank you so much
@rajkumar-ub7wc
@rajkumar-ub7wc Жыл бұрын
Thanks Sir
@shaunaweisser8575
@shaunaweisser8575 3 жыл бұрын
THANK YOU !!!!
@suhailmusa4450
@suhailmusa4450 5 жыл бұрын
Suhail's Theorem to get P(A): Count Blue = 5 Count Yellow = 7 Sum = 12 P(A) = 5/12 Nobel Prize here I come
@somadutta9962
@somadutta9962 3 жыл бұрын
bruh
@fplasil
@fplasil Жыл бұрын
Thanks for the vid. I have a question. For the calculation of P(A), can I just think of it as having 5 blue balls and 7 yellow balls, together 12 balls. So probability of drawing a blue ball would be 5 out of 12. Is it a coincidence that the P(A) comes out 5/12 using this simplification, or would this idea be still valid logic even though we have two separate disjoined buckets?
@andrewharrison8436
@andrewharrison8436 Жыл бұрын
Because there are the same number of balls in each bucket your logic works. However suppose that the second bucket had twice as many of each then the method in the video works but aggregating the balls would give the wrong answer as each ball in the bucket now has a smaller chance of being picked, (1/2 for the bucket being picked and then 1/12 for each ball so 1/24 each).
@gooddeedsleadto7499
@gooddeedsleadto7499 4 жыл бұрын
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
@rickyzheng9018
@rickyzheng9018 3 жыл бұрын
you saved me :)
@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?
@ferndaily5377
@ferndaily5377 Жыл бұрын
I lol'd everytime he said blueballs
@ajaybanstola123
@ajaybanstola123 3 жыл бұрын
One question, trefor. If the essence of Bayes theorem is to update the prior belief, what do we update here?
@ajaybanstola123
@ajaybanstola123 3 жыл бұрын
oh okay. so if we repeat the experiment, we might get to a constant value of the probability then?
@harouttatarian3255
@harouttatarian3255 6 жыл бұрын
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
@user-bu8mg7uq3s
@user-bu8mg7uq3s 2 жыл бұрын
thank you
@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.
@10cgokulramh70
@10cgokulramh70 5 ай бұрын
I tried solving case for p(blue ball/B1) and got 6/5 is that correct ??
@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??
@blAnk7300
@blAnk7300 5 жыл бұрын
Excuse my ignorance but I'm having a hard time understanding the difference between P(a|b) and P(a inter b) in real life. You said that P(a|b) is the chance of a given b but you also said the same thing about P(a inter b). What am I missing here? (Beside some IQ points)
@blAnk7300
@blAnk7300 5 жыл бұрын
Thank you for taking the time and effort to reply. Subscribed !
@vonderasche2963
@vonderasche2963 10 ай бұрын
Why did you move P(B1) and P(B2) from the denominator to the numerator
@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.
@cassandraweaver8479
@cassandraweaver8479 6 жыл бұрын
I think I'm your biggest fan! lol
@mazharmumbaiwala7451
@mazharmumbaiwala7451 5 жыл бұрын
Stan, is that you?
@Madhu-wr4om
@Madhu-wr4om 3 жыл бұрын
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 жыл бұрын
Absolutely, the formula generalizes to n variables nicely.
@Madhu-wr4om
@Madhu-wr4om 3 жыл бұрын
@@DrTrefor Okay thanks!
@hopesibeko8059
@hopesibeko8059 6 жыл бұрын
thank u
@zeinelmokhtar4105
@zeinelmokhtar4105 3 жыл бұрын
You're great! You just need a better mic 🎤 and that's it 😉
@mariamalavi2679
@mariamalavi2679 9 ай бұрын
God bless you. Thats all i have to say.
@RMD551
@RMD551 4 жыл бұрын
Very Epic
@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.
IS CHESS A GAME OF CHANCE? Classical vs Frequentist vs Bayesian Probability
13:26
Bayes' Theorem of Probability With Tree Diagrams & Venn Diagrams
19:14
The Organic Chemistry Tutor
Рет қаралды 964 М.
Bayes' Theorem Example: Surprising False Positives
12:37
Dr. Trefor Bazett
Рет қаралды 138 М.
Intro to Markov Chains & Transition Diagrams
11:25
Dr. Trefor Bazett
Рет қаралды 98 М.
Why hyperbolic functions are actually really nice
16:03
Dr. Trefor Bazett
Рет қаралды 125 М.
ChatGPT is destroying my math exams
11:43
Dr. Trefor Bazett
Рет қаралды 59 М.
The Opposite of Infinity - Numberphile
15:05
Numberphile
Рет қаралды 4,3 МЛН
Bayes theorem, the geometry of changing beliefs
15:11
3Blue1Brown
Рет қаралды 4,3 МЛН
Bayes' Theorem | TRICK that NEVER fails | Solved Examples
27:24
Six Sigma Pro SMART
Рет қаралды 28 М.
Bayes Theorem and some of the mysteries it has solved
16:18
Zach Star
Рет қаралды 480 М.
We Need To Talk About Calculus 2
8:55
The Math Sorcerer
Рет қаралды 45 М.
How to write your homework using LaTeX
16:18
Dr. Trefor Bazett
Рет қаралды 113 М.