This chapter establishes the basic terminology of sample spaces, events, probability, conditi8onal probability, and independence. This language lets us model and talk about situations that involve randomness (or lack of knowledge which can sometimes be mathematically modeled in the same way).
When we perform an experiment, there are many results that we might see. We want to be able to quantify the likelihood of seeing certain results. For this, we need to develop some mathematical terminology.
The
An experiment consists of rolling a standard 6-sided die.
The sample space is
What would the sample space look like if we roll the die two times and recorded the results?
Let
The subset symbol includes the possibility that
Consider sets
The
The
The
The
The
It's useful sometimes to draw pictures called
Venn diagram showing sets
Two sets
Given a finite set
Consider the sets
Find
Find
Find
Suppose we have a 6-sided die that's weighted to roll a 6 half of the time.
We roll the die two times.
List the set of all possible results.
[Note: the result (2, 4)---rolling a 2 and then a 4---is different from the result
Suppose we flip a coin two times. List the set of all possible results. What about flipping three times? Four times? If we flip the coin 10 times, how many possible results will there be?
For two flips:
For three flips:
For four flips:
Each additional flip doubles the number of outcomes.
So, with ten flips, we'll have
If we roll a 6-sided die ten times, how many possible results will there be?
Each additional roll will multiply the number of outcomes by 6.
So, with 10 rolls, we'll have
Now that we have the language to refer to outcomes and events of an experiment, we want to start quantifying how likely those outcomes/events are to occur.
A
If
For small probability spaces (i.e., with finitely many outcomes in the sample space), we'll usually assign probabilities to each individual outcome, and perhaps list them in a table. Then, to find the probability of any event, simply add together the probabilities of each outcome in that event.
An experiment consists of rolling a standard 6-sided die.
The sample space is
One possible event is
Let
When we talk about a fair coin flip or a fair die roll, the word "fair" is indicating a uniform distribution. However, don't make the mistake of assuming that all distributions are uniform by default.
A person picks a random number from 1 to 10. What is the probability that they picked 3?
Without assuming the distribution is fair (i.e., that each value
In fact, the situation is even more vague than that: the sample space itself is unclear.
Are we only allowed to pick integer values? What about fractions like
Consider the sample space
Suppose we flip a coin two times. Answer the questions below. What about three flips? What about four flips?
Write all outcomes in the sample space
Make a probability distribution table for
Make a probability distribution table assuming the coin comes up heads with probability 0.3.
Suppose we roll a die two times. Answer the questions below.
Write all outcomes in the sample space
Make a probability distribution table for
We'll avoid an overly large table and note that, since the die is fair, every outcome is equally likely.
Therefore,
Let
Suppose a die has the values
Suppose a die has the values
A toxin molecule inside a cell has a 0.3 probability of leaving the cell during a 1-minute period.
For each value of
For short, write
The probability of leaving during the first 3 minutes is
Let
An experiment consists of rolling a fair 6-sided die two times.
Let
Let
Diagnostic tests for diseases aren't perfect. When a test comes back positive or negative, a patient will want to understand the (conditional) probability that they have or don't have the disease based on the evidence (the diagnostic test result).
The
Introducing event notation, let
Bayes' Theorem expresses the relationship between a conditional probability
For example, if a patient sees a positive diagnostic test result, they might try to calculate:
Let's consider
We're still missing a crucial piece of information:
A 50-year old woman with no symptoms is screened for breast cancer and tests positive. If the prevalence of breast cancer for women in her age group is 1% and the particular screening process used has a sensitivity of 90% and a specificity of 91%, what is the probability that the woman has breast cancer given her positive result?
Let
In each of the following scenarios with given events
An experiment consists of rolling a fair die two times.
Let
An experiment consists of flipping a fair coin three times.
Let
A diagnostic test is developed to detect a disease present in 3.2% of the population. For a patient who has the disease, the test will accurately give a positive result 65% of the time. When the patient does not have the disease, the test will accurately give a negative result 99.9% of the time.
For a patient who receives a positive test, what is the probability they have the disease?
TODO
For a patient who receives a negative test, what is the probability they do not have the disease?
TODO
The idea of conditional probability is that knowledge of one event can change our understanding of the probability of another. But it's also important to understand when this is not the case.
Events
The equation
In
Now consider the event
An experiment consists of rolling a fair die two times.
Let
An experiment consists of flipping a fair coin three times.
Let
Let