SlideShare a Scribd company logo
1 of 67
Download to read offline
To the extent possible under law, Somik
Raha has waived all copyright and
related or neighboring rights to the
slide deck “The Magic of Probability.”
This work is published from: United
States and India.
The Magic of Probability
Workshop by Dr. Somik Raha
!"ಾನದ&' (ಾವ* +ೕಳ.ವ ಎ0ಾ' !ಷಯಗಳ., ಎ0ಾ'
4ೕ5ಾ6ನಗಳ. ಅ89:ತ<ಾ=>, ಏ@ಂದB ಅವ*ಗಳ.
@ೕವಲ 4ೕ5ಾ6ನಗDಾ=>. ಏ(ಾಗ&E ಎಂಬುದ@H ಅವ*
ಊ+ಗDಾ=> ಮತುK ಏ(ಾಗುತKE ಎಂದು 8ಮL
4MNಲ', ಏ@ಂದB 8ೕವ* ಸಂಪQಣ6 ಪSTೕಗಗಳನುU
5ಾVಲ'.
ಆದXYಂದ, !"ಾ8ಗಳ. ಅನು5ಾನ ಮತುK
ಅ89:ತZಯನುU ಎದುYಸಲು ಬಳಸ0ಾಗುತKE. ಎ0ಾ'
>ೖ"ಾ8ಕ "ಾನವ* ಅ89:ತ<ಾ=E. ಅನು5ಾನ ಮತುK
ಅ89:ತZTಂN=ನ ಈ ಅನುಭವವ* ಮುಖ`<ಾ=E.
ಇದು +b:ನ 5ೌಲ`ವನುU +ೂಂNE ಮತುK !"ಾನವನುU
eೕY !ಸKYfE ಎಂದು (ಾನು ನಂಬುZKೕg. hಂEಂದೂ
ಪYಹYಸದ jಾವ*Eೕ ಸಮk`ಯನುU ಪYಹYಸಲು,
8ೕವ* ಅ"ಾತ@H lಾ=ಲು ZBಯmೕಕು ಎಂದು (ಾನು
ನಂಬುZKೕg. 8ೕವ* ಅದನುU 8ಖರ<ಾ= +ೂಂNಲ'Nರುವ
oಾಧ`ZಯನುU 8ೕವ* ಅನುಮ4ಸmೕಕು. ಇಲ'NದXB,
8ೕವ* ಈqಾಗrೕ 8ಮs ಮನಸtನುU +ೂಂNದXB, 8ೕವ*
ಅದನುU ಪYಹYಸNರಬಹುದು.
!"ಾ8 8ಮL ಉತKರ 4MNಲ' ಎಂದು +ೕMvಾಗ,
ಅವನು ಅ"ಾ8. ಅದು +ೕL @ಲಸ 5ಾಡುತKE
ಎಂಬುದರ ಕುYತು ತನL ಹಂಬಲ!E ಎಂದು ಅವನು
8ಮL +ೕMvಾಗ, ಅವನು ಅದರ ಬLx
ಅ89:ತ(ಾ=ರುyಾKg. ಅದು +ೕL @ಲಸ 5ಾಡುತKE
ಎಂದು ಅವನು ಖbತ<ಾ= +ೕMvಾಗ ಮತುK "ಇದು @ಲಸ
5ಾಡುವ 5ಾಗ6<ಾ=E, (ಾನು lಾz ಕಟು|ZKೕg"
ಎಂದು ಅವನು 8ಮL +ೕMvಾಗ, ಅವನು ಇನೂU @ಲವ*
ಅನು5ಾನಗಳ&'ರುyಾKg. ಮತುK ಪSಗ4ಯನುU oಾ}ಸಲು,
ಈ ಅ"ಾನ ಮತುK ಈ ಅನು5ಾನವನುU (ಾವ*
ಗುರು4ಸುವ*ದು ಅತು`ನUತ ~ಾSಮುಖ`Zjಾ=E. ನಮL
ಸಂEೕಹ!ರುವ*ದYಂದ, +ೂಸ ಆrೂೕಚgಗMqಾ=
+ೂಸ NಕುHಗಳ&' gೂೕಡುವ*ದನುU (ಾವ*
ಪSoಾKÄಸುZKೕ>. !"ಾನದ mಳವÅLಯ ದರವ* 8ೕವ*
@ೕವಲ ಅವrೂೕಕನಗಳನುU 5ಾಡುವ ದರವಲ' ಆದB,
+ಚು: ಮುಖ`<ಾ=, 8ೕವ* ಪYೕÇಸಲು +ೂಸ
!ಷಯಗಳನುU ರbಸುವ ದರ.
01. WHERE DOES PROBABILITY
COME FROM?
Poll Question:
Where does probability come from?
Let’s call a coin toss
(ಾಣ` ÉಾÑ ಅನುU ಮುನೂtbkೂೕಣ
Psst… Sojan, take a look.
Prabha, What’s
your probability
of heads?
Sojan, What’s
your probability
of heads?
Sojan, What’s
your probability
of heads?
Prabha, What’s
your probability
of heads?
50%
50%
100%
50%
Let’s call a coin toss
(ಾಣ` ÉಾÑ ಅನುU ಮುನೂtbkೂೕಣ
How can two people have different probabilities for the same event?
ಒಂEೕ ಈ>ಂÜL ಇಬáರು ವ`àKಗಳ. +ೕL !âನU ಸಂಭವ8ೕಯZಯನುU +ೂಂNರುyಾKB?
•Dialog
Probability =Your State of Information
ಸಂಭವ%ೕಯ( = %ಮ* +ಾ-.ಯ /0.
THERE IS NO OBJECTIVE PROBABILITY
ವಸುK8ಷä ಸಂಭವ8ೕಯZಯಂತಹ jಾವ*Eೕ !ಷಯ!ಲ'
If it was objective, it would be data, not probability!

ಅದು ವಸುK8ಷä<ಾ=ದXB, ಅದು ãೕÉಾ, ಸಂಭವ8ೕಯZ ಅಲ'!
Probability =Your State of Information
ಸಂಭವ%ೕಯ( = %ಮ* +ಾ-.ಯ /0.
THERE IS NO OBJECTIVE PROBABILITY
ವಸುK8ಷä ಸಂಭವ8ೕಯZಯಂತಹ jಾವ*Eೕ !ಷಯ!ಲ'
Inappropriate Phrases
ಸೂಕ$ವಲ'ದ ನು+ಗಟು.ಗಳ0
The probability
Appropriate Phrases
ಸೂಕ$1ಾದ ನು+ಗಟು.ಗಳ0
My probability
Your probability
Prabha’s probability
Sojan’s probability
Our group’s probability
You can only place a probability on clear distinctions
8ೕವ* ಸåಷ| ಪYಕಲågಗಳ çೕr 5ಾತS ಸಂಭವ8ೕಯZಯನುU
The Clarity Test

ಸåಷ|Z ಪYೕé
Can a fact-based clairvoyant tell you how the distinction has resolved?
What is your probability of rain in Bengaluru tomorrow?
Let’s first define rain: At least 10 cm of water from the sky
Let’s define tomorrow: From 12:01 AM to 11:59 PM
Quick poll
When should you place a 100% or 0% probability?
8ೕವ* jಾ<ಾಗ 100% ಅಥ<ಾ 0% ಸಂಭವ8ೕಯZಯನುU
I did not die yesterday
I will definitely die someday
The Epistemology of Probability from a
Decision Analysis Perspective
8êಾ6ರ !ë'ೕಷíಯ ದೃî|@ೂೕನNಂದ
ಸಂಭವ8ೕಯZಯ "ಾನïಾಸñ
Epistemology.

"ಾನïಾಸñ
The theory of knowledge, especially with regard to its methods, validity,
and scope, and the distinction between justified belief and opinion

"ಾನದ fvಾóಂತ, !ëೕಷ<ಾ= ಅದರ !êಾನಗಳ., fಂಧುತò ಮತುK <ಾ`ÄK ಮತುK
ಸಮಥ68ೕಯ ನಂô@ ಮತುK ಅâ~ಾSಯದ ನಡು!ನ ವ`yಾ`ಸ@H ಸಂಬಂ}fದಂZ
dictionary.com
It is the branch of philosophy concerned with knowledge

ಇದು "ಾನ@H ಸಂಬಂ}fದ ತತòïಾಸñದ ïಾöjಾ=E
wikipedia.com
A tale of friendship
Rev Thomas Bayes

Died: 1761
1763
An Essay towards solving a Problem in the Doctrine of Chances
Read out by his friend Richard Price to the Royal Society
Richard Price
Worked out Conditional Probability and the Beta Distribution!
Conditional Probability: Haemophilia
Haeomophiliac
Not 

Haemophiliac
Male
Female
Male
Female
Male
Female
Haemophiliac
Not 

Haemophiliac
Haemophiliac
Not

Haemophiliac
161.57M
161.60M
99.98%
0.02%
30,000
161.6M
0.0016%
99.9984%
161.6M
166.7M
49.22%
50.78%
0.01%
49.21%
0.0008%
50.78%
0.01%
0.0008%
50.78%
49.21%
0.01%
99.99%
91.74%
8.26%
49.22%
50.78%
Mistaking these two is called:
“Associative Logic Error”
Conditional Probability: Haemophilia
Haeomophiliac
Not 

Haemophiliac
Male
Female
Male
Female
Male
Female
Haemophiliac
Not 

Haemophiliac
Haemophiliac
Not

Haemophiliac
99.98%
0.02%
0.0016%
99.9984%
161.6M
166.7M
49.22%
50.78%
0.01%
49.21%
0.0008%
50.78%
0.01%
0.0008%
50.78%
49.21%
0.01%
99.99%
91.74%
8.26%
49.22%
50.78%
Your turn:
https://tinyurl.com/haemophilia-inference
Prior Likelihood
Pre-Posterior
Posterior
0.01%
49.21%
0.0008%
50.78%
Conditional Probability Quiz 2
If someone has lung cancer, what is your probability for this person being a
smoker? 



If someone smokes, what is your probability for this person getting lung cancer?
Your turn:
https://tinyurl.com/smoker-lungcancer
0.15%
0.02%
85.86%
13.98%
Conditional Probability: Lung Cancer
Lung Cancer
No Lung Cancer
Smoker
Non-Smoker
Smoker
Non-Smoker
Smoker
Not Smoker
Lung Cancer
No Lung Cancer
Lung Cancer
No Lung Cancer
0.0004%
99.9996%
26.7%
73.3%
0.15%
13.98%
0.02%
85.86%
6.9
100,000
0.0069%
99.931%
95.2%
4.8%
26.7%
73.3%
99.98%
0.02%
Prior Likelihood
Pre-Posterior
Posterior
Mistaking these two is called:
“Associative Logic Error”
Conditional Probability Quiz 3
If someone has Covid, what is your probability for this person testing positive
for antibodies? 



If someone tests positive for Covid antibodies, what is your probability for
this person having Covid?
Your turn:
https://tinyurl.com/covid-inference
4.5%
0.02%
85.86%
13.98%
Conditional Probability: Covid Antibody Test
Covid +ve
Covid -ve
Antibody 

detected
Antibody 

not detected
Antibody 

detected
Antibody

not detected
Antibody 

detected
Antibody not 

detected
Covid +ve
Covid -ve
Covid +ve
Covid -ve
0.55%
99.45%
9.25%
90.75%
4.5%
13.98%
0.02%
85.86%
5%
95%
90%
10%
5%
95%
51.35%
48.65%
Prior
Likelihood
Pre-Posterior
Posterior
Mistaking these two is called:
“Associative Logic Error”
Let’s look at Shruti
Lived in New York City at the height of the
pandemic. She thought she had Covid and
took the antibody test several months later.
She just got a negative antibody test result
Her doctor says: “There is no chance you got Covid.” 

Why is he saying that?
Conditional Probability: Covid Antibody Test
Covid +ve
Covid -ve
Antibody 

detected
Antibody 

not detected
Antibody 

detected
Antibody

not detected
Antibody 

detected
Antibody not 

detected
Covid +ve
Covid -ve
Covid +ve
Covid -ve
0.55%
99.45%
9.25%
90.75%
5%
95%
90%
10%
5%
95%
51.35%
48.65%
Prior
Likelihood
Pre-Posterior
Posterior
Let’s look at Shruti
Let’s add more context
Shruti presents with all the serious symptoms
(according to WHO ) of COVID:
Difficulty breathing or shortness of breath
Chest pain or pressure
Loss of speech or movement
She just got a negative antibody test result
What prior probability should the doctor have placed?
What is the conditional probability of her having Covid with this prior?
Conditional Probability: Covid Antibody Test
Covid +ve
Covid -ve
Antibody 

detected
Antibody 

not detected
Antibody 

detected
Antibody

not detected
Antibody 

detected
Antibody not 

detected
Covid +ve
Covid -ve
Covid +ve
Covid -ve
24%
76%
69%
31%
75%
25%
90%
10%
5%
95%
2%
98%
Prior
Likelihood
Pre-Posterior
Posterior
Can you come up with your own examples
Where else can this apply?
Judicial Sentencing
Decaying as Society
What about Machine Learning?
Let’s go back to the Rain example
What is your probability of rain in Bengaluru tomorrow?
What is your probability of rain in Bengaluru tomorrow?
A smart engineer has built a rain detector using ML on
weather models
What would you like to know from the evaluation results of
the model in a lab setting?
ML Example: Rain Detector
Rain
No Rain
Detector: “RAIN”
Detector: “No RAIN”
Detector: “RAIN”
Detector: “No RAIN”
Detector: “RAIN”
Detector: “No RAIN”
Rain
No Rain
Rain
No Rain
24%
76%
69%
31%
75%
25%
90%
10%
5%
95%
2%
98%
Prior
Likelihood
Pre-Posterior
Posterior
What metrics do ML classification model designers report?
My probability of rain
tomorrow
How can we combine my P(Rain) to evaluate
model?
Rain
No Rain
Detector: “RAIN”
Detector: “No RAIN”
Detector: “RAIN”
Detector: “No RAIN”
Detector: “RAIN”
Detector: “No RAIN”
Rain
No Rain
Rain
No Rain
24%
76%
69%
31%
75%
25%
90%
10%
5%
95%
2%
98%
Prior
Likelihood
Pre-Posterior
Posterior
Can you easily do inference with these metrics?
If yes, why?
If not, why not?
RECALL
PRECISION
My probability of rain
tomorrow
TPR & FPR allow human evaluation of model
Rain
No Rain
Detector: “RAIN”
Detector: “No RAIN”
Detector: “RAIN”
Detector: “No RAIN”
Detector: “RAIN”
Detector: “No RAIN”
Rain
No Rain
Rain
No Rain
24%
76%
69%
31%
75%
25%
90%
10%
5%
95%
2%
98%
Prior
Likelihood
Pre-Posterior
Posterior
Instead, ask for True Positive Rate (Recall / Sensitivity) and 

False Positive Rate (1-Specificity)
TPR

SENSITIVITY

RECALL
FPR

1-SPECIFICITY
My probability of rain
tomorrow
Poll Question:
If you saw seven heads in a row in a coin toss, what
probability would you place on the next coin landing
heads?
Questions?
Continuous Probability Quick Review
8ರಂತರ ಸಂಭವ8ೕಯZ ತòYತ !ಮë6
Roll two dice and bet on the sum of the roll

ಎರಡು vಾಳಗಳನುU ಉರುMf ಮತುK Bೂೕõನ úತKದ çೕr lಾz
ಕù|@ೂMû
Let’s play a game ಒಂದು ಆಟ ಆãೂೕಣ
Poll: If you could bet on only one number for the sum of two die rolls (2-12), what
would you bet on?
Roll two dice and bet on the sum of the roll

ಎರಡು vಾಳಗಳನುU ಉರುMf ಮತುK Bೂೕõನ úತKದ çೕr lಾz
ಕù|@ೂMû
Let’s play a game ಒಂದು ಆಟ ಆãೂೕಣ
Poll: If you could bet on three numbers for the sum of two die rolls (2-12), what
would you bet on?
Roll two dice and bet on the sum of the roll

ಎರಡು vಾಳಗಳನುU ಉರುMf ಮತುK Bೂೕõನ úತKದ çೕr lಾz
ಕù|@ೂMû
Let’s play a game ಒಂದು ಆಟ ಆãೂೕಣ
Let’s try it: Open Workbook
Discrete vs Continuous Measures
Discrete:
Sum of two die rolls

2,3,4,5,6,7,8,9,10,11,12
Continuous:
Revenue in Crores

Test Positivity Rate (0%-100%)
Probability Mass Function (PMF)
Probability
0%
5%
9%
14%
18%
2 3 4 5 6 7 8 9 10 11 12
Cumulative Mass Function
Probability
0%
25%
50%
75%
100%
2 3 4 5 6 7 8 9 10 11 12
?
Poll Question:
What is the following curve?
Poll Question:
How would you read off the Probability of making revenue
less than X crores from this curve?
Poll Question:
What is the following curve?
Poll Question:
How would you read off the Probability of making revenue
less than X crores from this curve?
Cumulative Distribution Function (CDF)
Probability
0%
25%
50%
75%
100%
Test Positivity Rate
0% 25% 50% 75% 100%
CMF and PMF become CDF and PDF when dealing with
“continuous variables”
Low (10%)
Med (50%)
High (90%)
Low

25%
Med

35%
High

60%
Probability Distribution Function (PDF)
0
1.25
2.5
3.75
5
Test Positivity Rate
0% 25% 50% 75% 100%
Low

25%
Med

35%
High

60%
Probability:

Area under curve
Let’s go back to Bayes
It’s conjugate is also a Beta!
Bayes also worked out the Beta Distribution
Binomial trial
Exactly two (“bi”) outcomes, “success or failure”
Each trial has same chance of success
Binomial Distribution
0
0.045
0.09
0.135
0.18
# of Heads
0 5 10 15 20
Beta Distribution
Ref: Wikipedia
Beta(1,1)
The Uniform Prior
0
0.25
0.5
0.75
1
0 0.25 0.5 0.75 1
Bayes: Suggested “with a great deal of doubt” as the prior probability

distribution to express ignorance about the correct prior distribution.
Why is this statement problematic? How would you edit it?
Hint: Remember the clairvoyant?
Worked out Probability Theory
“Probability as an instrument for repairing defects in knowledge”
Pierre Simon Laplace
1771
Mémoire sur la probabilité des causes par les événements
Memoir on the Probability of the Causes of Events
Independently worked out what Bayes had worked out, and 

then some.
What is the probability of the sun rising tomorrow?
0
0.25
0.5
0.75
1
Parameter “p”
0 0.25 0.5 0.75 1
Laplace had no hesitation in using the Uniform prior to express total ignorance
What is the probability of the sun rising tomorrow?
Laplace’s succession rule, illustrated with an unfortunate example
Prior Knowledge:

both success and failure are possible


Assumes

we observed one success and 

one failure for sure before we started



Not correct if s=0, or s=n
“But this number [the probability of the sun coming up tomorrow] is far greater for him who,
seeing in the totality of phenomena the principle regulating the days and seasons, realizes
that nothing at present moment can arrest the course of it.”
Probability theory as an extension of logic
Edwin Thompson Jaynes
1950s
Probability Theory: The Logic of Science
The “Robot”, the ancestor of the “Clairvoyant”
“In order to direct attention to constructive things and away
from controversial irrelevancies, we shall invent an imaginary
being. Its brain is to be designed by us, so that it reasons
according to certain definite rules. These rules will be
deduced from simple desiderata which, it appears to us,
would be desirable in human brains; i.e. we think that a
rational person, on discovering that they were violating one
of these desiderata, would wish to revise their thinking.”
Excerpt From: E. T. Jaynes & G. Larry Bretthorst. “Probability
Theory.” Apple Books. https://books.apple.com/us/book/
probability-theory/id811951223
Probability theory as an extension of logic
Edwin Thompson Jaynes
1950s
Probability Theory: The Logic of Science
The “Robot”, the ancestor of the “Clairvoyant”
“Our robot is going to reason about propositions. As already
indicated above, we shall denote various propositions by
italicized capital letters, {A, B, C, etc.}, and for the time
being we must require that any proposition used must have,
to the robot, an unambiguous meaning and must be of the
simple, definite logical type that must be either true or
false.”
Excerpt From: E. T. Jaynes & G. Larry Bretthorst. “Probability
Theory.” Apple Books. https://books.apple.com/us/book/
probability-theory/id811951223
Probability theory as an extension of logic
Edwin Thompson Jaynes
1950s
Probability Theory: The Logic of Science
Let me make what, I fear, will seem to some a radical,
shocking suggestion: The merits of any statistical method
are not determined by the ideology which led to it. For,
many different, violently opposed ideologies may all lead to
the same final “working equations” for dealing with real
problems. Apparently, this phenomenon is something new in
statistics; but it is so commonplace in physics that we have
long since learned how to live with it. Today, when a
physicist says, “Theory A is better than theory B,” he does
not have in mind any ideological considerations; he means
simply, “There is at least one specific application where
theory A leads to a better result than theory B.” I suggest
that we apply the same criterion in statistics: The merits of
any statistical method are determined by the results it gives
when applied to specific problems. The Court of Last Resort
in statistics is simply our commonsense judgment of those
results.
Foundations of Probability Theory, Statistical Inference, and Statistical Theories of Science
Decision Analytic lens
Ronald A. Howard
1966
Coined the term “Decision Analysis”
Cofounder of the field
Brought the notion of “decisions”
First published version of “Encoding of priors” in
Decision Analysis: Applied Decision Theory
Prior development as “psychoanalytic process”
Watch interview
Conditional Probability: Covid Antibody Test
Covid +ve
Covid -ve
Antibody 

detected
Antibody 

not detected
Antibody 

detected
Antibody

not detected
Antibody 

detected
Antibody not 

detected
Covid +ve
Covid -ve
Covid +ve
Covid -ve
0.55%
99.45%
9.25%
90.75%
5%
95%
90%
10%
5%
95%
51.35%
48.65%
Prior
Likelihood
Pre-Posterior
Posterior
What about Shruti?
She presents with all the serious symptoms
(according to WHO ) of COVID:
Difficulty breathing or shortness of breath
Chest pain or pressure
Loss of speech or movement
Conditional Probability: Covid Antibody Test
Covid +ve
Covid -ve
Antibody 

detected
Antibody 

not detected
Antibody 

detected
Antibody

not detected
Antibody 

detected
Antibody not 

detected
Covid +ve
Covid -ve
Covid +ve
Covid -ve
24%
76%
69%
31%
75%
25%
90%
10%
5%
95%
2%
98%
Prior
Likelihood
Pre-Posterior
Posterior
Distinctions that pass clarity test
0
0.25
0.5
0.75
1
Long-run Fraction of Heads
0 0.25 0.5 0.75 1
Meaningless to put probability on unclear distinctions
We know nothing at all about the distinction
-AND-
Believe that every value is equally likely
Updating the beta is a simple addition operation
0
0.75
1.5
2.25
3
0
0.25
0.5
0.75
1
Long-run fraction of heads
0 0.04 0.08 0.12 0.16 0.2 0.24 0.28 0.32 0.36 0.4 0.44 0.48 0.52 0.56 0.6 0.64 0.68 0.72 0.76 0.8 0.84 0.88 0.92 0.96 1
Add the number of tosses to update N and the number of successes to update S
PRIOR

S = 1, N = 2

alpha = 1, beta = 2-1= 1
0
HEADS
in
2
TOSSES

S
=
1+0
=
1, N
=
2+2
=
4

alpha =
1, beta =
4-1=
3
2
HEADS in 2
TOSSES

S =
1+2
=
3, N
=
2+2
=4

alpha =
3, beta =
4-3=
1
1 HEADS in 2 TOSSES

S = 1+1 = 2, N = 2+2 =4

alpha = 2, beta = 4-2= 2
Decision Analytic AB tests
0%
25%
50%
75%
100%
Long-run fraction of heads
0 0.15 0.3 0.45 0.6 0.75 0.9
0
0.25
0.5
0.75
1
Long-run fraction of heads
0 0.15 0.3 0.45 0.6 0.75 0.9
Before Experiment PRIOR
Treatment Control
POSTERIOR
After Experiment
0
0.75
1.5
2.25
3
Long-run fraction of heads
0 0.15 0.3 0.45 0.6 0.75 0.9
0
0.75
1.5
2.25
3
Long-run fraction of heads
0 0.15 0.3 0.45 0.6 0.75 0.9
Treatment Control
$ Value of Treatment $ Value of Control
Compare
Pass through Decision Model
The Metalog Distribution
Tom Keelin
2016
Published “The Metalog Distributions”
A significant advance in statistics
A distribution to match data/assessments
Prior development and updating 

a fully “psychoanalytic” process
Entirely compatible with data, 

huge implications for ML
Homework
Beta Distribution
Play with the Beta.DIST Excel function to
create:
1. Uniform Prior
2. Updating Beta Distributions
Decision Analytic AB Testing
Read Article

Try spreadsheet and Web model
Metalog Distributions
Watch Video 1, Video 2



Download Metalog Workboooks in Excel
Encode your beliefs with Metalog
Distributions

More Related Content

Similar to The Magic of Probability (BIT)

Slides(ppt)
Slides(ppt)Slides(ppt)
Slides(ppt)
butest
 
Chapter 17 (Salkind)What To Do When You’re Not Normal.docx
Chapter 17 (Salkind)What To Do When You’re Not Normal.docxChapter 17 (Salkind)What To Do When You’re Not Normal.docx
Chapter 17 (Salkind)What To Do When You’re Not Normal.docx
keturahhazelhurst
 
Chapter 17 (Salkind)What To Do When You’re Not Normal.docx
Chapter 17 (Salkind)What To Do When You’re Not Normal.docxChapter 17 (Salkind)What To Do When You’re Not Normal.docx
Chapter 17 (Salkind)What To Do When You’re Not Normal.docx
walterl4
 
The Dark Art of Production Alerting
The Dark Art of Production AlertingThe Dark Art of Production Alerting
The Dark Art of Production Alerting
Alois Reitbauer
 
Barra Presentation
Barra PresentationBarra Presentation
Barra Presentation
spgreiner
 

Similar to The Magic of Probability (BIT) (20)

Chapter 4
Chapter 4Chapter 4
Chapter 4
 
835 keynote siegel
835 keynote siegel835 keynote siegel
835 keynote siegel
 
Eccmid 2015 Mykrobe Predictor - A desktop application identifying species and...
Eccmid 2015 Mykrobe Predictor - A desktop application identifying species and...Eccmid 2015 Mykrobe Predictor - A desktop application identifying species and...
Eccmid 2015 Mykrobe Predictor - A desktop application identifying species and...
 
Pre-Cal 40S Slides May 26, 2008
Pre-Cal 40S Slides May 26, 2008Pre-Cal 40S Slides May 26, 2008
Pre-Cal 40S Slides May 26, 2008
 
Probability
ProbabilityProbability
Probability
 
human brain
human brainhuman brain
human brain
 
Slides(ppt)
Slides(ppt)Slides(ppt)
Slides(ppt)
 
인공지능은 의료를 어떻게 혁신할 것인가 (ver 2)
인공지능은 의료를 어떻게 혁신할 것인가 (ver 2)인공지능은 의료를 어떻게 혁신할 것인가 (ver 2)
인공지능은 의료를 어떻게 혁신할 것인가 (ver 2)
 
The Curse of P90
The Curse of P90The Curse of P90
The Curse of P90
 
Chapter 17 (Salkind)What To Do When You’re Not Normal.docx
Chapter 17 (Salkind)What To Do When You’re Not Normal.docxChapter 17 (Salkind)What To Do When You’re Not Normal.docx
Chapter 17 (Salkind)What To Do When You’re Not Normal.docx
 
Chapter 17 (Salkind)What To Do When You’re Not Normal.docx
Chapter 17 (Salkind)What To Do When You’re Not Normal.docxChapter 17 (Salkind)What To Do When You’re Not Normal.docx
Chapter 17 (Salkind)What To Do When You’re Not Normal.docx
 
Null hypothesis for single linear regression
Null hypothesis for single linear regressionNull hypothesis for single linear regression
Null hypothesis for single linear regression
 
Hypothesis Testing: Statistical Laws and Confidence Intervals
Hypothesis Testing: Statistical Laws and Confidence IntervalsHypothesis Testing: Statistical Laws and Confidence Intervals
Hypothesis Testing: Statistical Laws and Confidence Intervals
 
The Dark Art of Production Alerting
The Dark Art of Production AlertingThe Dark Art of Production Alerting
The Dark Art of Production Alerting
 
How to Mitigate Fatigue in Heavy Industry - Fatigue Science Webinar | May 2019
How to Mitigate Fatigue in Heavy Industry - Fatigue Science Webinar | May 2019How to Mitigate Fatigue in Heavy Industry - Fatigue Science Webinar | May 2019
How to Mitigate Fatigue in Heavy Industry - Fatigue Science Webinar | May 2019
 
Quantitative Methods for Lawyers - Class #14 - Power Laws, Hypothesis Testing...
Quantitative Methods for Lawyers - Class #14 - Power Laws, Hypothesis Testing...Quantitative Methods for Lawyers - Class #14 - Power Laws, Hypothesis Testing...
Quantitative Methods for Lawyers - Class #14 - Power Laws, Hypothesis Testing...
 
IQ versus RQ
IQ versus RQIQ versus RQ
IQ versus RQ
 
Chapter 7
Chapter 7Chapter 7
Chapter 7
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
Barra Presentation
Barra PresentationBarra Presentation
Barra Presentation
 

More from Somik Raha

More from Somik Raha (19)

Language, Simulation and Inference
Language, Simulation and InferenceLanguage, Simulation and Inference
Language, Simulation and Inference
 
Decision Analysis Introduction - BIT
Decision Analysis Introduction - BITDecision Analysis Introduction - BIT
Decision Analysis Introduction - BIT
 
Holding Space: Listening for god when you totally disagree
Holding Space: Listening for god when you totally disagreeHolding Space: Listening for god when you totally disagree
Holding Space: Listening for god when you totally disagree
 
DAAG 2018: Emotions and Decision Analysis
DAAG 2018: Emotions and Decision AnalysisDAAG 2018: Emotions and Decision Analysis
DAAG 2018: Emotions and Decision Analysis
 
The history of the Stanford University Department of Public Safety (Stanford ...
The history of the Stanford University Department of Public Safety (Stanford ...The history of the Stanford University Department of Public Safety (Stanford ...
The history of the Stanford University Department of Public Safety (Stanford ...
 
Finding your Meta-Strategy
Finding your Meta-StrategyFinding your Meta-Strategy
Finding your Meta-Strategy
 
Akash Bhora
Akash BhoraAkash Bhora
Akash Bhora
 
Decision Analysis - Ekatva - Gujarati
Decision Analysis - Ekatva - GujaratiDecision Analysis - Ekatva - Gujarati
Decision Analysis - Ekatva - Gujarati
 
Finding Your Voice
Finding Your VoiceFinding Your Voice
Finding Your Voice
 
A Bayesian Dive
A Bayesian DiveA Bayesian Dive
A Bayesian Dive
 
From Probability to Decision Analysis
From Probability to Decision AnalysisFrom Probability to Decision Analysis
From Probability to Decision Analysis
 
Gandhi Jayanti
Gandhi Jayanti Gandhi Jayanti
Gandhi Jayanti
 
Values: Finding your Meta-Strategy
Values: Finding your Meta-StrategyValues: Finding your Meta-Strategy
Values: Finding your Meta-Strategy
 
Making your School Decision
Making your School DecisionMaking your School Decision
Making your School Decision
 
The Great Debate
The Great DebateThe Great Debate
The Great Debate
 
Making Good Decisions
Making Good DecisionsMaking Good Decisions
Making Good Decisions
 
Vivekananda Jaynati: Path of Action
Vivekananda Jaynati: Path of ActionVivekananda Jaynati: Path of Action
Vivekananda Jaynati: Path of Action
 
Axiology V16
Axiology V16Axiology V16
Axiology V16
 
Rabindra Jayanti
Rabindra JayantiRabindra Jayanti
Rabindra Jayanti
 

Recently uploaded

Exploratory Data Analysis - Dilip S.pptx
Exploratory Data Analysis - Dilip S.pptxExploratory Data Analysis - Dilip S.pptx
Exploratory Data Analysis - Dilip S.pptx
DilipVasan
 
一比一原版麦考瑞大学毕业证成绩单如何办理
一比一原版麦考瑞大学毕业证成绩单如何办理一比一原版麦考瑞大学毕业证成绩单如何办理
一比一原版麦考瑞大学毕业证成绩单如何办理
cyebo
 
NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...
NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...
NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...
Amil baba
 
一比一原版西悉尼大学毕业证成绩单如何办理
一比一原版西悉尼大学毕业证成绩单如何办理一比一原版西悉尼大学毕业证成绩单如何办理
一比一原版西悉尼大学毕业证成绩单如何办理
pyhepag
 
Fuzzy Sets decision making under information of uncertainty
Fuzzy Sets decision making under information of uncertaintyFuzzy Sets decision making under information of uncertainty
Fuzzy Sets decision making under information of uncertainty
RafigAliyev2
 
一比一原版阿德莱德大学毕业证成绩单如何办理
一比一原版阿德莱德大学毕业证成绩单如何办理一比一原版阿德莱德大学毕业证成绩单如何办理
一比一原版阿德莱德大学毕业证成绩单如何办理
pyhepag
 
一比一原版加利福尼亚大学尔湾分校毕业证成绩单如何办理
一比一原版加利福尼亚大学尔湾分校毕业证成绩单如何办理一比一原版加利福尼亚大学尔湾分校毕业证成绩单如何办理
一比一原版加利福尼亚大学尔湾分校毕业证成绩单如何办理
pyhepag
 
一比一原版纽卡斯尔大学毕业证成绩单如何办理
一比一原版纽卡斯尔大学毕业证成绩单如何办理一比一原版纽卡斯尔大学毕业证成绩单如何办理
一比一原版纽卡斯尔大学毕业证成绩单如何办理
cyebo
 

Recently uploaded (20)

Exploratory Data Analysis - Dilip S.pptx
Exploratory Data Analysis - Dilip S.pptxExploratory Data Analysis - Dilip S.pptx
Exploratory Data Analysis - Dilip S.pptx
 
Atlantic Grupa Case Study (Mintec Data AI)
Atlantic Grupa Case Study (Mintec Data AI)Atlantic Grupa Case Study (Mintec Data AI)
Atlantic Grupa Case Study (Mintec Data AI)
 
一比一原版麦考瑞大学毕业证成绩单如何办理
一比一原版麦考瑞大学毕业证成绩单如何办理一比一原版麦考瑞大学毕业证成绩单如何办理
一比一原版麦考瑞大学毕业证成绩单如何办理
 
How I opened a fake bank account and didn't go to prison
How I opened a fake bank account and didn't go to prisonHow I opened a fake bank account and didn't go to prison
How I opened a fake bank account and didn't go to prison
 
NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...
NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...
NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...
 
一比一原版西悉尼大学毕业证成绩单如何办理
一比一原版西悉尼大学毕业证成绩单如何办理一比一原版西悉尼大学毕业证成绩单如何办理
一比一原版西悉尼大学毕业证成绩单如何办理
 
Fuzzy Sets decision making under information of uncertainty
Fuzzy Sets decision making under information of uncertaintyFuzzy Sets decision making under information of uncertainty
Fuzzy Sets decision making under information of uncertainty
 
basics of data science with application areas.pdf
basics of data science with application areas.pdfbasics of data science with application areas.pdf
basics of data science with application areas.pdf
 
AI Imagen for data-storytelling Infographics.pdf
AI Imagen for data-storytelling Infographics.pdfAI Imagen for data-storytelling Infographics.pdf
AI Imagen for data-storytelling Infographics.pdf
 
一比一原版阿德莱德大学毕业证成绩单如何办理
一比一原版阿德莱德大学毕业证成绩单如何办理一比一原版阿德莱德大学毕业证成绩单如何办理
一比一原版阿德莱德大学毕业证成绩单如何办理
 
社内勉強会資料  Mamba - A new era or ephemeral
社内勉強会資料   Mamba - A new era or ephemeral社内勉強会資料   Mamba - A new era or ephemeral
社内勉強会資料  Mamba - A new era or ephemeral
 
Easy and simple project file on mp online
Easy and simple project file on mp onlineEasy and simple project file on mp online
Easy and simple project file on mp online
 
Formulas dax para power bI de microsoft.pdf
Formulas dax para power bI de microsoft.pdfFormulas dax para power bI de microsoft.pdf
Formulas dax para power bI de microsoft.pdf
 
Data Visualization Exploring and Explaining with Data 1st Edition by Camm sol...
Data Visualization Exploring and Explaining with Data 1st Edition by Camm sol...Data Visualization Exploring and Explaining with Data 1st Edition by Camm sol...
Data Visualization Exploring and Explaining with Data 1st Edition by Camm sol...
 
2024 Q1 Tableau User Group Leader Quarterly Call
2024 Q1 Tableau User Group Leader Quarterly Call2024 Q1 Tableau User Group Leader Quarterly Call
2024 Q1 Tableau User Group Leader Quarterly Call
 
2024 Q2 Orange County (CA) Tableau User Group Meeting
2024 Q2 Orange County (CA) Tableau User Group Meeting2024 Q2 Orange County (CA) Tableau User Group Meeting
2024 Q2 Orange County (CA) Tableau User Group Meeting
 
Artificial_General_Intelligence__storm_gen_article.pdf
Artificial_General_Intelligence__storm_gen_article.pdfArtificial_General_Intelligence__storm_gen_article.pdf
Artificial_General_Intelligence__storm_gen_article.pdf
 
一比一原版加利福尼亚大学尔湾分校毕业证成绩单如何办理
一比一原版加利福尼亚大学尔湾分校毕业证成绩单如何办理一比一原版加利福尼亚大学尔湾分校毕业证成绩单如何办理
一比一原版加利福尼亚大学尔湾分校毕业证成绩单如何办理
 
一比一原版纽卡斯尔大学毕业证成绩单如何办理
一比一原版纽卡斯尔大学毕业证成绩单如何办理一比一原版纽卡斯尔大学毕业证成绩单如何办理
一比一原版纽卡斯尔大学毕业证成绩单如何办理
 
The Significance of Transliteration Enhancing
The Significance of Transliteration EnhancingThe Significance of Transliteration Enhancing
The Significance of Transliteration Enhancing
 

The Magic of Probability (BIT)

  • 1. To the extent possible under law, Somik Raha has waived all copyright and related or neighboring rights to the slide deck “The Magic of Probability.” This work is published from: United States and India.
  • 2. The Magic of Probability Workshop by Dr. Somik Raha
  • 3. !"ಾನದ&' (ಾವ* +ೕಳ.ವ ಎ0ಾ' !ಷಯಗಳ., ಎ0ಾ' 4ೕ5ಾ6ನಗಳ. ಅ89:ತ<ಾ=>, ಏ@ಂದB ಅವ*ಗಳ. @ೕವಲ 4ೕ5ಾ6ನಗDಾ=>. ಏ(ಾಗ&E ಎಂಬುದ@H ಅವ* ಊ+ಗDಾ=> ಮತುK ಏ(ಾಗುತKE ಎಂದು 8ಮL 4MNಲ', ಏ@ಂದB 8ೕವ* ಸಂಪQಣ6 ಪSTೕಗಗಳನುU 5ಾVಲ'.
  • 4. ಆದXYಂದ, !"ಾ8ಗಳ. ಅನು5ಾನ ಮತುK ಅ89:ತZಯನುU ಎದುYಸಲು ಬಳಸ0ಾಗುತKE. ಎ0ಾ' >ೖ"ಾ8ಕ "ಾನವ* ಅ89:ತ<ಾ=E. ಅನು5ಾನ ಮತುK ಅ89:ತZTಂN=ನ ಈ ಅನುಭವವ* ಮುಖ`<ಾ=E. ಇದು +b:ನ 5ೌಲ`ವನುU +ೂಂNE ಮತುK !"ಾನವನುU eೕY !ಸKYfE ಎಂದು (ಾನು ನಂಬುZKೕg. hಂEಂದೂ ಪYಹYಸದ jಾವ*Eೕ ಸಮk`ಯನುU ಪYಹYಸಲು, 8ೕವ* ಅ"ಾತ@H lಾ=ಲು ZBಯmೕಕು ಎಂದು (ಾನು ನಂಬುZKೕg. 8ೕವ* ಅದನುU 8ಖರ<ಾ= +ೂಂNಲ'Nರುವ oಾಧ`ZಯನುU 8ೕವ* ಅನುಮ4ಸmೕಕು. ಇಲ'NದXB, 8ೕವ* ಈqಾಗrೕ 8ಮs ಮನಸtನುU +ೂಂNದXB, 8ೕವ* ಅದನುU ಪYಹYಸNರಬಹುದು.
  • 5. !"ಾ8 8ಮL ಉತKರ 4MNಲ' ಎಂದು +ೕMvಾಗ, ಅವನು ಅ"ಾ8. ಅದು +ೕL @ಲಸ 5ಾಡುತKE ಎಂಬುದರ ಕುYತು ತನL ಹಂಬಲ!E ಎಂದು ಅವನು 8ಮL +ೕMvಾಗ, ಅವನು ಅದರ ಬLx ಅ89:ತ(ಾ=ರುyಾKg. ಅದು +ೕL @ಲಸ 5ಾಡುತKE ಎಂದು ಅವನು ಖbತ<ಾ= +ೕMvಾಗ ಮತುK "ಇದು @ಲಸ 5ಾಡುವ 5ಾಗ6<ಾ=E, (ಾನು lಾz ಕಟು|ZKೕg" ಎಂದು ಅವನು 8ಮL +ೕMvಾಗ, ಅವನು ಇನೂU @ಲವ* ಅನು5ಾನಗಳ&'ರುyಾKg. ಮತುK ಪSಗ4ಯನುU oಾ}ಸಲು, ಈ ಅ"ಾನ ಮತುK ಈ ಅನು5ಾನವನುU (ಾವ* ಗುರು4ಸುವ*ದು ಅತು`ನUತ ~ಾSಮುಖ`Zjಾ=E. ನಮL ಸಂEೕಹ!ರುವ*ದYಂದ, +ೂಸ ಆrೂೕಚgಗMqಾ= +ೂಸ NಕುHಗಳ&' gೂೕಡುವ*ದನುU (ಾವ* ಪSoಾKÄಸುZKೕ>. !"ಾನದ mಳವÅLಯ ದರವ* 8ೕವ* @ೕವಲ ಅವrೂೕಕನಗಳನುU 5ಾಡುವ ದರವಲ' ಆದB, +ಚು: ಮುಖ`<ಾ=, 8ೕವ* ಪYೕÇಸಲು +ೂಸ !ಷಯಗಳನುU ರbಸುವ ದರ.
  • 6. 01. WHERE DOES PROBABILITY COME FROM?
  • 7. Poll Question: Where does probability come from?
  • 8. Let’s call a coin toss (ಾಣ` ÉಾÑ ಅನುU ಮುನೂtbkೂೕಣ
  • 9. Psst… Sojan, take a look. Prabha, What’s your probability of heads? Sojan, What’s your probability of heads? Sojan, What’s your probability of heads? Prabha, What’s your probability of heads? 50% 50% 100% 50% Let’s call a coin toss (ಾಣ` ÉಾÑ ಅನುU ಮುನೂtbkೂೕಣ
  • 10. How can two people have different probabilities for the same event? ಒಂEೕ ಈ>ಂÜL ಇಬáರು ವ`àKಗಳ. +ೕL !âನU ಸಂಭವ8ೕಯZಯನುU +ೂಂNರುyಾKB? •Dialog
  • 11. Probability =Your State of Information ಸಂಭವ%ೕಯ( = %ಮ* +ಾ-.ಯ /0.
  • 12. THERE IS NO OBJECTIVE PROBABILITY ವಸುK8ಷä ಸಂಭವ8ೕಯZಯಂತಹ jಾವ*Eೕ !ಷಯ!ಲ' If it was objective, it would be data, not probability!
 ಅದು ವಸುK8ಷä<ಾ=ದXB, ಅದು ãೕÉಾ, ಸಂಭವ8ೕಯZ ಅಲ'! Probability =Your State of Information ಸಂಭವ%ೕಯ( = %ಮ* +ಾ-.ಯ /0.
  • 13. THERE IS NO OBJECTIVE PROBABILITY ವಸುK8ಷä ಸಂಭವ8ೕಯZಯಂತಹ jಾವ*Eೕ !ಷಯ!ಲ' Inappropriate Phrases ಸೂಕ$ವಲ'ದ ನು+ಗಟು.ಗಳ0 The probability Appropriate Phrases ಸೂಕ$1ಾದ ನು+ಗಟು.ಗಳ0 My probability Your probability Prabha’s probability Sojan’s probability Our group’s probability
  • 14. You can only place a probability on clear distinctions 8ೕವ* ಸåಷ| ಪYಕಲågಗಳ çೕr 5ಾತS ಸಂಭವ8ೕಯZಯನುU The Clarity Test
 ಸåಷ|Z ಪYೕé Can a fact-based clairvoyant tell you how the distinction has resolved?
  • 15. What is your probability of rain in Bengaluru tomorrow? Let’s first define rain: At least 10 cm of water from the sky Let’s define tomorrow: From 12:01 AM to 11:59 PM Quick poll
  • 16. When should you place a 100% or 0% probability? 8ೕವ* jಾ<ಾಗ 100% ಅಥ<ಾ 0% ಸಂಭವ8ೕಯZಯನುU I did not die yesterday I will definitely die someday
  • 17. The Epistemology of Probability from a Decision Analysis Perspective 8êಾ6ರ !ë'ೕಷíಯ ದೃî|@ೂೕನNಂದ ಸಂಭವ8ೕಯZಯ "ಾನïಾಸñ
  • 18. Epistemology.
 "ಾನïಾಸñ The theory of knowledge, especially with regard to its methods, validity, and scope, and the distinction between justified belief and opinion
 "ಾನದ fvಾóಂತ, !ëೕಷ<ಾ= ಅದರ !êಾನಗಳ., fಂಧುತò ಮತುK <ಾ`ÄK ಮತುK ಸಮಥ68ೕಯ ನಂô@ ಮತುK ಅâ~ಾSಯದ ನಡು!ನ ವ`yಾ`ಸ@H ಸಂಬಂ}fದಂZ dictionary.com It is the branch of philosophy concerned with knowledge
 ಇದು "ಾನ@H ಸಂಬಂ}fದ ತತòïಾಸñದ ïಾöjಾ=E wikipedia.com
  • 19. A tale of friendship Rev Thomas Bayes
 Died: 1761 1763 An Essay towards solving a Problem in the Doctrine of Chances Read out by his friend Richard Price to the Royal Society Richard Price Worked out Conditional Probability and the Beta Distribution!
  • 20. Conditional Probability: Haemophilia Haeomophiliac Not 
 Haemophiliac Male Female Male Female Male Female Haemophiliac Not 
 Haemophiliac Haemophiliac Not
 Haemophiliac 161.57M 161.60M 99.98% 0.02% 30,000 161.6M 0.0016% 99.9984% 161.6M 166.7M 49.22% 50.78% 0.01% 49.21% 0.0008% 50.78% 0.01% 0.0008% 50.78% 49.21% 0.01% 99.99% 91.74% 8.26% 49.22% 50.78% Mistaking these two is called: “Associative Logic Error”
  • 21. Conditional Probability: Haemophilia Haeomophiliac Not 
 Haemophiliac Male Female Male Female Male Female Haemophiliac Not 
 Haemophiliac Haemophiliac Not
 Haemophiliac 99.98% 0.02% 0.0016% 99.9984% 161.6M 166.7M 49.22% 50.78% 0.01% 49.21% 0.0008% 50.78% 0.01% 0.0008% 50.78% 49.21% 0.01% 99.99% 91.74% 8.26% 49.22% 50.78% Your turn: https://tinyurl.com/haemophilia-inference Prior Likelihood Pre-Posterior Posterior 0.01% 49.21% 0.0008% 50.78%
  • 22. Conditional Probability Quiz 2 If someone has lung cancer, what is your probability for this person being a smoker? 
 
 If someone smokes, what is your probability for this person getting lung cancer? Your turn: https://tinyurl.com/smoker-lungcancer
  • 23. 0.15% 0.02% 85.86% 13.98% Conditional Probability: Lung Cancer Lung Cancer No Lung Cancer Smoker Non-Smoker Smoker Non-Smoker Smoker Not Smoker Lung Cancer No Lung Cancer Lung Cancer No Lung Cancer 0.0004% 99.9996% 26.7% 73.3% 0.15% 13.98% 0.02% 85.86% 6.9 100,000 0.0069% 99.931% 95.2% 4.8% 26.7% 73.3% 99.98% 0.02% Prior Likelihood Pre-Posterior Posterior Mistaking these two is called: “Associative Logic Error”
  • 24. Conditional Probability Quiz 3 If someone has Covid, what is your probability for this person testing positive for antibodies? 
 
 If someone tests positive for Covid antibodies, what is your probability for this person having Covid? Your turn: https://tinyurl.com/covid-inference
  • 25. 4.5% 0.02% 85.86% 13.98% Conditional Probability: Covid Antibody Test Covid +ve Covid -ve Antibody 
 detected Antibody 
 not detected Antibody 
 detected Antibody
 not detected Antibody 
 detected Antibody not 
 detected Covid +ve Covid -ve Covid +ve Covid -ve 0.55% 99.45% 9.25% 90.75% 4.5% 13.98% 0.02% 85.86% 5% 95% 90% 10% 5% 95% 51.35% 48.65% Prior Likelihood Pre-Posterior Posterior Mistaking these two is called: “Associative Logic Error”
  • 26. Let’s look at Shruti Lived in New York City at the height of the pandemic. She thought she had Covid and took the antibody test several months later. She just got a negative antibody test result Her doctor says: “There is no chance you got Covid.” 
 Why is he saying that?
  • 27. Conditional Probability: Covid Antibody Test Covid +ve Covid -ve Antibody 
 detected Antibody 
 not detected Antibody 
 detected Antibody
 not detected Antibody 
 detected Antibody not 
 detected Covid +ve Covid -ve Covid +ve Covid -ve 0.55% 99.45% 9.25% 90.75% 5% 95% 90% 10% 5% 95% 51.35% 48.65% Prior Likelihood Pre-Posterior Posterior
  • 28. Let’s look at Shruti Let’s add more context Shruti presents with all the serious symptoms (according to WHO ) of COVID: Difficulty breathing or shortness of breath Chest pain or pressure Loss of speech or movement She just got a negative antibody test result What prior probability should the doctor have placed? What is the conditional probability of her having Covid with this prior?
  • 29. Conditional Probability: Covid Antibody Test Covid +ve Covid -ve Antibody 
 detected Antibody 
 not detected Antibody 
 detected Antibody
 not detected Antibody 
 detected Antibody not 
 detected Covid +ve Covid -ve Covid +ve Covid -ve 24% 76% 69% 31% 75% 25% 90% 10% 5% 95% 2% 98% Prior Likelihood Pre-Posterior Posterior
  • 30. Can you come up with your own examples Where else can this apply? Judicial Sentencing Decaying as Society
  • 31. What about Machine Learning?
  • 32. Let’s go back to the Rain example
  • 33. What is your probability of rain in Bengaluru tomorrow?
  • 34. What is your probability of rain in Bengaluru tomorrow? A smart engineer has built a rain detector using ML on weather models What would you like to know from the evaluation results of the model in a lab setting?
  • 35. ML Example: Rain Detector Rain No Rain Detector: “RAIN” Detector: “No RAIN” Detector: “RAIN” Detector: “No RAIN” Detector: “RAIN” Detector: “No RAIN” Rain No Rain Rain No Rain 24% 76% 69% 31% 75% 25% 90% 10% 5% 95% 2% 98% Prior Likelihood Pre-Posterior Posterior What metrics do ML classification model designers report? My probability of rain tomorrow
  • 36. How can we combine my P(Rain) to evaluate model? Rain No Rain Detector: “RAIN” Detector: “No RAIN” Detector: “RAIN” Detector: “No RAIN” Detector: “RAIN” Detector: “No RAIN” Rain No Rain Rain No Rain 24% 76% 69% 31% 75% 25% 90% 10% 5% 95% 2% 98% Prior Likelihood Pre-Posterior Posterior Can you easily do inference with these metrics? If yes, why? If not, why not? RECALL PRECISION My probability of rain tomorrow
  • 37. TPR & FPR allow human evaluation of model Rain No Rain Detector: “RAIN” Detector: “No RAIN” Detector: “RAIN” Detector: “No RAIN” Detector: “RAIN” Detector: “No RAIN” Rain No Rain Rain No Rain 24% 76% 69% 31% 75% 25% 90% 10% 5% 95% 2% 98% Prior Likelihood Pre-Posterior Posterior Instead, ask for True Positive Rate (Recall / Sensitivity) and 
 False Positive Rate (1-Specificity) TPR
 SENSITIVITY
 RECALL FPR
 1-SPECIFICITY My probability of rain tomorrow
  • 38. Poll Question: If you saw seven heads in a row in a coin toss, what probability would you place on the next coin landing heads?
  • 40. Continuous Probability Quick Review 8ರಂತರ ಸಂಭವ8ೕಯZ ತòYತ !ಮë6
  • 41. Roll two dice and bet on the sum of the roll
 ಎರಡು vಾಳಗಳನುU ಉರುMf ಮತುK Bೂೕõನ úತKದ çೕr lಾz ಕù|@ೂMû Let’s play a game ಒಂದು ಆಟ ಆãೂೕಣ Poll: If you could bet on only one number for the sum of two die rolls (2-12), what would you bet on?
  • 42. Roll two dice and bet on the sum of the roll
 ಎರಡು vಾಳಗಳನುU ಉರುMf ಮತುK Bೂೕõನ úತKದ çೕr lಾz ಕù|@ೂMû Let’s play a game ಒಂದು ಆಟ ಆãೂೕಣ Poll: If you could bet on three numbers for the sum of two die rolls (2-12), what would you bet on?
  • 43. Roll two dice and bet on the sum of the roll
 ಎರಡು vಾಳಗಳನುU ಉರುMf ಮತುK Bೂೕõನ úತKದ çೕr lಾz ಕù|@ೂMû Let’s play a game ಒಂದು ಆಟ ಆãೂೕಣ Let’s try it: Open Workbook
  • 44. Discrete vs Continuous Measures Discrete: Sum of two die rolls
 2,3,4,5,6,7,8,9,10,11,12 Continuous: Revenue in Crores
 Test Positivity Rate (0%-100%) Probability Mass Function (PMF) Probability 0% 5% 9% 14% 18% 2 3 4 5 6 7 8 9 10 11 12 Cumulative Mass Function Probability 0% 25% 50% 75% 100% 2 3 4 5 6 7 8 9 10 11 12 ?
  • 45. Poll Question: What is the following curve?
  • 46. Poll Question: How would you read off the Probability of making revenue less than X crores from this curve?
  • 47. Poll Question: What is the following curve?
  • 48. Poll Question: How would you read off the Probability of making revenue less than X crores from this curve?
  • 49. Cumulative Distribution Function (CDF) Probability 0% 25% 50% 75% 100% Test Positivity Rate 0% 25% 50% 75% 100% CMF and PMF become CDF and PDF when dealing with “continuous variables” Low (10%) Med (50%) High (90%) Low
 25% Med
 35% High
 60% Probability Distribution Function (PDF) 0 1.25 2.5 3.75 5 Test Positivity Rate 0% 25% 50% 75% 100% Low
 25% Med
 35% High
 60% Probability:
 Area under curve
  • 50. Let’s go back to Bayes
  • 51. It’s conjugate is also a Beta! Bayes also worked out the Beta Distribution Binomial trial Exactly two (“bi”) outcomes, “success or failure” Each trial has same chance of success Binomial Distribution 0 0.045 0.09 0.135 0.18 # of Heads 0 5 10 15 20 Beta Distribution Ref: Wikipedia
  • 52. Beta(1,1) The Uniform Prior 0 0.25 0.5 0.75 1 0 0.25 0.5 0.75 1 Bayes: Suggested “with a great deal of doubt” as the prior probability
 distribution to express ignorance about the correct prior distribution. Why is this statement problematic? How would you edit it? Hint: Remember the clairvoyant?
  • 53. Worked out Probability Theory “Probability as an instrument for repairing defects in knowledge” Pierre Simon Laplace 1771 Mémoire sur la probabilité des causes par les événements Memoir on the Probability of the Causes of Events Independently worked out what Bayes had worked out, and 
 then some.
  • 54. What is the probability of the sun rising tomorrow? 0 0.25 0.5 0.75 1 Parameter “p” 0 0.25 0.5 0.75 1 Laplace had no hesitation in using the Uniform prior to express total ignorance
  • 55. What is the probability of the sun rising tomorrow? Laplace’s succession rule, illustrated with an unfortunate example Prior Knowledge:
 both success and failure are possible 
 Assumes
 we observed one success and 
 one failure for sure before we started
 
 Not correct if s=0, or s=n “But this number [the probability of the sun coming up tomorrow] is far greater for him who, seeing in the totality of phenomena the principle regulating the days and seasons, realizes that nothing at present moment can arrest the course of it.”
  • 56. Probability theory as an extension of logic Edwin Thompson Jaynes 1950s Probability Theory: The Logic of Science The “Robot”, the ancestor of the “Clairvoyant” “In order to direct attention to constructive things and away from controversial irrelevancies, we shall invent an imaginary being. Its brain is to be designed by us, so that it reasons according to certain definite rules. These rules will be deduced from simple desiderata which, it appears to us, would be desirable in human brains; i.e. we think that a rational person, on discovering that they were violating one of these desiderata, would wish to revise their thinking.” Excerpt From: E. T. Jaynes & G. Larry Bretthorst. “Probability Theory.” Apple Books. https://books.apple.com/us/book/ probability-theory/id811951223
  • 57. Probability theory as an extension of logic Edwin Thompson Jaynes 1950s Probability Theory: The Logic of Science The “Robot”, the ancestor of the “Clairvoyant” “Our robot is going to reason about propositions. As already indicated above, we shall denote various propositions by italicized capital letters, {A, B, C, etc.}, and for the time being we must require that any proposition used must have, to the robot, an unambiguous meaning and must be of the simple, definite logical type that must be either true or false.” Excerpt From: E. T. Jaynes & G. Larry Bretthorst. “Probability Theory.” Apple Books. https://books.apple.com/us/book/ probability-theory/id811951223
  • 58. Probability theory as an extension of logic Edwin Thompson Jaynes 1950s Probability Theory: The Logic of Science Let me make what, I fear, will seem to some a radical, shocking suggestion: The merits of any statistical method are not determined by the ideology which led to it. For, many different, violently opposed ideologies may all lead to the same final “working equations” for dealing with real problems. Apparently, this phenomenon is something new in statistics; but it is so commonplace in physics that we have long since learned how to live with it. Today, when a physicist says, “Theory A is better than theory B,” he does not have in mind any ideological considerations; he means simply, “There is at least one specific application where theory A leads to a better result than theory B.” I suggest that we apply the same criterion in statistics: The merits of any statistical method are determined by the results it gives when applied to specific problems. The Court of Last Resort in statistics is simply our commonsense judgment of those results. Foundations of Probability Theory, Statistical Inference, and Statistical Theories of Science
  • 59. Decision Analytic lens Ronald A. Howard 1966 Coined the term “Decision Analysis” Cofounder of the field Brought the notion of “decisions” First published version of “Encoding of priors” in Decision Analysis: Applied Decision Theory Prior development as “psychoanalytic process” Watch interview
  • 60. Conditional Probability: Covid Antibody Test Covid +ve Covid -ve Antibody 
 detected Antibody 
 not detected Antibody 
 detected Antibody
 not detected Antibody 
 detected Antibody not 
 detected Covid +ve Covid -ve Covid +ve Covid -ve 0.55% 99.45% 9.25% 90.75% 5% 95% 90% 10% 5% 95% 51.35% 48.65% Prior Likelihood Pre-Posterior Posterior What about Shruti? She presents with all the serious symptoms (according to WHO ) of COVID: Difficulty breathing or shortness of breath Chest pain or pressure Loss of speech or movement
  • 61. Conditional Probability: Covid Antibody Test Covid +ve Covid -ve Antibody 
 detected Antibody 
 not detected Antibody 
 detected Antibody
 not detected Antibody 
 detected Antibody not 
 detected Covid +ve Covid -ve Covid +ve Covid -ve 24% 76% 69% 31% 75% 25% 90% 10% 5% 95% 2% 98% Prior Likelihood Pre-Posterior Posterior
  • 62. Distinctions that pass clarity test 0 0.25 0.5 0.75 1 Long-run Fraction of Heads 0 0.25 0.5 0.75 1 Meaningless to put probability on unclear distinctions We know nothing at all about the distinction -AND- Believe that every value is equally likely
  • 63. Updating the beta is a simple addition operation 0 0.75 1.5 2.25 3 0 0.25 0.5 0.75 1 Long-run fraction of heads 0 0.04 0.08 0.12 0.16 0.2 0.24 0.28 0.32 0.36 0.4 0.44 0.48 0.52 0.56 0.6 0.64 0.68 0.72 0.76 0.8 0.84 0.88 0.92 0.96 1 Add the number of tosses to update N and the number of successes to update S PRIOR
 S = 1, N = 2
 alpha = 1, beta = 2-1= 1 0 HEADS in 2 TOSSES
 S = 1+0 = 1, N = 2+2 = 4
 alpha = 1, beta = 4-1= 3 2 HEADS in 2 TOSSES
 S = 1+2 = 3, N = 2+2 =4
 alpha = 3, beta = 4-3= 1 1 HEADS in 2 TOSSES
 S = 1+1 = 2, N = 2+2 =4
 alpha = 2, beta = 4-2= 2
  • 64. Decision Analytic AB tests 0% 25% 50% 75% 100% Long-run fraction of heads 0 0.15 0.3 0.45 0.6 0.75 0.9 0 0.25 0.5 0.75 1 Long-run fraction of heads 0 0.15 0.3 0.45 0.6 0.75 0.9 Before Experiment PRIOR Treatment Control POSTERIOR After Experiment 0 0.75 1.5 2.25 3 Long-run fraction of heads 0 0.15 0.3 0.45 0.6 0.75 0.9 0 0.75 1.5 2.25 3 Long-run fraction of heads 0 0.15 0.3 0.45 0.6 0.75 0.9 Treatment Control $ Value of Treatment $ Value of Control Compare Pass through Decision Model
  • 65. The Metalog Distribution Tom Keelin 2016 Published “The Metalog Distributions” A significant advance in statistics A distribution to match data/assessments Prior development and updating 
 a fully “psychoanalytic” process Entirely compatible with data, 
 huge implications for ML
  • 67. Beta Distribution Play with the Beta.DIST Excel function to create: 1. Uniform Prior 2. Updating Beta Distributions Decision Analytic AB Testing Read Article
 Try spreadsheet and Web model Metalog Distributions Watch Video 1, Video 2
 
 Download Metalog Workboooks in Excel Encode your beliefs with Metalog Distributions