Difference between revisions of "Bayes' Theorem"
Jump to navigation
Jump to search
| Line 7: | Line 7: | ||
::<math>P(A|B) = \dfrac{P(A\cap B)}{P(B)}</math> where <math>P(A\cap B)</math> is the '''joint probability''' that both A and B are true | ::<math>P(A|B) = \dfrac{P(A\cap B)}{P(B)}</math> where <math>P(A\cap B)</math> is the '''joint probability''' that both A and B are true | ||
::<math>P(A\cap B) = P(A|B)\,P(B) = P(B|A)\,P(A)</math> | ::<math>P(A\cap B) = P(A|B)\,P(B) = P(B|A)\,P(A)</math> | ||
| + | |||
| + | Other interpretation (VanderPlas): | ||
| + | * <math>P(A|B)</math> is the *posterior*, the probability of the model parameters given the data | ||
===Resources=== | ===Resources=== | ||
* The [https://towardsdatascience.com/bayesian-inference-and-markov-chain-monte-carlo-sampling-in-python-bada1beabca7 coin factory] problem | * The [https://towardsdatascience.com/bayesian-inference-and-markov-chain-monte-carlo-sampling-in-python-bada1beabca7 coin factory] problem | ||
* Jake VanderPlas's [http://jakevdp.github.io/blog/2014/03/11/frequentism-and-bayesianism-a-practical-intro/ 5 part series] on github | * Jake VanderPlas's [http://jakevdp.github.io/blog/2014/03/11/frequentism-and-bayesianism-a-practical-intro/ 5 part series] on github | ||
Revision as of 01:40, 24 October 2022
In case you forgot:
- [math]\displaystyle{ P(A|B) = \dfrac{P(B|A)\,P(A)}{P(B)} }[/math]
where,
- [math]\displaystyle{ P(A|B) }[/math] is the conditional probability that A is true given B
- [math]\displaystyle{ P(A), P(B) }[/math] are the marginal probabilities that A or B is true
It's true by the definition of conditional probability:
- [math]\displaystyle{ P(A|B) = \dfrac{P(A\cap B)}{P(B)} }[/math] where [math]\displaystyle{ P(A\cap B) }[/math] is the joint probability that both A and B are true
- [math]\displaystyle{ P(A\cap B) = P(A|B)\,P(B) = P(B|A)\,P(A) }[/math]
Other interpretation (VanderPlas):
- [math]\displaystyle{ P(A|B) }[/math] is the *posterior*, the probability of the model parameters given the data
Resources
- The coin factory problem
- Jake VanderPlas's 5 part series on github