Given and are events with , the conditional probability of given , denoted by , is defined as:
Context
Conditional probability is foundational in statistics and machine learning. For example, if 30% of emails are spam and 80% of spam emails contain the word “free,” then . Bayes’ theorem builds directly on conditional probability.