# [Brilliant Blog] Probability II

[This is targeted at a level 3 student.]

This is a continuation of the Probability blog post.

In our first blog about probability, we focused on sets of events that are mutually exclusive. In this blog, we will expand to look at events which are not mutually exclusive, and some techniques we can use to solve various types of probability questions.

One of our best tools to solve questions dealing with events that are not mutually exclusive is the Principle of Inclusion and Exclusion. We can formulate a probabilistic version of this principle.

Probabilistic Principle of Inclusion and Exclusion $$P(\cup_{i=1}^{k} A_i)= \sum\limits_{i=1}^{k} P(A_i) - \sum\limits_{1 \leq i < j \leq k} P(A_i \cap A_j) + \cdots + (-1)^{k+1} P(A_1 \cap A_2 \cap \cdots \cap A_k)$$

And in general, techniques that we use when we solve counting problems are also what we often use when we solve probability problems. If we can find nice descriptions of the set we are interested in, and of the whole set of possibilities, we can use counting techniques to count both. We have seen examples of how the Rule of sum, Rule of Product have been used to calculate probabilities.

When solving problems about coin flips, the number of ways to get a certain number of heads or tails is always a binomial coefficient. We can often use properties of binomial coefficients to help solve problems of this type.

As in counting problems, it is sometimes easier to determine the probability of the complement of what you are looking for. If you roll two dice and want to know what the probability of rolling a sum that is larger than 3, you could add the probabilities of getting $$4,5,6,7,8,9,10,11, \mbox{ and } 12$$ together, or you could add the probabilities of getting $$2 \mbox{ or } 3$$ (the complement) and subtract this value from 1.

### Worked Examples

1. A card is drawn from a standard deck of cards. What is the probability that it is a queen or a heart?

Solution: We can use the Probabilistic Principle of Inclusion and Exclusion to calculate this. Let $$A$$ be the event that the card is a queen, and $$B$$ be the event that the card is a heart. Then $$P(A \cup B) = P(A) + P(B) - P(A \cap B)$$. Since there are 13 different ranks of cards in the deck, $$P(A) = \frac{1}{13}$$, and since there are 4 suits in the deck, $$P(B) = \frac{1}{4}$$. There is only one card that is both a queen and a heart, so $$P(A \cap B) = \frac{1}{52}$$. So $$P(A \cup B) = \frac{1}{4} + \frac{1}{13} - \frac{1}{52} = \frac{16}{52} = \frac{4}{13}$$.

2. A fair coin is flipped 11 times. What is the probability that the number of heads was even?

Solution: The number of ways to get an even number of flips is $$\binom{11}{0} + \binom{11}{2} + \cdots + \binom{11}{10}.$$ We can use the identity $$\sum\limits_{i=0}^{\frac{n}{2}} \binom{n}{2i} = 2^{n-1}$$ to see that the total number of ways is $$2^{10}.$$ In total there are $$2^{11}$$ different possible results, so the probability is $$\frac{2^{10}}{2^{11}} = \frac{1}{2}$$.

3. What is the probability that after rolling a die 3 times you see at least one 6?

Solution: We could do this calculation using the principle of inclusion and exclusion, but what happens if 3 is replaced by 10 in the original question? The calculations would get really ugly, really fast. Instead, we can efficiently calculate the complement probability. The probability that we do not see 6 after rolling 3 times is simply $$\left(\frac{5}{6}\right)^3$$, since each roll is independent and there is a $$\frac{5}{6}$$ chance that we don’t get a 6 on each roll. So the probability that we do see a 6 is $$1 - \left(\frac{5}{6}\right)^3$$. If we replaced 3 with any number in the question, we can easily see how our answer will change.

### Test Yourself

1. An integer is chosen at random from 1 to 100 inclusive. What is the probability that it is both a multiple of 2 and a multiple of 5?

2. An integer is chosen at random from 1 to 100 inclusive. What is the probability that it is either a multiple of 2 or a multiple of 5?

3. Eight six-sided dice are rolled. What is the probability that at least two of the dice showed a 1?

4. 10 six-sided dice are rolled. What is the probability of having at least 3 dice showing the same number?

5. (*) A fair coin is repeatedly flipped. What is the probability that 3 consecutive heads will appear before two consecutive tails?

Note by Peter Taylor
5 years, 7 months ago

MarkdownAppears as
*italics* or _italics_ italics
**bold** or __bold__ bold
- bulleted- list
• bulleted
• list
1. numbered2. list
1. numbered
2. list
Note: you must add a full line of space before and after lists for them to show up correctly
paragraph 1paragraph 2

paragraph 1

paragraph 2

[example link](https://brilliant.org)example link
> This is a quote
This is a quote
    # I indented these lines
# 4 spaces, and now they show
# up as a code block.

print "hello world"
# I indented these lines
# 4 spaces, and now they show
# up as a code block.

print "hello world"
MathAppears as
Remember to wrap math in $$...$$ or $...$ to ensure proper formatting.
2 \times 3 $$2 \times 3$$
2^{34} $$2^{34}$$
a_{i-1} $$a_{i-1}$$
\frac{2}{3} $$\frac{2}{3}$$
\sqrt{2} $$\sqrt{2}$$
\sum_{i=1}^3 $$\sum_{i=1}^3$$
\sin \theta $$\sin \theta$$
\boxed{123} $$\boxed{123}$$

Sort by:

Just wondering, beside problem solving can probability helps in becoming a good gambler. To put it another way are mathematicians good gamblers? I am not pursing to become a gambler anyway lol.

- 5 years, 7 months ago

All games played at casinos have a negative expected net cost to the player. This means that on average everyone will lose - this is how casinos make money. Understanding the probabilities of a game such as poker will increase your odds of winning, but most poker players are not mathematicians, they just understand the probabilities of being dealt various hands and winning in various scenarios.

- 5 years, 7 months ago

Would this work for 'solving a brilliant math problem'?

- 5 years, 7 months ago

Yes, it does. Try it.

- 5 years, 7 months ago