Peter Ralph
9 November – Advanced Biological Statistics
Probabilities are proportions: \(\hspace{2em} 0 \le \P\{A\} \le 1\)
Everything: \(\hspace{2em} \P\{ \Omega \} = 1\)
Complements: \(\hspace{2em} \P\{ \text{not } A\} = 1 - \P\{A\}\)
Disjoint events: If \(\hspace{2em} \P\{A \text{ and } B\} = 0\) then \(\hspace{2em} \P\{A \text{ or } B\} = \P\{A\} + \P\{B\}\).
Independence: \(A\) and \(B\) are independent iff \(\P\{A \text{ and } B\} = \P\{A\} \P\{B\}\).
Conditional probability: \[\P\{A \given B\} = \frac{\P\{A \text{ and } B\}}{ \P\{B\} }\]
A consequence is
\[\P\{B \given A\} = \frac{\P\{B\} \P\{A \given B\}}{ \P\{A\} } .\]
In “Bayesian statistics”:
Coin #1 comes up heads 75% of the time, and coin #2 only comes up heads 25% of the time. We grab one coin at random, flip it 10 times, and get 6 Heads. What’s the probability that the coin we grabbed is coin #1?
\[\begin{aligned} \P\{B \given A\} &= \P\{\text{grabbed 75% coin}\given\text{6 heads from 10 flips}\} \\ &= \frac{\P\{B\} \P\{A \given B\}}{ \P\{A\} } \\ &= \frac{0.073}{0.073 + 0.0081} \\ &= 0.9 \end{aligned}\]