Odds form to probability form

https://arbital.com/p/bayes_odds_to_probability

by Nate Soares Jul 6 2016


The odds form of Bayes' rule works for any two hypotheses Hi and Hj, and looks like this:

P(Hie)P(Hje)=P(Hi)P(Hj)×P(eHi)P(eHj).

The probabilistic form of Bayes' rule requires a hypothesis set H1,H2,H3, that is Mutually exclusive and exhaustive, and looks like this:

P(Hie)=P(eHi)P(Hi)kP(eHk)P(Hk).

We will now show that equation (2) follows from equation (1). Given a collection H1,H2,H3, of mutually exclusive and exhaustive hypotheses and a hypothesis Hi from that collection, we can form another hypothesis ¬Hi consisting of all the hypotheses H1,H2,H3, except Hi. Then, using ¬Hi as Hj and multiplying the fractions on the right-hand side of equation (1), we see that

P(Hie)P(¬Hie)=P(Hi)P(eHi)P(¬Hi)P(e¬Hi).

P(¬Hi)P(e¬Hi) is the prior probability of ¬Hi times the degree to which ¬Hi predicted e. Because ¬Hi is made of a bunch of mutually exclusive hypotheses, this term can be calculated by summing P(Hk)P(eHk) for every Hk in the collection except Hi. Performing that replacement, and swapping the order of multiplication, we get:

P(Hie)P(¬Hie)=P(eHi)P(Hi)kiP(eHk)P(Hk).

These are the posterior odds for Hi versus ¬Hi. Because Hi and ¬Hi are mutually exclusive and exhaustive, we can convert these odds into a probability for Hi, by calculating numerator / (numerator + denominator), in the same way that 3:4 odds become a 3 / (3 + 4) probability. When we do so, equation (2) drops out:

P(Hie)=P(eHi)P(Hi)kP(eHk)P(Hk).

Thus, we see that the probabilistic formulation of Bayes' rule follows from the odds form, but is less general, in that it only works when the set of hypotheses being considered are mutually exclusive and exhaustive.

We also see that the probabilistic formulation converts the posterior odds into a posterior probability. When computing [bayes_rule_vector multiple updates in a row], you actually only need to perform this "normalization" step once at the very end of your calculations — which means that the odds form of Bayes' rule is also more efficient in practice.