Insight 3 - Bayes' Theorem
Before giving the Bayes theorem statement is important to define the conditional probability. Once done, the Bayes theorem is easy to derive.
Conditional Probability
The conditional probability measures the likelihood of an event given that another event has occurred.
For instance, assuming that A is the event of interest and that B consists of a different event which has already occurred.
The probability of the event A to occur, given the occurrence of B, (written as) P(A | B), can be computed as detailed by the following equality.
Replacing the joint probability of A and B in (1) we obtain the next equality which is exactly the Bayes' theorem statement.
This theorem has several interpretations, which naturally depend on the interpretation of the probability itself.
One of the many applications of the theorem is Bayesian inference, which is a method of statistical inference. Here the theorem is used to update (or just change) the degree of belief regarding a certain event in order to account the occurrence of one or more different event. For instance, considering the toss of a coin, an individual may change his opinion once he's observed that (e.g.) 3 out of 5 tosses gave heads instead of tails.
One interesting application of the theorem is also known as Bayesian spam filtering which is a technique allowing a piece of software to "guess" whether an e-mail message is spam or not. The decision is made by analysing the e-mail messages received in the past and estimating the likelihood for some particular word to appear into a spam message.
Last but not least, is important to remember that the Bayesian inference has played a crucial role during the Second World War. In particular, it helped the brilliant A. Turing and his colleagues to break the encrypted German messages computed by the Enigma machines.
Conditional Probability
The conditional probability measures the likelihood of an event given that another event has occurred.
For instance, assuming that A is the event of interest and that B consists of a different event which has already occurred.
The probability of the event A to occur, given the occurrence of B, (written as) P(A | B), can be computed as detailed by the following equality.
P(A | B) = P(A ∩ B) / P(B) P(B) > 0 (1)
It is defined as the quotient of the probability of the joint events A and B and the probability of B.
Now consider P(B | A), which is equals to P(B ∩ A) / P(A). Since P(B ∩ A) = P(A ∩ B), then the following equality holds:
P(A ∩ B) = P(A | B) P(B) = P(B | A) P(A)
Replacing the joint probability of A and B in (1) we obtain the next equality which is exactly the Bayes' theorem statement.
P(A | B) = ( P(B | A) P(A) ) / P(B)
This theorem has several interpretations, which naturally depend on the interpretation of the probability itself.
One of the many applications of the theorem is Bayesian inference, which is a method of statistical inference. Here the theorem is used to update (or just change) the degree of belief regarding a certain event in order to account the occurrence of one or more different event. For instance, considering the toss of a coin, an individual may change his opinion once he's observed that (e.g.) 3 out of 5 tosses gave heads instead of tails.
One interesting application of the theorem is also known as Bayesian spam filtering which is a technique allowing a piece of software to "guess" whether an e-mail message is spam or not. The decision is made by analysing the e-mail messages received in the past and estimating the likelihood for some particular word to appear into a spam message.
Last but not least, is important to remember that the Bayesian inference has played a crucial role during the Second World War. In particular, it helped the brilliant A. Turing and his colleagues to break the encrypted German messages computed by the Enigma machines.
Commenti
Posta un commento