Probability Fundamentals
- 53Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
What is an outcome in an experiment that selects a group of 268 people from Stanford’s 17,000 people?
One particular subset of 268 people.
Or swipe the card
53 cards
What is an outcome in an experiment that selects a group of 268 people from Stanford’s 17,000 people?
One particular subset of 268 people.
How many possible groups of 268 people can be selected from 17,000 people?
(26817000).
If you know 100 people among 17,000, how many groups of 268 contain none of those people?
(26816900).
How can you calculate the probability that a randomly selected group contains none of your friends?
(26817000)(26816900).
If the probability of seeing no friends in the group is approximately 0.20, what is the probability of seeing at least one friend?
1−0.20=0.80.
Why can it be easier to calculate the probability of seeing no friends than the probability of seeing at least one?
The no-friends case is one straightforward count; the at-least-one case includes groups with one, two, three, or more friends.
What values can a probability take?
A probability is between 0 and 1, inclusive.
When are two events mutually exclusive?
When they have no outcomes in common.
What is the probability of E or F when the events are mutually exclusive?
P(E∪F)=P(E)+P(F).
How does the addition rule extend to several mutually exclusive events?
Add the probabilities of all the events.
What is the complement rule for an event E?
P(Ec)=1−P(E).
How can the complement rule be derived from the probability axioms?
E and Ec are mutually exclusive and together cover the sample space, so 1=P(E)+P(Ec); rearranging gives P(Ec)=1−P(E).
What does the notation P(E∣F) mean?
The probability that E occurs given that F has occurred.
What is the definition of conditional probability, assuming P(F)>0?
P(E∣F)=P(F)P(E∩F).
How does observing that F occurred change the sample space for calculating P(E∣F)?
The possible outcomes are restricted to those in F.
When calculating P(E∣F), which outcomes count as favorable?
Outcomes in both E and F, represented by E∩F.
When two fair dice are rolled, what is the probability that their sum is 4 before receiving any additional information?
363=121.
For two fair dice, what is the probability that their sum is 4 given that the first die shows 2?
61.
For two fair dice, what is the probability that their sum is 4 given that the first die shows 1, 2, or 3?
61 in each case.
For two dice, what is the probability that their sum is 4 given that the first die shows 6?
0.
For two fair dice, what is the probability that their sum is 7?
366=61.
How does the order of events differ between an intersection and a conditional probability?
P(E∩F)=P(F∩E), but generally P(E∣F)=P(F∣E).
What is the chain rule for the probability that both E and F occur?
P(E∩F)=P(F)P(E∣F); equivalently, P(E∩F)=P(E)P(F∣E).
How can the chain rule be rearranged to express conditional probability?
P(E∣F)=P(F)P(E∩F), when P(F)>0.
What does the chain rule mean in the sequence 'the baby poops and then cries'?
The probability of both is the probability of pooping multiplied by the probability of crying given that the baby pooped.
If a baby has probability 21 of pooping and probability 21 of crying given that she pooped, what is the probability that she both poops and cries?
21×21=41.
How can the chain rule be extended to three events?
P(E1∩E2∩E3)=P(E1)P(E2∣E1)P(E3∣E1∩E2).
What is the law of total probability for an event E and a background event F?
P(E)=P(E∩F)+P(E∩Fc).
How can the two-event law of total probability be written using conditional probabilities?
P(E)=P(E∣F)P(F)+P(E∣Fc)P(Fc).
What properties must the background cases have for the law of total probability to apply?
They must be mutually exclusive and collectively cover the sample space.
How can the law of total probability be derived from mutually exclusive cases?
Split E into its disjoint parts within each case, then add the probabilities of those parts.
A bacterium has a 10% chance of mutation, survives with probability 20% if mutated, and survives with probability 1% if not mutated. What is its overall survival probability?
(0.10)(0.20)+(0.90)(0.01)=0.029, or 2.9%.
In the bacterial survival example, what is the probability of not having a mutation if the mutation probability is 0.10?
1−0.10=0.90.
What is Bayes’ theorem for reversing a conditional probability?
P(F∣E)=P(E)P(E∣F)P(F).
What is the expanded form of Bayes’ theorem when F and Fc partition the outcomes?
P(F∣E)=P(E∣F)P(F)+P(E∣Fc)P(Fc)P(E∣F)P(F).
What kind of probability question is Bayes’ theorem designed to answer?
It finds the probability of a state or cause given an observation, using the probability of that observation given the state or cause.
What is the prior probability in a Bayes’ theorem calculation?
The probability of the hypothesis or state before observing the evidence.
What is the likelihood in a Bayes’ theorem calculation?
The probability of the evidence given the hypothesis, such as P(E∣F).
What is the posterior probability in a Bayes’ theorem calculation?
The updated probability of the hypothesis after observing the evidence, such as P(F∣E).
Why is the denominator in Bayes’ theorem called a normalization term?
It accounts for all ways the evidence could occur and scales the result into the desired conditional probability.
In the spam example, what probabilities are needed to find P(spam∣contains “dear”)?
P(spam), P(“dear”∣spam), and P(“dear”∣not spam).
A disease test has sensitivity 98%, false-positive rate 1%, and disease prevalence 0.5%. What is the probability of disease given a positive test?
(0.98)(0.005)+(0.01)(0.995)(0.98)(0.005)≈0.33, or about 33%.
Why can a positive test still imply a relatively low probability of disease when the disease is rare?
Even a small false-positive rate applied to the much larger healthy population can produce many false positives.
In a population where 0.5% have a disease, approximately how many diseased and non-diseased people are there in a group of 1,000?
About 5 diseased people and 995 non-diseased people.
How can Bayes’ theorem be used to evaluate a multiple-choice answer?
Use it to find the probability that a student knows the concept given that the student answered correctly.
Why is knowing the probability of a correct answer given knowledge not enough by itself to find the probability of knowledge given a correct answer?
The reverse conditional also depends on the prior probability of knowledge and the chance of a correct answer without knowledge.
How can a large streaming service estimate the probability that a user watches a particular movie?
Count the fraction of users who watched the movie.
How does observing that a user watched one movie change the probability of their watching another?
It changes the estimate to a conditional probability based on users who watched the observed movie.
Can you define a conditional probability between two events even if the events seem unrelated?
Yes. P(E∣F) can be considered for any events when P(F)>0.
Can conditioning on new information make an event more or less likely?
Yes. A conditional probability may increase or decrease compared with the original probability.
What does P(E∣Ec) equal when P(Ec)>0?
0.
What does probability 0 mean, and what qualification may matter in continuous settings?
An event with probability 0 is treated as impossible in the basic setting; in continuous settings, a particular exact value can have probability 0 without being impossible.
Why is probability useful in data-driven computer science?
It provides a mathematical language for reasoning about uncertainty in data.

Ask anything
We've read this whole study set, so questions about it get the best answers.