what are the chances…

55
Adhir Shroff, MD, MPH What are the chances… Conditional Probability & Introduction to Bayes’ Theorem

Upload: renee-barlow

Post on 02-Jan-2016

31 views

Category:

Documents


0 download

DESCRIPTION

What are the chances…. Conditional Probability & Introduction to Bayes’ Theorem. Agenda. Introduction Definitions and equations Odds and probability Likelihood ratios Bayes’ Theorem. Examples:. If you flipped a coin 10 times, what is the probability that the first 5 come up heads? - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: What are the chances…

Adhir Shroff, MD, MPH

What are the chances…

Conditional Probability&

Introduction to Bayes’ Theorem

Page 2: What are the chances…

Clinical Decision Making: Conditional Probability and Bayes’ Theorem

2

Agenda

Introduction Definitions and equations Odds and probability Likelihood ratios Bayes’ Theorem

Page 3: What are the chances…

Clinical Decision Making: Conditional Probability and Bayes’ Theorem

3

Examples:

If you flipped a coin 10 times, what is the probability that the first 5 come up heads?

What is the probability that the 6th toss comes up heads?

Given a positive dobutamine stress echo, what is the probability that the patient does NOT have CAD?

Page 4: What are the chances…

Clinical Decision Making: Conditional Probability and Bayes’ Theorem

4

The probability of an event is the proportion of times the event is expected to occur in repeated experiments– The probability of an event, say event A, is denoted

P(A).– All probabilities are between 0 and 1.

(i.e. 0 < P(A) < 1)– The sum of the probabilities of all possible outcomes

must be 1.

Page 5: What are the chances…

Clinical Decision Making: Conditional Probability and Bayes’ Theorem

5

Assigning Probabilities

Guess based on prior knowledge alone Guess based on knowledge of probability

distribution (to be discussed later) Assume equally likely outcomes Use relative frequencies

Page 6: What are the chances…

Clinical Decision Making: Conditional Probability and Bayes’ Theorem

6

Conditional Probability

The probability of event A occurring, given that event B has occurred, is called the conditional probability of event A given event B, denoted P(A|B)

Example Among women with a (+) mammogram, how

often does a patient have breast cancer– P(breast CA +|+ mammogram)

Page 7: What are the chances…

Clinical Decision Making: Conditional Probability and Bayes’ Theorem

7

Mutually Exclusive Events

Two events are mutually exclusive if their intersection is empty.

Two events, A and B, are mutually exclusive if and only if P(AB) = 0– a child is a red head and a brunette.

P(A U B) = P(A) + P(B)

“And”

Page 8: What are the chances…

Clinical Decision Making: Conditional Probability and Bayes’ Theorem

8

Odds

The concept of "odds" is familiar from gambling For instance, one might say the odds of a

particular horse winning a race are "3 to 1"; – This means the probability of the horse winning is 3

times the probability of not winning.– Odds of 1 to 1 means a 50% chance of something

happening (as in tossing a coin and getting a head), and odds of 99 to 1 means it will happen 99 times out of 100 (as in bad weather on a public holiday).

Page 9: What are the chances…

Clinical Decision Making: Conditional Probability and Bayes’ Theorem

9

Odds and Probability

Both are ways to express chance or likelihood of an event

Example:– What is the chance that a coin flip will result in “heads”?

– Probability: expected number of “heads” 1

total number of options2

– Odds: expected number of “heads” 1

expected number of non “heads” 1

Page 10: What are the chances…

Clinical Decision Making: Conditional Probability and Bayes’ Theorem

10

Odds and Probability

Example:– What is the chance that you will roll a 7 at the craps

table and “crap out”? Probability: number of ways to roll a 7 6

16.7%total number of options

36 Odds: number of ways to roll a 7 6

20%number of ways to not roll a 7

30

Page 11: What are the chances…

Clinical Decision Making: Conditional Probability and Bayes’ Theorem

11

Odds and Probability

Odds = probability / (1-probability)

Probability = odds / (1+odds)

Use the craps example: if the probability of rolling a 7 is 16.77777%, what are the odds of rolling a seven

Page 12: What are the chances…

Clinical Decision Making: Conditional Probability and Bayes’ Theorem

12

Likelihood Ratio

LR+ = sensitivity / (1-specificity)

= (a/(a+c)) / (b/(b+d))

LR- = (1-sensitivity) / specificity

= (c/(a+c)) / (d/(b+d))

Likelihood of a given test result in a patient with the target disorder compared to the likelihood of the same result in a patient without that disorder

a b

c d

+ -

Gold Standard

Tes

t +

-

a +c b + d

Page 13: What are the chances…

Clinical Decision Making: Conditional Probability and Bayes’ Theorem

13

Bayes’ Theorem: Definition

Result in probability theory

Relates the conditional and marginal probability distributions of random variables

In some interpretations of probability, tells how to update or revise beliefs in light of new evidence

http://en.wikipedia.org/wiki/Bayes'_theorem

Thomas Bayes (1702-1761)

British mathematician and minister

Page 14: What are the chances…

Clinical Decision Making: Conditional Probability and Bayes’ Theorem

14

Bayes’ Theorem: Definition

Bayes’ Rule underlies reasoning systems in artificial intelligence, decision analysis, and everyday medical decision making

we often know the probabilities on the right hand side of Bayes’ Rule and wish to estimate the probability on the left.

)(

)()|()|(

AP

BPBAPABP

Page 15: What are the chances…

Clinical Decision Making: Conditional Probability and Bayes’ Theorem

15

Example from Wikipedia…

From which bowl is the cookie? To illustrate, suppose there are two full bowls of

cookies.– Bowl #1 has 10 chocolate chip and 30 plain cookies,– Bowl #2 has 20 of each

Fred picks a bowl at random, and then picks a cookie at random.– (Assume there is no reason to believe Fred treats one

bowl differently from another, likewise for the cookies) The cookie turns out to be a plain one…

Page 16: What are the chances…

Clinical Decision Making: Conditional Probability and Bayes’ Theorem

16

Example from Wikipedia…

How probable is it that Fred picked it out of bowl #1?

Intuitively, it seems clear that the answer should be more than a half, since there are more plain cookies in bowl #1.

The precise answer is given by Bayes' theorem.

Page 17: What are the chances…

Clinical Decision Making: Conditional Probability and Bayes’ Theorem

17

Example from Wikipedia…

Let B1 correspond to Bowl #1 and B2 to bowl #2 Since the bowls are identical to Fred, P(B1) =

P(B2) and there is a 50:50 shot of picking either bowl so the P(B1)=P(B2)=0.5

P(C)=probability of a plain cookie

P(B1│C) =P(B1) * P(C│B1)

P(B1) * P(C│B1) + P(B2) * P(C│B2)

=0.5 * 0.75

0.5 * 0.75 + 0.5 * 0.5 = 0.6

Page 18: What are the chances…

Clinical Decision Making: Conditional Probability and Bayes’ Theorem

18

Bayesian AnalysisBayesian Analysis

x =BackgroundInformation

NewInformation

UpdatedInformation

PriorProbability

EvidencePosterior

Probability

Page 19: What are the chances…

Clinical Decision Making: Conditional Probability and Bayes’ Theorem

19

Bayesian AnalysisBayesian Analysis

Borrow money Credit historyBuy a stock Market trendsBet a horse Past performanceSentence a criminal Previous convictionsTreat a patient Past medical historyInterpret a test Pre-test probability

Activity BackgroundActivity Background

PriorPrior

Clinical trial analysis NONE!

Borrow money Credit historyBuy a stock Market trendsBet a horse Past performanceSentence a criminal Previous convictionsTreat a patient Past medical historyInterpret a test Pre-test probability

Activity BackgroundActivity Background

Page 20: What are the chances…

Clinical Decision Making: Conditional Probability and Bayes’ Theorem

20

Prior Information in Diagnostic TestingPrior Information in Diagnostic TestingBayesian AnalysisBayesian Analysis

0.0

0.2

0.4

0.6

0.8

1.0

35 45 55 65

Age

Pre

-Tes

t P

rob

abili

ty

WomenWomen

No Pain

Nonanginal

Typical Angina

Atypical Angina

PriorPrior

N Engl J Med 1979;300:1350

Page 21: What are the chances…

Clinical Decision Making: Conditional Probability and Bayes’ Theorem

21

Bayesian AnalysisBayesian Analysis

PriorPrior

Prior Odds0.1 1 10

N Engl J Med 1979;300:1350

0.0

0.2

0.4

0.6

0.8

1.0

35 45 55 65

Age

Pre

-Tes

t P

rob

abili

ty

0.17Odds = = 0.2 1 – 0.17

0.2

WomenWomen

0.17

Atypical Angina

Page 22: What are the chances…

Clinical Decision Making: Conditional Probability and Bayes’ Theorem

22

Bayesian AnalysisBayesian Analysis

N Engl J Med 1979;300:1350

PriorPrior

Prior Odds0.1 1 10

0.8

0.44Odds = = 0.8 1 – 0.44

0.0

0.2

0.4

0.6

0.8

1.0

35 45 55 65

Age

Pre

-Tes

t P

rob

abili

ty

MenMen

0.44 Atypical Angina

Page 23: What are the chances…

Clinical Decision Making: Conditional Probability and Bayes’ Theorem

23

Quantifying the EvidenceQuantifying the EvidenceBayesian AnalysisBayesian Analysis

EvidenceEvidence0.8

Prior Odds0.1 1 10

a b

c d

Disease + -

T

est +

-x

LR+ = sensitivity / (1-specificity) = (a/(a+c)) / (b/(b+d))

Page 24: What are the chances…

Clinical Decision Making: Conditional Probability and Bayes’ Theorem

24

Quantifying the EvidenceQuantifying the EvidenceBayesian AnalysisBayesian Analysis

4.00.8

80 40

20 160

Disease + -

T

est +

-x

100 200Likelihood Ratio0.1 1 10

Prior Odds0.1 1 10

LR+ = sensitivity / (1-specificity) = (a/(a+c)) / (b/(b+d))= 80/100 / 40/200= 4.0

Page 25: What are the chances…

Clinical Decision Making: Conditional Probability and Bayes’ Theorem

25

Computing the Post-test OddsComputing the Post-test OddsBayesian AnalysisBayesian Analysis

4.00.8

Prior Odds0.1 1 10

x =

Posterior Odds0.1 1 10

Likelihood Ratio0.1 1 10

3.2

45 year old manwith atypical angina

CAD probability = 0.8/1.8 = 44%

45 year old manwith atypical angina

and 2.0 mm ST depression

CAD probability = 3.2/4.2 = 76%

2.0 mm horizontalST depression

Page 26: What are the chances…

Clinical Decision Making: Conditional Probability and Bayes’ Theorem

26

Computing the Post-test OddsComputing the Post-test OddsBayesian AnalysisBayesian Analysis

0.84.00.2 x =

Likelihood Ratio Posterior Odds0.1 1 100.1 1 10

45 year old womanwith atypical angina

CAD probability = 0.2/1.2 = 17%

2.0 mm horizontalST depression

45 year old womanwith atypical angina

and 2.0 mm ST depression

CAD probability = 0.8/1.8 = 44%

Prior Odds0.1 1 10

Page 27: What are the chances…

Clinical Decision Making: Conditional Probability and Bayes’ Theorem

27

ReviewBayesian AnalysisBayesian Analysis

PosteriorPosteriorOdds RatioOdds Ratio

EvidentialEvidentialOdds RatioOdds Ratio

PriorPriorOdds RatioOdds Ratio

x =

Page 28: What are the chances…

Clinical Decision Making: Conditional Probability and Bayes’ Theorem

28

A Sample Problem

Here's a story problem about a situation that doctors often encounter:

– 1% of women at age forty who participate in routine screening have breast cancer.

– 80% of women with breast cancer will get positive mammographies.

– 9.6% of women without breast cancer will also get positive mammographies. 

A woman in this age group had a positive mammography in a routine screening. 

What is the probability that she actually has breast cancer?

Bayesian AnalysisBayesian Analysis

http://www.sysopmind.com/bayes

Page 29: What are the chances…

Clinical Decision Making: Conditional Probability and Bayes’ Theorem

29

Bayesian AnalysisBayesian Analysis

x =BackgroundInformation

NewInformation

UpdatedInformation

Prior Evidence Posterior

Page 30: What are the chances…

Clinical Decision Making: Conditional Probability and Bayes’ Theorem

30

Pre-test probability = .01

Pre-test odds:– Odds = probability / (1-probability)

– = .01/(1-.01) = 0.01

Bayesian AnalysisBayesian Analysis

Page 31: What are the chances…

Clinical Decision Making: Conditional Probability and Bayes’ Theorem

31

Bayesian AnalysisBayesian Analysis

x =BackgroundInformation

NewInformation

UpdatedInformation

Prior Odds Evidence Posterior

0.01 x

Page 32: What are the chances…

Clinical Decision Making: Conditional Probability and Bayes’ Theorem

32

Evidence = Likelihood Ratio

LR+ = sensitivity / (1-specificity)

= (a/(a+c)) / (b/(b+d))

a b

c d

+ -

Gold Standard

Tes

t +

-

a +c b + d

Page 33: What are the chances…

Clinical Decision Making: Conditional Probability and Bayes’ Theorem

33

A Sample Problem

Here's a story problem about a situation that doctors often encounter:

– 1% of women at age forty who participate in routine screening have breast cancer.

– 80% of women with breast cancer will get positive mammographies.

– 9.6% of women without breast cancer will also get positive mammographies. 

Bayesian AnalysisBayesian Analysis

http://www.sysopmind.com/bayes

+ -

Gold Standard

Tes

t +

-

80

100

20

9.6

90.4

100

Page 34: What are the chances…

Clinical Decision Making: Conditional Probability and Bayes’ Theorem

34

Evidence = Likelihood Ratio

LR+ = sensitivity / (1-specificity)

= (a/(a+c)) / (b/(b+d))

80 (a) 9.6 (b)

20 (c) 90.4 (d)

+ -

Gold Standard

Tes

t +

-

100(a +c)

100(b + d)

= (80/100) / (9.6/100)

= 8.33

Page 35: What are the chances…

Clinical Decision Making: Conditional Probability and Bayes’ Theorem

35

Bayesian AnalysisBayesian Analysis

x =BackgroundInformation

NewInformation

UpdatedInformation

Prior Odds Evidence Posterior Odds

0.01 x 8.33

Page 36: What are the chances…

Clinical Decision Making: Conditional Probability and Bayes’ Theorem

36

Bayesian AnalysisBayesian Analysis

x =BackgroundInformation

NewInformation

UpdatedInformation

Prior Odds Evidence Posterior Odds

0.01 x 8.33 = 0.0833

Page 37: What are the chances…

Clinical Decision Making: Conditional Probability and Bayes’ Theorem

37

Given the low pre-test probability, even a + test did not dramatically effect the post-test probability

Bayesian AnalysisBayesian Analysis

x =BackgroundInformation

NewInformation

UpdatedInformation

Prior Odds Evidence PosteriorOdds

0.01 x 8.33 = 0.08337.7% probability

Page 38: What are the chances…

Clinical Decision Making: Conditional Probability and Bayes’ Theorem

38

Page 39: What are the chances…

Clinical Decision Making: Conditional Probability and Bayes’ Theorem

39

7.7%

Page 40: What are the chances…

Clinical Decision Making: Conditional Probability and Bayes’ Theorem

40

Conclusions

Probability and odds are different ways to express chance

Conditional probability allows us to calculate the probability of an event given another event has or has not occurred (allows us to incorporate more information)

Bayes’ theorem incorporates results of trials/research to update our baseline assumptions

Page 41: What are the chances…

Clinical Decision Making: Conditional Probability and Bayes’ Theorem

41

Bayesian AnalysisBayesian Analysis

PriorPriorRisk RatioRisk Ratio

EvidentialEvidentialOdds RatioOdds Ratio

PosteriorPosteriorOdds RatioOdds Ratio

a b

c d

Events + -

Tre

atm

ent

A

B

x =

Odds Ratio = ad/bc

Page 42: What are the chances…

Adhir Shroff, MD, MPH

Quantifying the PriorQuantifying the Prior

Page 43: What are the chances…

Adhir Shroff, MD, MPH

PriorPriorRisk RatioRisk Ratio

EvidentialEvidentialOdds RatioOdds Ratio

PosteriorPosteriorOdds RatioOdds Ratio

Quantifying the PriorQuantifying the Prior

174 1925

198 1865

Events + -

Tre

atm

ent

A

B

x =

N Engl J Med 2004;350:1495

PROVE-IT

Odds Ratio = 0.85

Page 44: What are the chances…

Adhir Shroff, MD, MPH

EvidentialEvidentialOdds RatioOdds Ratio

PosteriorPosteriorOdds RatioOdds Ratio

Quantifying the PriorQuantifying the Prior

x =

PriorOdds Ratio

0.85

0.8 1 1.25

Page 45: What are the chances…

Adhir Shroff, MD, MPH

PosteriorPosteriorOdds RatioOdds Ratio

Quantifying the EvidenceQuantifying the Evidence

Events + -

Tre

atm

entA

B

=

309 1956

343 1889

PriorOdds Ratio

0.85

A to Z

JAMA 2004;292:1307

Odds Ratio = 0.87

0.8 1 1.25

Page 46: What are the chances…

Adhir Shroff, MD, MPH

PosteriorPosteriorOdds RatioOdds Ratio

x =

PriorOdds Ratio

EvidentialOdds Ratio

Quantifying the EvidenceQuantifying the Evidence

0.85 0.87

0.8 1 1.25 0.8 1 1.25

Page 47: What are the chances…

Adhir Shroff, MD, MPH

PosteriorPosteriorRisk RatioRisk Ratio

x =

PriorOdds Ratio

EvidentialOdds Ratio

PosteriorRisk Ratio

Considering the UncertaintiesConsidering the Uncertainties

0.870.85

0.8 1 1.25 0.8 1 1.25

Page 48: What are the chances…

Adhir Shroff, MD, MPH

x =

PriorOdds Ratio

EvidentialOdds Ratio

Computing the PosteriorComputing the Posterior

PosteriorOdds Ratio

0.8 1 1.25 0.8 1 1.25 0.8 1 1.25

Page 49: What are the chances…

Adhir Shroff, MD, MPH

PosteriorPosteriorRisk RatioRisk Ratio

x =

PriorOdds Ratio

EvidentialOdds Ratio

Interpreting the PosteriorInterpreting the Posterior

PosteriorOdds Ratio

Area = 0.8

Risk Reduction > 10%

p = 0.10CI

0.8 1 1.25 0.8 1 1.25 0.8 1 1.25

Page 50: What are the chances…

Adhir Shroff, MD, MPHP

oste

rior

Pro

babi

lity

1

0

Area = 0.8

Risk Reduction Threshold

0 50 100

PriorOdds Ratio

EvidentialOdds Ratio

Interpreting the Posterior Interpreting the Posterior

100.8 1 1.25 0.8 1 1.25

Page 51: What are the chances…

Adhir Shroff, MD, MPH

Statins in Acute Coronary SyndromesStatins in Acute Coronary Syndromes

x =

0.8 1 1.25 0.8 1 1.25

PriorOdds Ratio

EvidentialOdds Ratio

PosteriorOdds Ratio

0.8 1 1.25

A to ZPROVE-IT PROVE-IT + A to Z

JAMA 2004;292:1307N Engl J Med 2004;350:1495

Page 52: What are the chances…

Adhir Shroff, MD, MPH

1 10 100

Risk Reduction Threshold(%)

PROVE-IT + A to Z

Risk Reduction Threshold(%)

Pos

terio

r P

roba

bilit

y

1 10 100

1.0

0.8

0.6

0.4

0.2

0.0

0.8 1 1.25 0.8 1 1.25

PriorOdds Ratio

EvidentialOdds Ratio

A to ZPROVE-IT

Statins in Acute Coronary SyndromesStatins in Acute Coronary Syndromes

Page 53: What are the chances…

Adhir Shroff, MD, MPH

TomorrowTomorrow’’s Another Days Another Day

0.8 1 1.25

PriorOdds Ratio

EvidentialOdds Ratio

x =

TOMORROW

TODAY+

TOMORROW

PosteriorOdds Ratio

0.8 1 1.250.8 1 1.25

TODAY

Page 54: What are the chances…

Adhir Shroff, MD, MPH

SummarySummary

x =PriorPrior EvidenceEvidence PosteriorPosterior

Page 55: What are the chances…

Adhir Shroff, MD, MPH

• Conventional analysis of clinical trials ignores key background information.

• Bayesian analysis incorporates this additional information.

• Such analyses help support—but do not establish—the aggressive use of statins in ACS.

• The magnitude of benefit is not likely to be clinically important.

ConclusionsConclusions

“Excellent sermon.”