Professional Documents
Culture Documents
Chapter3 Part1 Slides
Chapter3 Part1 Slides
1/38
3.1 Introduction
NA
P (A) =
N
1
This definition assumes equally likely events.
3.2 A Definition of Probability 3/38
Example
Five marbles are placed in a cup. Three are red, two are white. If a marble
is randomly selected, what is the probability it is red?
NA
P (A) =
N
3
=
5
= .60
Frequency tables, such as the one represented here, show the numbers of
observations (persons, things etc.) that manifest some set of
characteristics.
D D
S 9 3 12
S 2 6 8
11 9
D D
S 9 3 12
S 2 6 8
11 9
Thus,
The number of persons who smoke (S) and have the disease (D) is 9.
The number who don’t smoke (S) and have the disease (D) is 2.
The number who smoke (S) and don’t have the disease (D) is 3.
The number who don’t smoke (S) and don’t have the disease (D) is
6.
D D
S 9 3 12
S 2 6 8
11 9
Logically, the values at the table margins give the total count for the
indicated characteristics. Thus,
12 persons smoked.
eight did not smoke.
11 had disease.
nine were disease free.
D D
S 9 3 12
S 2 6 8
11 9
Given an observation is randomly drawn from the above table, we calculate
The probability of selecting a person who does not smoke:
8
P S = 20 = .40
The probability of selecting someone who has the disease:
P (D) = 1120 = .55
The probability of selecting someone who smokes and does not have
the disease:
3
P SD = 20 = .15
The probability of selecting a non-smoker who does not have the
disease:
6
P S D = 20 = .30
3.3 Contingency Tables 11/38
Calculating Probabilities (continued)
D D
S 9 3 12
S 2 6 8
11 9
D D
S 9 3 12
S 2 6 8
11 9
D D
S .45 .15 .60
S .10 .30 .40
.55 .45
B B
A P (AB) P AB P (A)
A P AB P AB P A
P (B) P B
B B
A P (AB) P AB P (A)
A P AB P AB P A
P (B) P B
Probabilities of the form P (A ∪ B) or P A ∪ B for example, would be
obtained by summing the appropriate cell entries.
B B
A P (AB) P AB P (A)
A P AB P AB P A
P (B) P B
Thus P (A ∪ B) = P (AB) + P AB + P AB
and
P A ∪ B = P AB + P AB + P AB
B B
A P (AB) P AB P (A)
A P AB P AB P A
P (B) P B
Conditional Probabilities are calculated in the same manner as was used
with frequency tables. Thus for example,
P (AB)
P (A | B) =
P (B)
and
P AB
P B|A =
P (A)
3.3 Contingency Tables 18/38
Independence
P (A | B) = P (A)
or equivalently if
B B
A .18 .42 .60
A .12 .28 .40
.30 .70
Sensitivity is the probability that a person with the disease will test
positive for that disease or
Sensitivity = P (+ | D)
D D
+ .008 .011 .019
− .001 .980 .981
.009 .991
Sensitivity = P (+ | D)
.008
=
.009
= .89
Specificity is the probability that a person who does not have the disease
will test negative for the disease or
Specificity = P − | D
D D
+ .008 .011 .019
− .001 .980 .981
.009 .991
Specificity = P − | D
.980
=
.991
= .99
PPV = P (D | +)
D D
+ .008 .011 .019
− .001 .980 .981
.009 .991
PPV = P (D | +)
.008
=
.019
= .42
D D
+ .008 .011 .019
− .001 .980 .981
.009 .991
NPV = P D | −
.980
=
.981
= .999
Prevalence = P (D)
D D
+ .008 .011 .019
− .001 .980 .981
.009 .991
Prevalence = P (D)
= .009
P (D | E )
RR =
P D|E
E E
D .15 .10 .25
D .05 .70 .75
.20 .80
P (D | E )
RR =
P D|E
.750
=
.125
= 6
The odds that an event will occur is the probability that the event will
occur divided by the probability that the event will not occur. Thus, the
odds of disease for some group exposed to a potential risk factor would be
P (D | E )
odds =
P D|E
Likewise, the odds of disease for some group not exposed to some
potential risk factor would be
P D|E
odds =
P D|E
The odds ratio (OR) is defined as the odds of disease for an exposed
group divided by the odds of disease for an unexposed group or
P(D|E )
P (D|E )
OR =
P (D|E )
P (D|E )
which simplifies to
P (D | E ) P D | E
OR =
P D|E P D|E
E E
D .15 .10 .25
D .05 .70 .75
.20 .80
P (D | E ) P D | E
OR =
P D|E P D|E
(.750) (.875)
=
(.250) (.125)
= 21
This means the odds of disease in the exposed group is 21 times that of
the unexposed group.
P (A | B) P (B)
P (B | A) =
P (A | B) P (B) + P A | B P B