Bayes’ Theorem in Plain English

Simplest explanation of Bayes’ Theorem

Benjamin Obi Tayo Ph.D.
3 min readNov 4, 2021
Image by Author

Assume we have a hypothetical machine learning model that has been used to obtain predicted class values (class 0 and class 1) as shown in Table 1 below.

Table 1. Exact and Predicted values from a binary classification problem. Table by Author.

Our system is a binary system with 2 classes, that is, class 0 and class 1, with a total of 10 rows.

Let’s start by defining some basic probabilities (n = 10):

where

  • P(Ye = 1) is the probability that the exact value Ye is 1
  • P(Ye = 0) is the probability that the exact value Ye is 0
  • P(Yp = 1) is the probability that the predicted value Yp is 1
  • P(Yp = 0) is the probability that the predicted value is Yp is 0

Bayes’ Theorem for Class 1

Now let us focus on the class 1, then from Table 1 above, we define the following conditional probabilities:

--

--

Benjamin Obi Tayo Ph.D.
Benjamin Obi Tayo Ph.D.

Written by Benjamin Obi Tayo Ph.D.

Dr. Tayo is a data science educator, tutor, coach, mentor, and consultant. Contact me for more information about our services and pricing: benjaminobi@gmail.com

No responses yet