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.

## Integrated math 2

### Course: Integrated math 2>Unit 13

Lesson 3: Probability with counting, permutations, combinations

# 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...)
• That works for the denominator, but what about solving for the numerator?
• 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?
• Usually, coins used in probability problems are only assumed to have two outcomes: heads or tails. The possibility of a coin landing on its side is ignored in most problems. A coin can land on its side in real life, but it's extremely unlikely.
• 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.
• 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?
• Since each coin has 2 possibilities, head or tails, we can do 2*2*2, since there are 3 coins, to find the total number of possibilities. Since there needs to be 2 heads, and there is 3 coins, 2 of the 3 coins have to be heads, and that leads us to C(3,2), which is 3. So that means there are 3 possibilities that fulfill the requierment. The answer is then 3/8.
• 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.
• Perhaps it would be better if he said "getting exactly two heads and one tail". I think most people understand that that's what he means, though.
• I still don't follow the argument for using combinations in which order does not matter in this question. For example, why should we count both HTH and HHT if order does not matter in combinations? Shouldn't that just be one outcome? How is this different from seating individuals ABCD in 3 seats where using combinations would state that ABC CBA and BCA are all the same outcome?
• If order matters then HHT where the first H goes before the second H would be different from HHT where the second H lands before the first. HHT would thus be counted twice.

If order would matter then with every H you would need to associate a number indicating the order.
For example H1 H2 T and H2 H1 T are different because the H's are in reverse order. But both are HHT so we must remove the extra results that came from this order (by dividing by 2 in this case).
Also note that the T has no number because when using combinations we only calculate how many groups of 2 H's we could make so we can only give the H's a number of order.
• Can someone explain the problem below please?

A multiple-choice question on an economics quiz contains 10 questions with five possible answers each. Compute the probability of randomly guessing the answers and getting exactly 9 questions correct.

Thanks a lot for your help!