Bayes' Theorem is a fundamental concept in probability theory and statistics that provides a way to calculate the conditional probability of an event based on prior knowledge of related events. The formula is:
[
P(A|B) = \frac{P(B|A) \cdot P(A)}{P(B)}
]
Where:
- (P(A|B)): The probability of event (A) occurring given that (B) is true (posterior probability).
- (P(B|A)): The probability of event (B) occurring given that (A) is true (likelihood).
- (P(A)): The probability of event (A) occurring independently (prior probability).
- (P(B)): The probability of event (B) occurring independently (marginal probability).
Derivation of Bayes' Theorem
Bayes' Theorem can be derived from the definition of conditional probability:
-
Definition of Conditional Probability:
By definition, the conditional probability of (A) given (B) is:
[
P(A|B) = \frac{P(A \cap B)}{P(B)}, \quad \text{where } P(B) \neq 0
]
Similarly, the conditional probability of (B) given (A) is:
[
P(B|A) = \frac{P(A \cap B)}{P(A)}, \quad \text{where } P(A) \neq 0
]
-
Equating Joint Probabilities:
The joint probability (P(A \cap B)) can be expressed in two ways:
[
P(A \cap B) = P(A|B) \cdot P(B)
]
[
P(A \cap B) = P(B|A) \cdot P(A)
]
-
Substitute and Rearrange:
Equating the two expressions for (P(A \cap B)), we get:
[
P(A|B) \cdot P(B) = P(B|A) \cdot P(A)
]
Dividing both sides by (P(B)) (assuming (P(B) \neq 0)), we arrive at:
[
P(A|B) = \frac{P(B|A) \cdot P(A)}{P(B)}
]
This is the formula for Bayes' Theorem.
Interpretation
- Prior Probability ((P(A))): Represents the initial belief about (A) before observing (B).
- Likelihood ((P(B|A))): Indicates how likely (B) is if (A) is true.
- Posterior Probability ((P(A|B))): Updates the belief about (A) after observing (B).
- Marginal Probability ((P(B))): Normalizes the result and ensures probabilities sum to 1.
Bayes' Theorem is widely used in various fields, including statistics, machine learning, medicine, and finance, to update probabilities as new evidence becomes available.