Maths doubt, JEE

What is Bayes' theorem? Formula with an example

Answer: If are mutually exclusive and exhaustive events and has occurred, then . It gives the probability of a cause when the result is known.

By Sunil Kumar. Updated 26 November 2026.

Why

The denominator is the total probability of : .

Example: bag 1 has 3 red and 2 black balls, bag 2 has 1 red and 4 black. A bag is chosen at random and a red ball is drawn. .

Conditional probability: . Events are independent when .

Independent is not the same as mutually exclusive. Mutually exclusive events with non-zero probabilities are never independent.

Exam tip

Draw a tree: first branches for the causes, second branches for the result. The answer is one path divided by the sum of all paths that end in the observed result.

Previous year questions on this

More maths doubts