Home » Machine Learning/Artificial Intelligence

# Bayes Theorem in Conditional Probability

In this article, we are going to study about the **Bayes theorem used in conditional probability**. We will learn **what Bayes theorem states** and will also see some of its applications?

Submitted by Monika Sharma, on June 10, 2019

## Bayes Theorem

**Bayes theorem**, given by Reverend Thomas Bayes and thus named after him, 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.

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.

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/ Artificial Intelligence/ Deep Learning/ Data Science
- How to learn Machine Learning and Artificial Intelligence?
- Introduction to Artificial Intelligence
- Artificial Intelligence based Agent
- Types of Agents in Artificial Intelligence
- Classification of Environment in Artificial Intelligence
- PEAS based grouping of Agents in Artificial Intelligence
- Important terms used while problem solving in Artificial Intelligence
- Problem Solving in Artificial Intelligence
- Water jug problem in Artificial Intelligence
- Solving problem by searching in Artificial Intelligence
- Hill climbing search in Artificial Intelligence
- Best first search in Artificial Intelligence
- Vacuum Cleaner Problem in Artificial Intelligence
- Constraint Satisfactory Problem in Artificial Intelligence
- N-Queens Problem- A type of Constraint Satisfactory Problem in Artificial Intelligence
- Crypt-Arithmetic Problem- A type of Constraint Satisfactory Problem in Artificial Intelligence
- Knowledge Representation in Artificial Intelligence
- Introduction to Quantifiers in the knowledge representation in an Agent (based on Artificial Intelligence)
- What is logic in Artificial Intelligence?
- Knowledge-Based Agent Levels in Artificial Intelligence
- Backus-Naur Form (BNF) in Artificial Intelligence
- Uncertainty in Artificial Intelligence – A brief Introduction

- Reasons for Uncertainty in Artificial Intelligence
- Probabilistic Reasoning – A way to deal with Uncertainty
- Conditional Probability in Artificial Intelligence
- Certainty Factor in Artificial Intelligence
- Inference in terms of Artificial Intelligence
- Decision making with Uncertainty in Artificial Intelligence
- Introduction to Fuzzy Logic | Artificial Intelligence
- Fuzzy Logic System Architecture in Artificial Intelligence
- Working Inside the Fuzzy Logic System | Artificial Intelligence
- Learning Agents | Artificial Intelligence
- Types of Learning in Agents in Artificial Intelligence
- Elements of a Learning Agent in Artificial Intelligence
- Reinforcement Learning in Artificial Intelligence
- Main Points of Reinforcement Learning in Artificial Intelligence
- Applications of Reinforcement Learning in Artificial Intelligence
- Artificial Communication | Artificial Intelligence
- Components of communicating agents | Artificial Intelligence
- Natural language processing (NLP) | Artificial Intelligence
- Natural Language Understanding Process | Artificial Intelligence

What's New (MCQs)

- C Language MCQs
- Python MCQs
- Perl MCQs
- MongoDB MCQs
- Java MCQs
- C# MCQs
- Scala MCQs
- Blockchain MCQs
- AutoCAD MCQs
- ASP.Net MCQs
- PHP MCQs
- JavaScript MCQs
- jQuery MCQs
- ReactJS MCQs
- AngularJS MCQs
- JSON MCQs
- Ajax MCQs
- SASS MCQs
- HTML MCQs
- Advanced CSS MCQs
- CSS MCQs
- XML MCQs
- OOPs MCQs
- PL/SQL MCQs
- SQL MCQs
- MySQL MCQs
- Oracle MCQs
- SQLite MCQs
- CouchDB MCQs
- MS Word MCQs
- MS Excel MCQs
- MS PowerPoint MCQs
- Google Sheets MCQs
- Software Engineering MCQs
- Operating System MCQs
- Data Analytics and Visualization MCQs
- MIS MCQs
- Linux MCQs
- WordPress MCQs
- Blogging MCQs

- Energy & Environment Engineering MCQs
- Project Management MCQs
- Marketing MCQs
- Generally Accepted Accounting Principles MCQs
- Bills of Exchange MCQs
- Business Environment MCQs
- Sustainable Development MCQs
- Marginal Costing and Absorption Costing MCQs
- Globalisation MCQs
- Indian Economy MCQs
- Retained Earnings MCQs
- Depreciation MCQs
- Partnership MCQs
- Sole Proprietorship MCQs
- Goods and Services Tax (GST) MCQs
- Cooperative Society MCQs
- Capital Market MCQs
- Business Studies MCQs
- Basic Accounting MCQs
- MIS Executive Interview Questions
- Go Language Interview Questions

Top Interview Coding Problems/Challenges!

- Run-length encoding (find/print frequency of letters in a string)
- Sort an array of 0's, 1's and 2's in linear time complexity
- Checking Anagrams (check whether two string is anagrams or not)
- Relative sorting algorithm
- Finding subarray with given sum
- Find the level in a binary tree with given sum K
- Check whether a Binary Tree is BST (Binary Search Tree) or not
- 1[0]1 Pattern Count
- Capitalize first and last letter of each word in a line
- Print vertical sum of a binary tree
- Print Boundary Sum of a Binary Tree
- Reverse a single linked list
- Greedy Strategy to solve major algorithm problems
- Job sequencing problem
- Root to leaf Path Sum
- Exit Point in a Matrix
- Find length of loop in a linked list
- Toppers of Class
- Print All Nodes that don't have Sibling
- Transform to Sum Tree
- Shortest Source to Destination Path

Comments and Discussions!