Introduction
Bayes’ Theorem is a fundamental concept in probability theory and statistics. It describes how to update the probability of a hypothesis based on new evidence or information. The Theorem is named after the 18th-century statistician and philosopher Thomas Bayes.
The formula for Bayes’ Theorem is as follows:
P(A∣B)= [P(B∣A)⋅P(A)]/ P(B)
Where:
- P(A∣B) is the probability of event A occurring given that event B has occurred.
- P(B∣A) is the probability of event B occurring given that event A has occurred.
- P(A) is the prior probability of event A.
- P(B) is the prior probability of event B.
Here’s a straightforward example of how to use Bayes’ Theorem:
Example
Let us assume that a manufacturer has three locations for producing computers, location A makes 60% of the computers, location B makes 30% of the computers, and location C makes 10% of the computers.
85% of the computers in location A never fail.75% of computers in location B never fail and 80% of computers in location C never fail.
What is the probability that you will buy a defect free computer.

Solution
The probability of buying an error free computer is :
(.6 * .85) + (.3 * .7) +( .1 * .8) = .8 = 80%
