Skip to main content icon/video/no-internet

Bayes’s Theorem

Bayes’s theorem is a way of estimating the likelihood of some event having occurred, or some condition being true, given some evidence that is related to the event or condition. This entry describes how Bayes’s theorem is used, discusses three forms of the theorem, and provides detailed examples of the use of the theorem.

Throughout the sciences, we are faced with questions about how likely an event of interest is, given some information. For example,

  • How likely is a student to achieve at least a certain level of academic performance in the future, given the student’s past performance?
  • What is the probability that a patient has a certain disease, given the patient’s diagnostic test results and background health information?
  • How likely is it that a defendant is guilty of a certain crime, given all available evidence?
  • What is the probability that a coin would land heads at least 60 times in 100 tosses, given that the coin is fair?
  • How likely is a certain hypothesis, given the observed data?

These are all questions about conditional probability. Philosophical controversies have raged for centuries about exactly how to interpret probability, but conditional probability has a simple, uncontroversial definition: the probability of an event A, given an event B (with P(B) > 0), is

P(A|B)=P(AandB)P(B)

Swapping the roles of A and B, we have

P(A|B)=P(AandB)P(A)

Note that P(A|B) is different from P(B|A). Confusing P(A|B) with P(B|A) is a common—and commonly devastating—blunder, sometimes called the prosecutor’s fallacy (though not all prosecutors commit this fallacy, nor is the fallacy exclusive to prosecutors).

This definition immediately yields two useful expressions for P(A and B):

P(A|B)P(B)=P(AandB)=P(B|A)P(A),

for P(B) > 0. Dividing through by P(B) gives a simple but powerful result that explains precisely how P(A|B) and P(B|A) are related. The next section gives several ways to express this relationship.

Three Forms of Bayes’s Theorem

Basic Form

As explained earlier, a simple but fundamental consequence of the definition of conditional probability is the following theorem, which connects P(A|B) to P(B|A):

P(A|B)=P(B|A)P(A)P(B).

Here P(A) is called the prior probability of A (it is the probability of A before we know whether B occurred), P(A|B) is the posterior probability of A given B (it is the updated probability for A, in light of the information that B occurred), and P(B) is the marginal or unconditional probability of B.

Remarkably, this theorem, whose proof is essentially just one line of algebra, has deep consequences throughout statistical theory and practice. Often P(B|A) is easier to think about or compute directly than p(A|B), or vice versa; Bayes’s theorem enables working with whichever of these is easier to handle and then bridging to the other. For example, in a criminal trial, we may be especially interested in the probability that the defendant is innocent given the evidence, but it may be easier at first to consider the probability of the evidence given that the defendant is innocent.

Bayes’s theorem is named after Reverend Thomas Bayes, due to his seminal paper An Essay towards Solving a Problem in the Doctrine of Chances, which was published posthumously in 1763 with help and edits from Bayes’s friend Richard Price. Bayes’s paper established conditional probability as a powerful framework for thinking about uncertainty and derived some important properties (including Bayes’s theorem). Some historical controversies have arisen about whether anyone discovered Bayes’s theorem earlier than Bayes, and how much of a role Price played.

...

  • Loading...
locked icon

Sign in to access this content

Get a 30 day FREE TRIAL

  • Watch videos from a variety of sources bringing classroom topics to life
  • Read modern, diverse business cases
  • Explore hundreds of books and reference titles

Sage Recommends

We found other relevant content for you on other Sage platforms.

Loading