Most people’s understanding & intuitions of probability are about the objective frequency of events occurring
This is known as the “frequentist” interpretation of probability
Another valid (competing) interpretation is probability represents our subjective belief about an event
This is known as the “Bayesian” interpretation of probability
In Bayesian statistics, probability measures the degree of certainty about an event
This conditions probability on your beliefs about an event
Rev. Thomas Bayes
1702—1761
The bread and butter of thinking like a Bayesian is updating your beliefs in response to new evidence
Your beliefs are not completelydetermined by the latest evidence, new evidence just slightly changes your beliefs, proportionate to how compelling the evidence is
This is fundamental to modern science and having rational beliefs
You are a bartender. If the next person that walks in is wearing a kilt, what is the probability s/he wants to order Scotch?
You are playing poker and the player before you raises.
What is the probability that someone has watched the Superbowl? What if you learn that person is a man?
You are a policymaker deciding foreign policy, and get a new intelligence report.
You are trying to buy a home and make an offer, which the seller declines.
$$P(B|A) = \frac{P(A \text{ and } B)}{P(A)}$$
$$P(B|A) = \frac{P(A \text{ and } B)}{P(A)}$$
$$P(B|A) = \frac{P(A \text{ and } B)}{P(A)}$$
$$P(B|A) = \frac{P(A \text{ and } B)}{P(A)}$$
$$P(B|A) = \frac{P(A \text{ and } B)}{P(A)}$$
$$P(B|A) = \frac{P(A \text{ and } B)}{P(A)}$$
$$\color{green}{P(B|A)} = \frac{P(A \text{ and } B)}{\color{red}{P(A)}}$$ $$\color{orange}{P(A|B)} = \frac{P(A \text{ and } B)}{\color{blue}{P(B)}}$$
$$\color{green}{P(B|A)} = \frac{P(A \text{ and } B)}{\color{red}{P(A)}}$$ $$\color{orange}{P(A|B)} = \frac{P(A \text{ and } B)}{\color{blue}{P(B)}}$$
$$\color{orange}{P(A|B)}\color{blue}{P(B)} = P(A \text{ and }B) = \color{green}{P(B|A)}\color{red}{P(A)}$$
$$\color{green}{P(B|A)} = \frac{P(A \text{ and } B)}{\color{red}{P(A)}}$$ $$\color{orange}{P(A|B)} = \frac{P(A \text{ and } B)}{\color{blue}{P(B)}}$$
$$\color{orange}{P(A|B)}\color{blue}{P(B)} = P(A \text{ and }B) = \color{green}{P(B|A)}\color{red}{P(A)}$$
The \(A\)’s and \(B\)’s are rather difficult to remember if you don’t use this often
A lot of people prefer to think of Bayes’ rule in terms of a hypothesis you have \((H)\), and new evidence or data \(e\)
$$P(H|e) = \frac{P(e|H)p(H)}{P(e)}$$
Example: Suppose 1% of the population has a rare disease. A test that can diagnose the disease is 95% accurate. What is the probability that a person who takes the test and comes back positive has the disease?
Example: Suppose 1% of the population has a rare disease. A test that can diagnose the disease is 95% accurate. What is the probability that a person who takes the test and comes back positive has the disease?
\(P(\text{Disease}) = 0.01\)
\(P(+|\text{Disease}) =0.95 = P(-|\neg \text{Disease})\)
We know \(P(+|\text{Disease})\) but want to know \(P(\text{Disease}|+)\)
$$P(\text{Disease}|+)=\frac{P(+|\text{Disease})P(\text{Disease})}{P(+)}$$
$$P(\text{Disease}|+)=\frac{P(+|\text{Disease})P(\text{Disease})}{P(+)}$$
$$\begin{align*}P(B)&=P(B \text{ and } A)+P(B \text{ and } \neg A)\\ &=P(B|A)P(A)+P(B|\neg A)P(\neg A) \\ \end{align*}$$
$$P(B|A)=\frac{P(A|B)P(A)}{P(B|A)P(A)+P(B|\neg A)P(\neg A)}$$
$$\begin{align*}P(+)&=P(+ \text{ and Disease})+P(+ \text{ and } \neg \text{ Disease})\\ &=P(+|\text{Disease})P(\text{Disease})+P(+|\neg \text{Disease})P(\neg \text{Disease}) \\ \end{align*}$$
$$\begin{align*}P(+)&=P(+ \text{ and Disease})+P(+ \text{ and } \neg \text{ Disease})\\ &=P(+|\text{Disease})P(\text{Disease})+P(+|\neg \text{Disease})P(\neg \text{Disease}) \\ \end{align*}$$
$$P(+)=0.95(0.01)+0.05(0.99)=0.0590$$
Disease | \(\neg\) Disease | Total | |
---|---|---|---|
+ | 0.0095 | 0.0495 | 0.0590 |
- | 0.0005 | 0.9405 | 0.9410 |
Total | 0.0100 | 0.9900 | 1.0000 |
$$\begin{align*}P(\text{Disease}|+)&=\frac{P(+|\text{Disease})P(\text{Disease})}{P(+)}\\ \end{align*}$$
$$\begin{align*}P(\text{Disease}|+)&=\frac{P(+|\text{Disease})P(\text{Disease})}{P(+)}\\ P(\text{Disease}|+)&=\frac{0.95 \times 0.01}{0.0590}\\ &= 0.16 \\\end{align*}$$
Keyboard shortcuts
↑, ←, Pg Up, k | Go to previous slide |
↓, →, Pg Dn, Space, j | Go to next slide |
Home | Go to first slide |
End | Go to last slide |
Number + Return | Go to specific slide |
b / m / f | Toggle blackout / mirrored / fullscreen mode |
c | Clone slideshow |
p | Toggle presenter mode |
t | Restart the presentation timer |
?, h | Toggle this help |
o | Tile View: Overview of Slides |
Esc | Back to slideshow |
Most people’s understanding & intuitions of probability are about the objective frequency of events occurring
This is known as the “frequentist” interpretation of probability
Another valid (competing) interpretation is probability represents our subjective belief about an event
This is known as the “Bayesian” interpretation of probability
In Bayesian statistics, probability measures the degree of certainty about an event
This conditions probability on your beliefs about an event
Rev. Thomas Bayes
1702—1761
The bread and butter of thinking like a Bayesian is updating your beliefs in response to new evidence
Your beliefs are not completelydetermined by the latest evidence, new evidence just slightly changes your beliefs, proportionate to how compelling the evidence is
This is fundamental to modern science and having rational beliefs
You are a bartender. If the next person that walks in is wearing a kilt, what is the probability s/he wants to order Scotch?
You are playing poker and the player before you raises.
What is the probability that someone has watched the Superbowl? What if you learn that person is a man?
You are a policymaker deciding foreign policy, and get a new intelligence report.
You are trying to buy a home and make an offer, which the seller declines.
$$P(B|A) = \frac{P(A \text{ and } B)}{P(A)}$$
$$P(B|A) = \frac{P(A \text{ and } B)}{P(A)}$$
$$P(B|A) = \frac{P(A \text{ and } B)}{P(A)}$$
$$P(B|A) = \frac{P(A \text{ and } B)}{P(A)}$$
$$P(B|A) = \frac{P(A \text{ and } B)}{P(A)}$$
$$P(B|A) = \frac{P(A \text{ and } B)}{P(A)}$$
$$\color{green}{P(B|A)} = \frac{P(A \text{ and } B)}{\color{red}{P(A)}}$$ $$\color{orange}{P(A|B)} = \frac{P(A \text{ and } B)}{\color{blue}{P(B)}}$$
$$\color{green}{P(B|A)} = \frac{P(A \text{ and } B)}{\color{red}{P(A)}}$$ $$\color{orange}{P(A|B)} = \frac{P(A \text{ and } B)}{\color{blue}{P(B)}}$$
$$\color{orange}{P(A|B)}\color{blue}{P(B)} = P(A \text{ and }B) = \color{green}{P(B|A)}\color{red}{P(A)}$$
$$\color{green}{P(B|A)} = \frac{P(A \text{ and } B)}{\color{red}{P(A)}}$$ $$\color{orange}{P(A|B)} = \frac{P(A \text{ and } B)}{\color{blue}{P(B)}}$$
$$\color{orange}{P(A|B)}\color{blue}{P(B)} = P(A \text{ and }B) = \color{green}{P(B|A)}\color{red}{P(A)}$$
The \(A\)’s and \(B\)’s are rather difficult to remember if you don’t use this often
A lot of people prefer to think of Bayes’ rule in terms of a hypothesis you have \((H)\), and new evidence or data \(e\)
$$P(H|e) = \frac{P(e|H)p(H)}{P(e)}$$
Example: Suppose 1% of the population has a rare disease. A test that can diagnose the disease is 95% accurate. What is the probability that a person who takes the test and comes back positive has the disease?
Example: Suppose 1% of the population has a rare disease. A test that can diagnose the disease is 95% accurate. What is the probability that a person who takes the test and comes back positive has the disease?
\(P(\text{Disease}) = 0.01\)
\(P(+|\text{Disease}) =0.95 = P(-|\neg \text{Disease})\)
We know \(P(+|\text{Disease})\) but want to know \(P(\text{Disease}|+)\)
$$P(\text{Disease}|+)=\frac{P(+|\text{Disease})P(\text{Disease})}{P(+)}$$
$$P(\text{Disease}|+)=\frac{P(+|\text{Disease})P(\text{Disease})}{P(+)}$$
$$\begin{align*}P(B)&=P(B \text{ and } A)+P(B \text{ and } \neg A)\\ &=P(B|A)P(A)+P(B|\neg A)P(\neg A) \\ \end{align*}$$
$$P(B|A)=\frac{P(A|B)P(A)}{P(B|A)P(A)+P(B|\neg A)P(\neg A)}$$
$$\begin{align*}P(+)&=P(+ \text{ and Disease})+P(+ \text{ and } \neg \text{ Disease})\\ &=P(+|\text{Disease})P(\text{Disease})+P(+|\neg \text{Disease})P(\neg \text{Disease}) \\ \end{align*}$$
$$\begin{align*}P(+)&=P(+ \text{ and Disease})+P(+ \text{ and } \neg \text{ Disease})\\ &=P(+|\text{Disease})P(\text{Disease})+P(+|\neg \text{Disease})P(\neg \text{Disease}) \\ \end{align*}$$
$$P(+)=0.95(0.01)+0.05(0.99)=0.0590$$
Disease | \(\neg\) Disease | Total | |
---|---|---|---|
+ | 0.0095 | 0.0495 | 0.0590 |
- | 0.0005 | 0.9405 | 0.9410 |
Total | 0.0100 | 0.9900 | 1.0000 |
$$\begin{align*}P(\text{Disease}|+)&=\frac{P(+|\text{Disease})P(\text{Disease})}{P(+)}\\ \end{align*}$$
$$\begin{align*}P(\text{Disease}|+)&=\frac{P(+|\text{Disease})P(\text{Disease})}{P(+)}\\ P(\text{Disease}|+)&=\frac{0.95 \times 0.01}{0.0590}\\ &= 0.16 \\\end{align*}$$