Follow your curiosity

What discovery has been shared with you?

Start with one fact. Explore it, go deeper, then follow whichever branch catches your imagination.

Choose subjects for a surprise

Exploring any topic

Begin your discovery

Your next discovery is one click away.

Choose one or more subjects above, or leave Any Topic selected and let curiosity decide.

Mathematics

Bayes' Theorem and Updating Beliefs

Quick fact

Bayes' theorem was discovered by Thomas Bayes in the 18th century, but only published posthumously. Today, it's a cornerstone of modern machine learning and artificial intelligence.

Why this is interesting

Have you ever updated your opinion about someone after a surprising event? Bayes' theorem is the mathematical heart of that intuitive process, and it powers everything from spam filters to medical diagnoses.

Read the full explanation

Understanding Bayes' Theorem and Updating Beliefs

Imagine you have a belief about the world, like 'this new drug is 70% effective.' That's your prior. Then you run a clinical trial and get new data. Bayes' theorem tells you how to combine your prior with the trial results to get an updated belief, called the posterior. Let's break it down step by step. Start with a hypothesis, say, 'the drug works.' You have some initial probability for this, P(H). This is your prior. Now, you observe evidence, E, like 'patients improved.' The theorem adjusts your prior by considering how likely the evidence would be if the hypothesis were true (the likelihood, P(E|H)) and how likely the evidence is overall (P(E)). The result is the posterior P(H|E), which is your new belief after seeing the evidence. The formula is: P(H|E) = P(E|H) P(H) / P(E). Think of it as a weighing scale: the prior is the weight of your initial belief, the likelihood is a multiplier that tilts the scale based on how strong the evidence is for your hypothesis, and the denominator scales everything so probabilities sum to 1. Example: Suppose 1% of people have a rare disease (prior = 0.01). A test is 99% accurate: if you have the disease, it's positive 99% of the time (sensitivity), and if you don't, it's negative 99% of the time (specificity). Now you test positive. What's the chance you actually have the disease? Intuition might say 99%, but Bayes' theorem shows it's only about 50%. Because the prior is so low, a positive result is not definitive. The theorem forces you to account for the base rate.

A deeper explanation

The underlying principle of Bayes' theorem is the law of conditional probability, which states that the joint probability of two events can be expressed in two ways: P(A and B) = P(A|B)P(B) = P(B|A)P(A). Setting these equal and solving for P(A|B) yields the theorem. It essentially reverses the direction of conditioning: we know P(H) and P(E|H), but we want P(H|E). The denominator P(E) can be calculated using the law of total probability: P(E) = P(E|H)P(H) + P(E|¬H)P(¬H). This normalizes the posterior so that the probabilities of all hypotheses sum to 1. This theorem matters because it offers a formal, rational method for updating beliefs with new information. It helps avoid common cognitive biases like base rate neglect, where people ignore the prior and focus only on the likelihood. In science, it underpins Bayesian inference, allowing researchers to combine prior knowledge with experimental data. In machine learning, it's the core of naive Bayes classifiers, which power spam filtering and sentiment analysis. The theorem also appears in medicine, where it helps interpret diagnostic tests, and in finance, for updating risk assessments. The beauty of Bayes' theorem is its simplicity and universality: it provides a clear rule for how evidence should change our beliefs, ensuring that our reasoning is consistent and coherent.

Keep FACTREE close

Internet access is required. Updates arrive when you reopen or reload the app. You may need to sign in again in the installed app.