In this lab, you'll practice your knowledge of the law of total probability. In probability theory, the law (or formula) of total probability is a fundamental rule relating marginal probabilities to conditional probabilities.
You will be able to:
- Understand and explain the concept of event space and partitioning
- State the law of total probabilities based on a partitioned event space
- Understand and be able to perform partitioning based on known and unknown probabilities to solve a problem
Imagine you have two hats: one has 4 red balls and 6 green balls, the other has 6 red and 4 green. We toss a fair coin, if heads, you will pick a random ball from the first hat, if tails you will pick one from the second hat.
What is the probability of getting a red ball?
# Your solution
A soccer team wins 60% of its games when it scores the first goal, and 10% of its games when the opposing team scores first.
If the team scores the first goal about 30% of the time, what fraction of the games does it win?
# Your solution
In Europe, except for regular gas, cars regularly run on Diesel as well. At a gas station in Paris;
-
40% of the customers fills up with Diesel (event G1)
-
35% with gas "Super 95" (event G2)
-
25% with gas "Super 98" (event G3).
-
30% of the customers who buy Diesel fill their tank completely (event F).
-
For "Super 95" and "Super 98", these numbers are 60% and 50% respectively.
- Compute the probability that the next customer completely fills their tank and buys Super 95.
- Compute the probability that the next customer completely fills their tank
- Given that the next customer fills their tank completely, compute the probability that they bought Diesel.
Hint: Consult the theorems for conditional probability, check for dependence or independence of events
# Your solution
United airlines operates flights from JFK to Amsterdam, to Brussels and to Copenhagen. As you may know, flights are overbooked fairly often. Let's denote the probability of the flight to Amsterdam being overbooked equal to 40%, the probability of the flight to Brussels being overbooked equal to 25%, and the probability of the flight to Copenhagen to be overbooked being equal to 35%.
- Compute the probability that all the flights are overbooked.
- Compute the probability of having at least one flight which is not overbooked.
- Compute the probability that exactly one flight is overbooked.
Hint: Consult the theorems for conditional probability, check for dependence or independence of events
# Your solution
You have three bags that each contain 100 marbles:
- Bag 1 has 75 red and 25 blue marbles;
- Bag 2 has 60 red and 40 blue marbles;
- Bag 3 has 45 red and 55 blue marbles.
You choose one of the bags at random and then pick a marble from the chosen bag, also at random.
What is the probability that the chosen marble is red?
# Your solution
In this lab you practiced conditional probability and its theorem with some simple problems. The key takeaway from this lab is to to be able to identify random events as dependent or independent and calculating the probability of their occurrence using appropriate methods. Next, you'll take this knowledge a step further and run simulations with conditional and total probability.