Probability
Last updated
Last updated
The probability of an event can only be between and and can also be written as a percentage.
The probability of event is often written as P(A).
If , then event has a higher chance of occurring than event .
If , then events and are equally likely to occur.
AND == is in both groups
OR == both groups minus AND
If there is overlap:
Mutually Exclusive means that there is NO overlap, That they can not happen at the same time.
Coin Flip = {H, T}
compound sample space - all possible outcomes
Compound probability of independent events
If you have a 33% possibility to make a 3-pointer, what is your chance to make 3 in the row?
When we calculate probabilities involving one event AND another event occurring, we multiply their probabilities.
In some cases, the first event happening impacts the probability of the second event. We call these dependent events.
In other cases, the first event happening does not impact the probability of the seconds. We call these independent events.
What is the probability of flipping a fair coin and getting "heads" twice in a row? That is, what is the probability of getting heads on the first flip AND heads on the second flip?
Imagine we had 100 people simulate this and flip a coin twice. On average, 50people would get heads on the first flip, and then 25 of them would get heads again. So 25 out of the original 100 people — or 1/4 of them — would get heads twice in a row.The number of people we start with doesn't really matter. Theoretically, 1/2 of the original group will get heads, and 1/2 of that group will get heads again. To find a fraction of a fraction, we multiply.We can represent this concept with a tree diagram like the one shown below.
We multiply the probabilities along the branches to find the overall probability of one event AND the next even occurring.For example, the probability of getting two "tails" in a row would be:
When two events are independent, we can say that
We can use a similar strategy even when we are dealing with dependent events.
Consider drawing two cards, without replacement, from a standard deck of 52 cards. That means we are drawing the first card, leaving it out, and then drawing the second card.
What is the probability that both cards selected are black?
Half of the 52 cards are black, so the probability that the first card is black is 26/52. But the probability of getting a black card changes on the next draw, since the number of black cards and the total number of cards have both been decreased by 1.
Here's what the probabilities would look like in a tree diagram:
So the probability that both cards are black is:
For any two events, we can say that
This formula says that we can multiply the probabilities of two events, but we need to take the first event into account when considering the probability of the second event.
An airport screens bags for forbidden items, and an alarm is supposed to be triggered when a forbidden item is detected.
Suppose that 5% of bags contain forbidden items.
If a bag contains a forbidden item, there is a 98%, percent chance that it triggers the alarm.
If a bag doesn't contain a forbidden item, there is an 8% chance that it triggers the alarm.
Given a randomly chosen bag triggers the alarm, what is the probability that it contains a forbidden item?
Let's break up this problem into smaller parts and solve it step-by-step.
The chance that the alarm is triggered depends on whether or not the bag contains a forbidden item, so we should first distinguish between bags that contain a forbidden item and those that don't.
"Suppose that 5% of bags contain forbidden items."
"If a bag contains a forbidden item, there is a 98% chance that it triggers the alarm."
"If a bag doesn't contain a forbidden item, there is an 8% chance that it triggers the alarm."
We can use these facts to fill in the next branches in the tree diagram like this:
We multiply the probabilities along the branches to complete the tree diagram. Here's the completed diagram:
"Given a randomly chosen bag triggers the alarm, what is the probability that it contains a forbidden item?"
Use the probabilities from the tree diagram and the conditional probability formula:
The vertical bar means "given."
The intersection symbol means "and."
In probability, we say two events are independent if knowing one event occurred doesn't change the probability of the other event.
For example, the probability that a fair coin shows "heads" after being flipped is 1/2. What if we knew the day was Tuesday? Does this change the probability of getting "heads?" Of course not. The probability of getting "heads," given that it's a Tuesday, is still 1/2. So the result of a coin flip and the day being Tuesday are independent events; knowing it was a Tuesday didn't change the probability of getting "heads."
Not every situation is this obvious. What about gender and handedness (left handed vs. right handed)? It may seem like a person's gender and whether or not they are left-handed are totally independent events. When we look at probabilities though, we see that about 10% of all people are left-handed, but about 12% of males are left-handed. So these events are not independent, since knowing a random person is a male increases the probability that they are left-handed.
The big idea is that we check for independence with probabilities.
When we check for independence in real world data sets, it's rare to get perfectly equal probabilities. Just about all real events that don't involve games of chance are dependent to some degree.
In practice, we often assume that events are independent and test that assumption on sample data. If the probabilities are significantly different, then we conclude the events are not independent. We'll learn more about this process in inferential statistics.
If you flip three fair coins, what is the probability that you'll get two tails and one head in any order? If we flip three coins, there are possible outcomes for each individual flip, so there are total possible outcomes. Each outcome is equally likely. Equals to .
The vertical bar in means "given," so this could also be read as "the probability that B occurs given that A has has occurred."
If the events are independent, one happening doesn't impact the probability of the other, and in that case, .
So can be read as "the probability that the bag contains a forbidden item GIVEN the alarm is triggered."
So can be read as "the probability that a bag contains a forbidden item AND triggers the alarm."
Two events, and , are independent if and .