Bayes's theorem

Bayes's theorem, named after Thomas Bayes, gives the probability of a cause given the occurrence of its effect.

Formally,
given events A,B with P(B)0,

P(AB)=P(BA)P(A)P(B)

And more generally,
let {A1,A2,} be a set of mutually exclusive and collectively exhaustive events. Then

P(AjB)=P(BAj)P(Aj)iP(BAi)P(Ai)

Proof

Let A,B be events with P(B)0.

By the definition of conditional probability,

P(AB)=P(AB)P(B)P(BA)=P(BA)P(A)

Rearranging both equations,

P(AB)=P(AB)P(B)P(AB)=P(BA)P(A)

setting both sides equal to each other,

P(AB)P(B)=P(BA)P(A)

dividing both sides by P(B),

P(AB)=P(BA)P(A)P(B)

Now let {A1,A2,} be a set of mutually exclusive and collectively exhaustive events.

By the law of total probability, P(B)=iP(BAi)P(Ai)

Therefore,

P(AjB)=P(BAj)P(Aj)iP(BAi)P(Ai)

QED.


Powered by Forestry.md