Bbaldi Ips Chapter04
Bbaldi Ips Chapter04
inference
General probability rules
Conditional probability
Probability trees
Bayes’s rule
General addition rules
General addition rule for any two events A and B:
What is the probability of randomly drawing either an ace or a heart from a deck of
52 playing cards? There are 4 aces in the pack and 13 hearts. However, 1 card is
both an ace and a heart. Thus:
Example: The probability that a cloudy day will result in rain is different if
you live in Los Angeles than if you live in Seattle.
What is the probability of randomly drawing either an ace of heart from a deck of
52 playing cards? There are 4 aces in the pack and 13 hearts.
P(heart|ace) = 1/4 P(ace) = 4/52
P(ace and heart) = P(ace)* P(heart|ace) = (4/52)*(1/4) = 1/52
Internet 0.47
user
Diagnosis
Disease sensitivity 0.8
incidence Positive
Cancer
0.0004 Negative False negative
0.2
Mammography
0.1 False positive
0.9996 Positive
No cancer
Negative
Incidence of breast 0.9
cancer among Diagnosis
specificity Mammography
women ages 20–30
performance
She could either have a positive test and have breast cancer or have a positive
test but not have cancer (false positive).
Diagnosis
Disease sensitivity 0.8
incidence Positive
Cancer
0.0004 Negative False negative
0.2
Mammography
0.1 False positive
0.9996 Positive
No cancer
Incidence of breast Negative
cancer among 0.9
Diagnosis
women ages 20–30 specificity Mammography
performance
Possible outcomes given the positive diagnosis: positive test and breast cancer
or positive test but no cancer (false positive).
P(cancer and pos )
P (cancer | pos )
P(cancer and pos ) P (nocancer and pos )
0.0004*0.8
0.3%
0.0004*0.8 0.9996*0.1
This value is called the positive predictive value, or PV+. It is an important piece
of information but, unfortunately, is rarely communicated to patients.
Bayes’s rule
An important application of conditional probabilities is Bayes’s rule. It is
the foundation of many modern statistical applications beyond the
scope of this textbook.