Professional Documents
Culture Documents
event/s
probability =
number of
outcomes
If you choose a random person, what is the likelihood that they like classical music?
P(E) = Frequency for classical / Total frequencies in table
P(E) = 30/100 = 0.3
open@sap.com
Follow all of SAP
www.sap.com/contactsap
P(B|A) = P(A ∩ B)
P(A)
open@sap.com
Follow all of SAP
www.sap.com/contactsap
What is the likelihood that a You have developed an app to review What is the likelihood of
CEO of a stock market listed travel expense claims, after an audit people who work
company will be fired, given found that 3% of them contain errors. outdoors without a hat
that the company’s share ▪ The app finds errors in 94% of the examples getting skin cancer, given
price underperforms its picked up in the audit and in 8% of the they work in the UK?
competitors’ by more than claims with no errors.
10% over a year? ▪ What is the likelihood of there actually being
an error, given the expense claim has been
marked as such by your app?
© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 3
Understanding Bayes’ Theorem
Medical test example
Both A & B
open@sap.com
Follow all of SAP
www.sap.com/contactsap
▪ We know:
P(Cloud|Rain) = 0.7
P(Rain) = 0.1 (likelihood for June)
P(Cloud) = 0.5
▪ Therefore, using Bayes’ theorem, the probability of getting
rain if it’s cloudy in June is …
P(Rain|Cloud) = 0.7 x 0.1 = 0.14 or 14%
0.5
© 2019 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 4
Examples of Bayes’ Theorem in Practice
Summary
open@sap.com
Follow all of SAP
www.sap.com/contactsap