Introduction to Bayes' Theorem
Bayes' theorem, named after 18th-century British mathematician Thomas Bayes, is one of the most powerful tools in probability theory. It provides a systematic way to update the probability of an event based on new evidence or information.
At its heart, Bayes' theorem formalises how we should rationally change our beliefs when we observe new data. This makes it invaluable in fields ranging from medicine and genetics to machine learning and forensic science.
Prior Probability: The probability of an event before new evidence is taken into account. Denoted , it represents our initial belief about how likely hypothesis is.
Posterior Probability: The probability of an event after updating with new evidence. For example, is the posterior probability of hypothesis given that evidence has been observed.
Law of Total Probability: If events are mutually exclusive and exhaustive (they form a partition of the sample space), then for any event :
This is the foundation on which Bayes' theorem rests , it provides the denominator in every Bayes calculation.
Imagine you wake up and want to know whether it rained overnight. Your prior belief might be 30% based on the season. But then you look outside and see the pavement is wet , this new evidence dramatically updates your belief. Bayes' theorem is the mathematical machinery that tells you exactly how much to update.