Bayes' theorem

In the previous section, we learned to calculate many types of probabilities; it is time to benefit from the acquired skills. We will do this by defining Bayes' theorem as follows.

Let A and B be two dependent events. Previously, we said that the joint probability between the two events is calculated using the following formula:

Or, similarly, using the following formula:

By analyzing the two proposed formulas, it is clear that they have the first equal member. This implies that even the second members are equal, so we can write: ...

Get Regression Analysis with R now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.