Conditional probability and Bayes Theorem
Conditional Probability: Conditional probability is a probability measure that calculates the probability of an event occurring given that another event has...
Conditional Probability: Conditional probability is a probability measure that calculates the probability of an event occurring given that another event has...
Conditional Probability:
Conditional probability is a probability measure that calculates the probability of an event occurring given that another event has already occurred. It is denoted by P(A|B), where A and B are events.
Bayes Theorem:
The Bayes theorem is a formula that relates conditional probability and the marginal probability of an event. It states that P(A|B) = P(A and B) / P(B). This theorem helps us to calculate the probability of an event occurring given that another event has already occurred.
Intuitive Explanation:
Imagine you are flipping a coin twice. The probability of getting heads or tails on each coin flip is 0.5. Now, imagine that you have already flipped heads on the first coin flip. What is the probability that the second coin flip will result in tails?
According to Bayes' theorem, the probability of getting tails on the second flip is 0.25. This is because the probability of getting tails is dependent on the first coin flip, which has already occurred.
Formal Definition:
Conditional probability is defined as follows:
P(A|B) = P(A and B) / P(B)
where:
A is the event of interest
B is the event that has already occurred
P(A|B) is the probability of A occurring given that B has already occurred
P(A and B) is the probability of both events occurring
P(B) is the probability of the event B occurring
Applications:
Conditional probability and Bayes theorem are used in various fields, including:
Statistics
Machine learning
Bayesian inference
Decision making
Examples:
In a survey of moviegoers, the probability of a movie being rated PG (for all ages) is 0.6. If 20% of moviegoers are children (age 13 and under), the probability of a movie being rated PG for children is 0.24.
In a healthcare study, the probability of a patient developing a certain disease is 0.001. If 10 patients are randomly selected, the probability of at least one patient developing the disease is 0.1