Monday, March 4, 2019

Baye's Theorem

P(A,B) = P(A|B)P(B) = P(B,A) = P(B|A)P(A)
P(A|B)P(B) = P(B|A)P(A)

P(A|B) = P(B|A)P(A) / P(B)  # divide by P(B) on both sides
P(e|T) = P(T|event)P(event) / P(T)

P(A|B) is called the posterior
P(B|A) is called the likelihood
P(A) is called the prior
P(B) is called the marginal likelihood

No comments:

Post a Comment

Convert Tensorflow 1.0 to Tensorflow 2.0

Specify Tensorflow version in Google Colab `%tensorflow_version 2.x`. It is not recommended to use pip install in Google Colab: quote &quo...