Let’s say I have a bag. And in that bag–

I’m going to put some green cubes in that bag. And in particular, I’m going

to put eight green cubes. I’m also going to put

some spheres in that bag. Let’s say I’m going

to put nine spheres. And these are the green spheres. I’m also going to put some

yellow cubes in that bag. I’m going to put five of those. And I’m also going to put some

yellow spheres in this bag. And let’s say I

put seven of those. I’m going to stick

them all in this bag. And then I’m going

to shake that bag. And I’m going to pour it out. And I’m going to look

at the first object that falls out of that bag. And what I want to think

about in this video is what are the

probabilities of getting different types of objects? So for example, what

is the probability of getting a cube of any color? What is the probability

of getting a cube? Well, to think about that

we should think about what– or this is one way

to think about it– what are all of the equally

likely possibilities that might pop out of the bag? Well, we have 8 plus 9 is 17. 17 plus 5 is 22. 22 plus 7 is 29. So we have 29 objects. There are 29 objects in the bag. Did I do that right? This is 14, yup 29 objects. So let’s draw all of

the possible objects. I’ll represent it as this

big area right over here. So these are all the

possible objects. There are 29 possible objects. So there’s 29

equal possibilities for the outcome of my experiment

of seeing what pops out of the bag, assuming

that it’s equally likely for a cube or a

sphere to pop out first. And how many of them meet our

constraint of being a cube? Well, I have eight green cubes,

and I have five yellow cubes. So there are a

total of 13 cubes. So let me draw

that set of cubes. So there’s 13 cubes. We could draw it like

this– there are 13 cubes. This right here is the

set of cubes, this area. And I’m not drawing it exact. I’m approximating. It represents the

set of all the cubes. So the probability

of getting a cube is the number of events

that meet our criteria. So there’s 13

possible cubes that have an equally likely

chance of popping out, over all of the possible equally

likely events, which are 29. That includes the

cubes and the spheres. Now let’s ask a

different question. What is the probability of

getting a yellow object, either a cube or a sphere? So once again, how many things

meet our conditions here? Well, we have 5 plus 7. There’s 12 yellow

objects in the bag. So we have 29 equally

likely possibilities. I’ll do it in that same color. We have 29 equally

likely possibilities. And of those, 12

meet our criteria. So let me draw 12

right over here. I’ll do my best attempt. So let’s say it looks

something like– so the set of yellow objects. There are 12 objects

that are yellow. So the 12 that

meet our conditions are 12, over all the

possibilities– 29. So the probability

of getting a cube– 13 29ths, probability of

getting a yellow– 12 29ths. Now let’s ask something a

little bit more interesting. What is the probability

of getting a yellow cube? So I’ll put it in yellow. So we care about the color, now. So this thing is yellow. What is the probability of– or

as my son would say, “lello.” What is the probability

of getting a yellow cube? Well, there’s 29 equally

likely possibilities. And of those 29 equally likely

possibilities, 5 of those are yellow cubes, or

“lello” cubes, five of them. So the probability is 5 29ths. And where would we see

that on this Venn diagram that I’ve drawn? This Venn diagram is

just a way to visualize the different probabilities. And they become

interesting when you start thinking about

where sets overlap, or even where they

don’t overlap. So here we are

thinking about things that are members

of the set yellow. So they’re in this set,

and they are cubes. So this area right

over here– that’s the overlap of these two sets. So this area right

over here– this represents things that

are both yellow and cubes, because they are

inside both circles. So this right over here– let

me rewrite it right over here. So there’s five objects that

are both yellow and cubes. Now let’s ask– and this is

probably the most interesting thing to ask– what is

the probability of getting something that is yellow or or

a cube, a cube of any color? The probability of getting

something that is yellow or a cube of any

color– well, we still know that the denominator

here is going to be 29. These are all of the

equally likely possibilities that might jump out of the bag. But what are the possibilities

that meet our conditions? Well, one way to think about

it is, well, the probability– there’s 12 things that would

meet the yellow condition. So that would be this entire

circle right over here– 12 things that meet the

yellow condition. So this right over here is 12. This is the number of yellow. That is 12. And then to that, we can’t

just add the number of cubes, because if we add

the number of cubes, we’ve already counted these 5. These 5 are counted

as part of this 12. One way to think

about it is there are 7 yellow objects

that are not cubes. Those are the spheres. There are 5 yellow

objects that are cubes. And then there are 8

cubes that are not yellow. That’s one way to think about. So when we counted this

12– the number of yellow– we counted all of this. So we can’t just add

the number of cubes to it, because then we would

count this middle part again. So then we have to

essentially count cubes, the number of

cubes, which is 13. So the number of

cubes, and we’ll have to subtract out this

middle section right over here. Let me do this. So subtract out the middle

section right over here. So minus 5. So this is the number

of yellow cubes. It feels weird to write

the word yellow in green. The number of yellow cubes– or

another way to think about it– and you could just do

this math right here. 12 plus 13 minus 5 is 20. Did I do that right? 12 minus, yup, it’s 20. So that’s one way. You just get this is

equal to 20 over 29. But the more interesting

thing than even the answer of the probability

of getting that, is expressing this in terms

of the other probabilities that we figured out

earlier in the video. So let’s think about

this a little bit. We can rewrite this

fraction right over here. We can rewrite this as 12 over

29 plus 13 over 29 minus 5 over 29. And this was the

number of yellow over the total possibilities. So this right over here

was the probability of getting a yellow. This right over

here was the number of cubes over the

total possibilities. So this is plus the

probability of getting a cube. And this right over

here is the number of yellow cubes over

the total possibilities. So this right over here

was minus the probability of yellow, and a cube. I’m not going to

write it that way. Minus the probability

of yellow– I’ll write yellow in yellow–

yellow and a cube. And so what we’ve

just done here– and you could play

with the numbers. The numbers I just used

as an example right here to make things a

little bit concrete. But you can see this is

a generalizable thing. If we have the probability

of one condition or another condition– so let me

rewrite it– the probability– and I’ll just write it a

little bit more generally here. This gives us an

interesting idea. The probability of getting

one condition of an object being a member of set

a, or a member of set b is equal to the probability

that it is a member of set a, plus the probability that

is a member of set b, minus the probability

that is a member of both. And this is a really

useful result. I think sometimes it’s

called the addition rule of probability. But I want to show you that

it’s a completely common-sense thing. The reason why you can’t just

add these two probabilities is because they might

have some overlap. There’s a probability

of getting both. And if you just

added both of these, you would be double

counting that overlap, which we’ve already seen

earlier in this video. So you have to subtract

one version of the overlap out so you are not

double counting it. I’ll throw another

one other idea out. Sometimes, you

have possibilities that have no overlap. So let’s say this is the

set of all possibilities. And let’s say this is the

set that meets condition a and let me do this

in a different color. And let’s say that this is the

set that meets condition b. So in this situation,

there is no overlap. There’s no way– nothing is a

member of both sets, a and b. So in this situation, the

probability of a and b is 0. There is no overlap. And these type of conditions,

or these two events, are called mutually exclusive. So if events are

mutually exclusive, that means that they both

cannot happen at the same time. There’s no event that meets

both of these conditions. And if things are

mutually exclusive, then you can say the

probability of a or b is the probability of a plus

b, because this thing is 0. But if things are not

mutually exclusive, you would have to

subtract out the overlap. And probably the

best way to think about it is to

just always realize that you have to

subtract out the overlap. And obviously if something

is mutually exclusive, the probability of getting

a and b is going to be 0.

This is a random question. How do you draw in these videos? Is there a program that you use? Awesome video btw.

Haha "Did I do that right? Yup. 12 plus thirteen minus five is twenty"

nice! u guys are good!!!

PLUS:i love your website!!its a good way to learn!!!

Fantastic!!!!! Thanks for the great explanation.

omg thank you so much, i finally get it

.I want to know who you are, because you are awesome to learn from. Thank you! If teachers were more like you, they would deserve higher pay.

Wonderful explanation! as a visual learner I found this example so helpful!

thank you so much…my professor hardly speaks any english and he made this look do difficult in class. you explained this concept perfectly

Thank you. I love you.

hahahha lellow

Thanks a lot, it becomes easy to understand concepts from your videos

What is the probability of getting Y or Mum? 100%

you sound like Benedict Cumberbatch with an american accent

Thank you! Great explanation!

lellow

haha anu brought me here

HAHA LELLOW!!!!!!!!!!!!!!!!!!!!!!!!

Salman, this is great. You're great. May God bless you and accept these good jobs from you.

Red Lorry, Yellow Lorry, Red Lolly, Lellow Lolly

Hey there khan…, I have been looking at even more complex problems, in which the circle of the venn diagrams are concentric, and some times there are three circles, and then even more combinations and things get even more complicated, please make a video on that condition or if you already have made one please link me to it, I can't seem to find this anywhere in the internet

Thanks

I wish I could like this twice ahaha. Great job!

So much better than my professor!!!!!!!!

i realize from watching these videos that im not dumb lol this stuff is so simple. im not good at memorizing really but apparently i do remember examples, images and color. thats probably why i highlight entire pages lol

thanks

If I had teachers like you in my school!

Khan the savior.

sage of the six maths

i cant see green or yellow…rip

lol im colour blind

Best explanation, thanks!

LELLO

LMAOOOO

Examples are always way harder than the actual questions… gotta love math 🙂 FML

he repeats himself a lot

i get it now

Thanks, this really helped me understand more about probability, this really helped because I am in the U.K and I'm currently doing SATs.

your sound is just like yourfriendjason

The pictures and the colors help so much! TY, TY!

this is called the principle of inclusion/exclusion.

I am still unclear about why you subtracted the 5/29

i have new method and easier way to find out the combination on my channel please check it out

Thanks a lot 🤗

Thats Orgasmic

Thank you Khan. I WISH every professor would teach like this. Jeez. Thanks again.

thank you for this video. but i wonder why did you subtract 5 in the probability of yellow or a Cube? pls

if i had you for a professor for my biostatistics class i would actually go to class 🙁

43 people still failed their math test the next day….. pray for me guys

Thank you Khan Academy for another easy to understand and share clip.

IFI HAD A OLDER SIBLING ( rage quitting because has a “ 3rd grade game” that is hard even though I’m in 3rd grade and one of the problem we didn’t learn yet and it’s fourth grade or a not yet learned problem and this problem was on my math game)

brain just exploded all over…… lol great video tho!

*putting it back together now*no words to explain the worth of this video!

Am I the only one who comprehends it as 'probabooty'?

I hate this class with a passion. The workload is so obnoxious and isn't as balanced a workload as all other classes. It is a coward sham and was invented for weasels. It ruined my streak of eleven straight A's. 👎

I feel that all teachers should go ahead and lecture how they lecture, and to wrap their lesson they let their class watch a Khan video. Your videos summarize a whole hour lecture very effectively and I feel that a lot of students would succeed even more.

this is really helpful

How do I do questions like "In a class there are 15 boys and 10 girls.Three student are selected at random the probability that 1 Girl and 2 Boys is selected it:" Please Help Test Upcoming!!!

How to make these type of videos?

oh my God you did better than my stats prof.

You explained better than my stats prof.

Please tell me why you substract the yellow part I dont understand that part

a question please…if i have this 3+3. are the numbers expressing the union of two sets with an element in it which is the number 3? or the union of two sets with 3 elements in it

Khan you are the BEST

Khan and as well as Muslims are the best.. great job Salman Khan..your name is khan and you are a Teacher. .. superb

One thing I've learnt about probabilities is that if you take a simple case and apply common sense to that, you probably find out some harder concepts easier to grasp. Like here, yellow or cube obviously means "anything but green spheres", so the answer has to be "everything – 9 of all options", so 20 of 29. This obviously doesn't mean you shouldn't learn that rule, but if you can't apply your logic to even the easiest problems, your logic is probably wrong and you need to re-work that.

So nothing away from this video, I just wanted to give a different view.

I'm a math tutor for the next semester summer 2018 in Computer Science and I'm just here to be inspired by all the good examples.

It helped me very much thank you Mr.Khan

My teacher just teaches us like boom! Then u plus the boom! Bcs it has a boom! And then done! Then he tells us there's gonna be a test tomorrow and leaves the class. I need a teacher like u in ma school.

Just 1+1??????

Lello, so cute

Just want to say how thankful I am for these videos! They help me so much in understanding SO many different math topics! Great instructor and lessons! The different colors and repetition of phrases help a lot too! 🙂

How would you add a probability such a 1/2 a chance of flipping a coin and picking a marble out of a bag with 10 marbles and it's red and you want to find the probability of the coin flipping and red marble together?

Correct me if I am wrong. XD

P(A or B) = P(A) + P(B) – P(A or B) could be written as

P(AuB) = p(AuB)/p(AnB)

not not just count like 7 Y-balls + 13 cubes, rather than 12 Y-objects + 13 cubes – 5 Y-cubes

Plz ans. This…..

A bridge player and his partner have 8 diamonds between them. What is the probability that other pair have 5 diamonds in the ratio 4:1.

Why do you need to subtract the overlap??? Its literally yellows and cubes. So you just dont count the spheres, getting 20/29. Thats extra pointless work.

I remember taking this my junior year of high school, now that I'm a junior in college and my major is business management, I got to take a business statistics course. I'm watching this to refresh the old memories.

At 8:02 my mind cracked open

I just have to say ONE thing. Whenever I don't understand anything in maths, I use Khan Academy! I LOVE U!!! 😛

I love you

Great

does anybody know the website he is using

Am I color blind or is the cube and circle at the start of the video not green

All is yellow

I don't get it, who dislikes these videos??

Thanks bro great video i had some trubles in my uni. Very undestandable video and easy catch the main ideas.

Thank you for this. It was beautifully explained. Hopeful that you have more probabilities on your channel.

why we said only 5 the union on venn diagrm and did not said 9 of green are not on union

2019! Thank you so much.

Great Video! This definitely taught me some new ideas. One thing though: When you asked, "what is the probability of the object being a Cube or Yellow," the correct probability would actually be 15/29 because a yellow cube would not satisfy the problem. This is because you are saying the object needs to be yellow OR a cube, not yellow and/or a cube. Other than that, good explanation!

Nice video! But can u please do a video on 3 circles?

you have explained the concept clearly.

You guys are better than my tutor. I pay him. But I get this video for free. Why do I even have a tutor?

The government have made school harder where I'm from, and this is very helpful

whoever this godly mathematician is…hes a true blessing

Why does this guy sound like he has a perpetual cold

You're amazing sir!

Excellent explanation Mr. Khan. Thanks again!

2019????

Great video as usual. Most valuable lesson I learned from it was to avoid repetition when counting overlapping sets. Since color and shape of object in this case are not disjoint sets, it is easy to make a mistake over counting. So, hasting into conclusion might be the most common mistake of calculating probabilities and counting.