Probability Review: Authors: Blume, Greevy Bios 311 Lecture Notes Page 1 of 26
Probability Review: Authors: Blume, Greevy Bios 311 Lecture Notes Page 1 of 26
Probability Review
Probability model
(A mathematical representation of the Process)
Example:
Its probability is
Properties of Probabilities
For event A in sample space S.
0 P(A) 1
P(S) = 1
P(A) = 1- P(Ac)
If AB = then P(AB) = 0.
(The intersection of A and B is the empty set –
A and B are "mutually exclusive" or "disjoint"),
P(A|B) = 0 P(A)
Problem:
(source: Parade Magazine 7/27/97 – Ask Marilyn)
P(D|A) = ?
We know that
=P(D)/P(A)=(1/4)/(1/2)=1/2
{(1,0),(0,1),(1,1)} = C or A
=P(D)/P(C or A) =(1/4)/(3/4)=1/3
Bayes’ Theorem
A2 A3
A1
BA2 BA3
BA1
BA4
A4 A5
Or more generally:
n
Example:
or in general
P ( B | Ak ) P ( Ak )
P ( Ak | B ) n
P(B | A )P( A )
i 1
i i
We have:
P ( B | Ak ) P ( Ak )
P ( Ak | B ) n
P(B | A )P( A )
i 1
i i
P ( B | A) P ( A)
P( A | B)
P ( B | A) P ( A) P ( B | A c ) P ( A c )
Example
Solution:
Let A be the event "selected person is male" and let
B be the event "selected person is color-blind."
We want the conditional probability of A, given B.
Important Aside:
How? Because:
P(H1|D)= P(D|H1)P(H1)/{P(D)}
=P(D| H1)P(H1)/{P(D|H1)P(H1)+ P(D|not H1) P(not H1)}
Diagnostic tests
Example:
Suppose the probability (prevalence) of a disease,
say cooties, in a population of interest is 10%. A test
is developed to detect the disease in its early stages.
When the test was applied to 1000 randomly
selected second graders, 170 tested positive. Of
those who tested positive, only 80 were confirmed to
have cooties.
1) Prevalence
2) Sensitivity = P( Test+ | Disease )
3) Specificity = P( Test- | No Disease )
4) Positive predictive value = P( Disease | Test+ )
5) Negative predictive value = P( No Disease | Test- )
P (T | D ) P ( D )
P(D | T )
P (T | D ) P ( D ) P (T | D ) P ( D )
or
sens prev
PPV
sens prev (1 spec ) (1 prev )
Or
Example:
Solution:
Let A1 be "high risk group"
A2 be "medium risk", and
A3 be "low risk"
B be the event "has at least one accident"
= (0.25)(0.20) / {(0.25)(0.20) +
(0.16)(0.30) +
(0.10)(0.50)}
= 0.338
MRI Tumor
Assessment Total
1 2 3 4 5
Malignant 7 13 22 45 91 178
Benign 78 56 60 5 2 201
Total 85 69 82 50 93 379
MRI Tumor
Assessment Total
1 2 3 4 5
Malignant 7 13 22 45 91 178
Benign 78 56 60 5 2 201
Total 85 69 82 50 93 379
MRI Tumor
Assessment Total
1-3 4-5
Malignant 42 136 178
Benign 194 7 201
Total 236 143 379
MRI Tumor
Assessment Total
1 2 3 4 5
Malignant 7 13 22 45 91 178
Benign 78 56 60 5 2 201
Total 85 69 82 50 93 379
MRI Tumor
Assessment Total
1 2 3 4 5
Malignant 7 13 22 45 91 178
Benign 78 56 60 5 2 201
Total 85 69 82 50 93 379
This data was entered as two columns and 379 rows. The
first column is the MRI call for each individual (integer in
[1,5]) and the second is the tumor status (1=malignant,
0=benign). Here are the Stata commands to do this:
. use rocex
. list in 1/10
+--------------+
| mri cancer |
|--------------|
1. | 1 1 |
2. | 1 1 |
3. | 1 1 |
4. | 1 1 |
5. | 1 1 |
|--------------|
6. | 1 1 |
7. | 1 1 |
8. | 2 1 |
9. | 2 1 |
10. | 2 1 |
+--------------+
Example:
(Fisher and Van Belle p236)
Blood samples collected after a test meal, three
different blood test gave the following data:
Type of Test
Blood sugar Somogyi-Nelson Folin-Wu Anthrone
(mg/100ml) Sens Spec Sens Spec Sens Spec
70 100 0.0 100 8.2 100 2.7
80 100 1.6 97.1 22.4 100 9.4
90 100 8.8 97.1 39.0 100 22.4
100 98.6 21.4 95.7 57.3 98.6 37.3
110 98.6 38.4 92.9 70.6 94.3 54.3
120 97.1 55.9 88.6 83.3 88.6 67.1
130 92.9 70.2 78.6 90.6 81.4 80.6
140 85.7 81.4 68.6 95.1 74.3 88.2
150 80.0 90.4 57.1 97.8 64.3 92.7
160 74.3 94.3 52.9 99.4 58.6 96.3
170 61.4 97.8 47.1 99.6 51.4 98.6
180 52.9 99.0 40.0 99.8 45.7 99.2
190 44.3 99.8 34.3 100 40.0 99.8
200 40.0 99.8 28.6 100 35.7 99.8
SN
0.4
FW
AN
0.2
0.0
1-Specificity