Home » Machine Learning/Artificial Intelligence

# Bayes Theorem in Conditional Probability | Artificial Intelligence

In this tutorial, we will learn about the Bayes theorem used in conditional probability, what Bayes theorem states and its applications? By Monika Sharma Last updated : April 15, 2023

## What is Bayes Theorem in AI?

Bayes theorem is a method to find the probability of an event whose occurrence is dependent on some other event’s occurrence. In simple words, using the **Bayes theorem**, we can find the conditional probability of any event. **Bayes theorem**, given by Reverend Thomas Bayes and thus named after him

## Bayes Theorem Mathematical Equation

The **Bayes Theorem**, also known as **Bayes law or Bayes equation** is a mathematical equation which is given as follows:

Where, **A** and **B** are events and **P(B) ≠ 0**.

Here,

**P(A|B)**: Conditional probability of occurrence of event**A**when event**B**has already occurred.**P(B|A)**: Conditional probability of occurrence of event**B**when event**A**has already occurred.**P(A)**: Probability of occurrence of event**A**alone without any dependence on other events.**P(B)**: Probability of occurrence of event**B**alone without any dependence on other events.

## Derivation of Bayes Theorem

**Similarly,**

Putting the value of P (A^B) in equation (1), we get

**Which is our required Bayes equation.**

It should be noted that in the Bayesian equation, we need not find the probability of both the events occurring simultaneously, i.e. **P(A^B)**. We can simply calculate the conditional probability of an event if we know the conditional probability of the event on which it is dependent and the individual probabilities of both the events without any dependency on each other.

Bayes Theorem is applicable only in those experiments where we have only two events. It is not applicable to the cases where the number of events is more than two.

## Conclusion

Nowadays, Bayes Theorem is used in many areas, and we can find its applications in various fields. For example, in chemical engineering, Bayes theorem is used to predict the drug concentrations in a body, it is also used to anticipate the viability of generated H2 by the electrocatalyst made for hydrogen evolution process. It is also used to find the estimates that how likely a person is prone to cancer depending upon his/her age. Apart from these examples, the Bayes rule is widely used and this theorem has proved to be a very efficient method to find the conditional probabilities.

Related Tutorials

- Machine Learning, AI, Deep Learning, and Data Science
- How to Learn Machine Learning and Artificial Intelligence?
- Artificial Intelligence - Introduction
- Artificial Intelligence: What It is, Types, Applications, Advantages and Disadvantages
- Artificial Intelligence-based Agent
- Types of Agents in AI
- Classification of Environment in AI
- PEAS Based Grouping of Agents in AI
- Important terms used while problem solving in AI
- Problem Solving in AI
- Water jug problem in AI
- Problem Solving by Searching in AI
- Hill Climbing Search in AI
- Best-first Search (BFS) in AI
- Vacuum Cleaner Problem in AI
- Constraint Satisfaction Problems in AI
- N-Queens Problem
- Crypt-Arithmetic Problem
- Knowledge Representation in AI
- Quantifiers in knowledge Representation in an AI Agent
- What is logic in AI?
- Knowledge-Based Agent Levels in AI

- Backus-Naur Form (BNF) in AI
- Uncertainty in AI – A brief Introduction
- Reasons for Uncertainty in AI
- Probabilistic Reasoning in AI - A way to deal with Uncertainty
- Conditional Probability in AI
- Certainty Factor in AI
- Inference in terms of Artificial Intelligence
- Decision Making Under Uncertainty in AI
- What is Fuzzy Logic in AI and Why It is used?
- Fuzzy Logic System Architecture and Its Components in AI
- Membership Function in Fuzzy Logic | Artificial Intelligence
- Learning Agents in AI
- Types of Learning in Agents in AI
- Elements of a Learning Agent in AI
- Reinforcement Learning: What It Is, Types, Applications
- Artificial Communication | Artificial Intelligence
- Components of communicating agents | Artificial Intelligence
- Natural language processing (NLP)
- Natural Language Understanding (NLU) Process

Comments and Discussions!