result
status - + Sum
DS 40 60 100
no DS 94905 4995 99900
Sum 94945 5055 100000
September 20, 2023
…or not ¯\(ツ)/¯
https://www.nytimes.com/interactive/2019/08/29/opinion/hurricane-dorian-forecast-map.html
Definition: A
random trial is a process or experiment that has two or more possible outcomes whose occurrence cannot be predicted with certainty.
Definition: An
event is any potential subset of all the possible outcomes of a random trial.
Definition: The
probability of an event is the proportion of times the event would occur if we repeated a random trial over and over again under the same conditions. Probability ranges between zero and one.
Instead of events, we have values of random variables.
Parasitic wasps (yuck!): Two categorical variables - Parasitized or not; sex of laid egg (M or F)
Definition:
General addition rule \[\mathrm{Pr[A \ or \ B]} = \mathrm{Pr[A]} + \mathrm{Pr[B]} - \mathrm{Pr[A \ and \ B]}\]
Definition: The
conditional probability of an event is the probability of that event occurring given that another event has already occurred.
Definition: The
conditional probability of an event B given that A occurred is \[\mathrm{Pr[B \ | \ A]} = \frac{\mathrm{Pr[A \ and \ B]}}{\mathrm{Pr[A]}}\]
Definition:
General multiplication rule \[\mathrm{Pr[A \ and \ B]} = \mathrm{Pr[A]}\times\mathrm{Pr[B \ | \ A]}\]
Definition: The
conditional probability of an event B given that A occurred (and A given that B occurred) is \[\mathrm{Pr[B \ | \ A]} = \frac{\mathrm{Pr[A \ and \ B]}}{\mathrm{Pr[A]}}, \ \ \ \ \ \ \mathrm{Pr[A \ | \ B]} = \frac{\mathrm{Pr[A \ and \ B]}}{\mathrm{Pr[B]}}\]
Definition:
General multiplication rule \[\begin{align*} \mathrm{Pr[A \ and \ B]} & = \mathrm{Pr[B \ | \ A]}\times\mathrm{Pr[A]} \\ & = \mathrm{Pr[A \ | \ B]}\times\mathrm{Pr[B]} \end{align*} \]
Definition:
Bayes Rule \[\mathrm{Pr[B \ | \ A]} = \frac{\mathrm{Pr[A \ | \ B]}\times \mathrm{Pr[B]}}{\mathrm{Pr[A]}}\]
Commonly confused!
Definition: Two events are
mutually exclusive if they cannot both occur at the same time. \[\mathrm{Pr[A \ and \ B]} = 0\]
Definition: Two events are
independent if the occurrence of one does not inform us about the probability that the second will occur. \[\mathrm{Pr[B \ | \ A]} = \mathrm{Pr[B]}\]
These two conditions simplify the general additive and multiplicative rules:
If two events are
mutually exclusive , then \[\mathrm{Pr[A \ or \ B]} = \mathrm{Pr[A]} + \mathrm{Pr[B]}\]
If two events are
independent , then \[\mathrm{Pr[A \ and \ B]} = \mathrm{Pr[A]} \times \mathrm{Pr[B]}\]
Independent events
Dependent events
Definition: The probability of an event not occurring is one minus the probability that it occurs. \[\mathrm{Pr[{\it not}\ A]} = 1-\mbox{Pr[A]}\]
Definition: The
law of total probability is given by \[\begin{align*} \mathrm{Pr[A]} & = \sum_{B\ \mathrm{in} \ \mathcal{M}}\mathrm{Pr[A \ and \ B]} \\ & = \sum_{B\ \mathrm{in} \ \mathcal{M}} \mathrm{Pr[B]}\ \mathrm{Pr[A\ | \ B]}, \end{align*}\] where \(\mathcal{M}\) is a set of mutually exclusive events such that \[\sum_{B\ \mathrm{in} \ \mathcal{M}}\mathrm{Pr[B]} = 1\]
Definition: A
probability distribution is a list of the probabilities of all mutually exclusive outcomes of a random trial.
Compare to:
Definition: A
probability distribution (or relative frequency distribution) is a list of the probabilities of all values of a random variable in a sample or population.
How is this different? same?
Probability densities
“It’s easy to think of medical tests as black and white. If the test is positive, you have the disease; if it’s negative, you don’t. Even good clinicians sometimes fall into that trap.”
- Harriet Hall
Bayes Theorem to the rescue!!!
Question: What is Pr[DS | +]?
Discuss: What probabilities are given to us here?
result
status - + Sum
DS 40 60 100
no DS 94905 4995 99900
Sum 94945 5055 100000
Sensitivity: Pr[+ | DS] = 60/100 = 0.6 [True positive rate]
Specificity: Pr[- | no DS] = 94905/99900 = 0.95 [True negative rate]
False positive rate: Pr[+ | no DS] = 1-0.95 = 0.05
False negative rate: Pr[- | DS] = 1-0.6 = 0.4
Discuss: Graphically, what is:
Pr[DS]
Pr[+ | DS]
Pr[+ | no DS]
Pr[DS | +]
Discuss: Pr[DS | +] = ???
Discuss: Pr[DS | +] = ???
Discuss: Pr[DS | +] = ???
Question: What happens to Pr[DS | +] when the proportion of the population with the disease goes to zero?
Introduction to Biostatistics, Fall 2023