If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

## Statistics and probability

### Unit 7: Lesson 2

Probability using sample spaces

# Example: All the ways you can flip a coin

Manually going through the combinatorics to determine the probability of an event occuring. Created by Sal Khan and Monterey Institute for Technology and Education.

## Want to join the conversation?

• Can you solve this without listing down all the possible scenarios(HHH,HHT,HTH...) • What if we have 20 tosses?? We cant possibly draw every one of them out, and then count exactly two heads?? • I'd do it like this:
Total possible outcomes is 2^20
- That's 2 possible outcomes per throw, times itself 20 times because it happens 20 times over

Total outcomes with exactly 2 heads - I imagine all the ways that I could definitely throw exactly 2 heads. First I think of if I threw a head the very first throw - there would be the 19 other possible throws in which I could throw the second head, so 19 ways to throw a head first throw plus just one other head in that session.

Then I think of the ways I could throw exactly 2 heads if my first head was on the 2nd throw - there would be 18 throws left and my second head could fall in any one of those, so 18 ways to throw exactly 2 heads with the first head on the 2nd throw.

Pretty soon we see a pattern. If the first head falls on the 3rd throw, there are 17 ways to get exactly 2 heads. From the 4th throw, 16 ways. Right down to the first head falling on the 19th throw, when the 20th throw must also be a head, so only one way there.

This logic gives you 19 ways + 18 + 17 +... + 2 + 1 = number of ways to throw exactly 2 heads in 20 throws.

Now I happen to know a neat little trick to work out 19+18+17+...+2+1, just ask if you want to know it. Or you can add it all up on a calculator. Either way, the answer is 190 possible ways to throw exactly 2 heads.

So the probability is 190/(2^20)
= 190/1048576
= 0.000181198...
= 0.018%

Getting pretty close to impossible!
• Why do you count THH, HTH, and HHT as 3 separate outcomes? • They are different outcomes because they are not in the same order. If there were different colored cookies in a box and your grandma picked three out without you looking and put them in a specific order, there could be a red cookie, a blue cookie, and a green cookie in that order. But if the order was blue, red, and green, that would be a totally different outcome despite the fact that they're still the same colors. Same thing goes with coins.
• Just curious, I'm wondering what is the probability that a coin fall on the edge. A coin has two faces(heads and tails), with a probability of 50% for each face, but what is the probability that is does not fall on any of it's faces but on it's edge?
(1 vote) • are there any simpler ways of doing probability??? • Yes. Before solving a probability problem, first ask yourself whether events are independent or not. If they are, then we are in good shape. what we need to is calculating the possible outcome of each experiment, and multiply by each other. In this example, we have three experiments:
First experiment : 2 outcomes (H or T)
Second experiment : 2 outcomes (H or T)
Third experiment : 2 outcomes (H or T)
Number of all the possible scenarios : 2 * 2 * 2 (or a quick observation here is that when all the experiments are the same, then you can use power, instead of multiply, 2 * 2 * 2 = 2^3)
• When Sal was listing the possible outcomes, he wrote THH and HHT as different outcomes. Aren't they the same? From my understanding, it doesn't matter what order I get those two heads, just so long as I get the two heads. So why are they counted as different outcomes? Thanks in advance. • Well in this specific problem he is taking into account that order matters. The order might matter depending on the situation but the situation. Lets say that the we are playing a game and that you picked heads and I picked tails. Then lets say the first flip is worth 3 points so whoever gets that gets 3 points and then the second flip is 2 and the last is 1, then order would matter.
(1 vote)
• Why do you have to draw out the possibilities? • How can you call it exactly two heads, when you have an additional coin flip to count and whatever that flip is, it can no longer be called "exactly" two heads. Is two heads plus something else exactly two heads? I think the probability is zero of getting exactly two heads, because you have three coins. • Any body can sit there and list out all outcomes, Sal needs to realize this isn't teaching us how to calculate these probabilities...
(1 vote) • So just keep progressing through the videos. He has to start with the basics and build from there. If you're understanding what he's talking about and it's not challenging, then move right to the next when he finishes.

Also bear in mind that Sal's videos are quite short, I think he aims for roughly 10 minutes. By contrast, a typical class session in university is 50 minutes (I forget about high school, but I think it's the same), and it's not uncommon to spend most or all of a class session on probability of this level - listing outcomes, etc. So yeah, there could be several videos that seem very basic, but to other people, they might be necessary to grasp what's going on. 