Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
bayes_theorem [2018/12/31 20:03] paul |
bayes_theorem [2019/03/31 14:49] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Bayes Theorem ====== | ||
Probability discovered by Thomas Bayes in the 18th century. | Probability discovered by Thomas Bayes in the 18th century. | ||
Line 26: | Line 27: | ||
$P(Sally\ has\ the\ flu\ |\ the\ flu\ patient\ is\ a\ girl) = 0.20$\\ | $P(Sally\ has\ the\ flu\ |\ the\ flu\ patient\ is\ a\ girl) = 0.20$\\ | ||
$P(Sally\ has\ the\ flu\ |\ the\ flu\ patient\ is\ a\ boy) = 0$ | $P(Sally\ has\ the\ flu\ |\ the\ flu\ patient\ is\ a\ boy) = 0$ | ||
+ | |||
+ | **Sometimes you know that you might encounter some new evidence in the future, but you don't know how that evidence should effect the probability** | ||
+ | |||
+ | ===== Bayes Theorem ===== | ||
+ | |||
+ | Bayes Theorem gives you a way to figure out what your conditional probabilities should be. | ||
+ | |||
+ | $P(H) =$ Prior probability, | ||
+ | |||
+ | $P(H|E) =$ Probability of hypothesis H, given condition E. | ||
+ | |||
+ | $P(E|H) =$ Probability of the condition E, given hypothesis E. | ||
+ | |||
+ | $P(E) =$ Probability of the condition E. | ||
+ | |||
+ | The probability of a hypothesis, $H$ conditional on a new piece of evidence, $E$ | ||
+ | |||
+ | $P(H|E) = \frac{P(E|H)P(H)}{P(E)}$ | ||
+ | |||
+ | To summarize, Bayes Theorem tells us how to calculate the probability of a hypothesis given a condition. This depends on three things: | ||
+ | - Conditional probability given H | ||
+ | - The prior probability of the hypothesis | ||
+ | - The prior probability of the evidence | ||
+ | |||