\[PAB=\frac{PBA*PA}{PB}\]

Variables

PABconditional probability of A given B
PBAconditional probability of B given A
PAprobability of event A
PBprobability of event B

Description

What is this formula?


Bayes' Theorem calculates the probability of an event A given that another event B has occurred. It updates prior probabilities using new evidence.


Bayes' Theorem is one of the foundations of probability theory, statistics, econometrics, machine learning, decision analysis, and risk assessment.


When to use it


Use this formula when new information becomes available and an existing probability estimate must be updated.


Example


A medical screening test has the following characteristics:


Probability of disease:


PA = 0.01


Probability of a positive test if disease is present:


PBA = 0.95


Overall probability of a positive test:


PB = 0.05


Formula:


PAB=(PBA*PA)/PB


Substitution:


PAB=(0.95*0.01)/0.05


PAB=0.19


Result:


Probability of disease given a positive test = 19%


Applications


Econometrics


Risk analysis


Decision theory


Machine learning


Medical diagnosis


Financial forecasting


Artificial intelligence

fCalc · Android

Take this formula to fCalc and evaluate it directly on your Android device.

Get it on Google Play

Content language

EnglishSpanish