Saturday, December 17, 2022

Posterior probability

In probability theory, the posterior probability is the probability of an event occurring after taking into account new evidence or information. It is calculated using Bayes' theorem, which states that the posterior probability is equal to the prior probability (the probability of the event occurring before taking into account the new information) multiplied by the likelihood (the probability of observing the new evidence given that the event has occurred) divided by the marginal probability (the probability of observing the new evidence).


For example, let's say you have a box with 10 marbles in it, 5 of which are red and 5 of which are blue. You draw a marble from the box, observe that it is red, and then put it back in the box. The prior probability that the next marble you draw will be red is 5/10, or 50%. Now, let's say you draw another marble and observe that it is also red. The likelihood of observing this new evidence (a red marble) given that the event (drawing a red marble) has occurred is 1, because if you have already drawn a red marble, the probability of drawing another red marble is 1. The marginal probability, in this case, is the probability of drawing two red marbles in a row, which is (5/10) * (5/10), or 25%. Using Bayes' theorem, we can calculate the posterior probability of drawing a red marble as follows:


Posterior probability = Prior probability * Likelihood / Marginal probability


Posterior probability = (5/10) * 1 / (5/10) * (5/10)

= 1 / (5/10)

= 2/5

= 40%


So, the posterior probability of drawing a red marble after observing two red marbles in a row is 40%. This probability takes into account the new evidence (observing two red marbles in a row) and updates the prior probability (the probability of drawing a red marble before observing any evidence) accordingly.

No comments:

Post a Comment

Binomial Distribution in very simple words

The binomial distribution is a probability distribution that describes the outcome of a series of independent "yes/no" experiments...