Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
87 views55 pages

Readings: K&F:1, 2

This document discusses hepatitis and provides information to determine if a patient has hepatitis based on presented symptoms. It provides a table with four possible patient descriptions involving hepatitis (H), jaundice (J), and blood test results (B). For each description, it lists the probability of the patient having hepatitis based on the presented information. The highest probabilities are associated with a patient described as H, J, and B positive, indicating hepatitis, jaundice, and a positive blood test result.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
87 views55 pages

Readings: K&F:1, 2

This document discusses hepatitis and provides information to determine if a patient has hepatitis based on presented symptoms. It provides a table with four possible patient descriptions involving hepatitis (H), jaundice (J), and blood test results (B). For each description, it lists the probability of the patient having hepatitis based on the presented information. The highest probabilities are associated with a patient described as H, J, and B positive, indicating hepatitis, jaundice, and a positive blood test result.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 55

Readings:

K&F:1, 2

! " #
%
& '
' -
1 /0
( ) *
+
, & !'
-

& '
.
$
' '
3
4 5 6 6 6 /7
3 ! 8
"888 6 6 0 #
3
1 9
%6 :
"4 # ; %8<6 %8$6 %8%=6 %8%$
"4 ; # ; %8<
"4 ; # ; %8$
"4 ; # ; %8%=
"4 ; / # ; %8%$
> 3
> 1 " 16 4 ; # ? @ 2
( ) B

4 >B
C 1 ) + 6
"D > #
> ) 6
"D #
+
> 3
"># "D > #E
"D #

"D # 6

1
A
>+ 0

"0 / 0#
/ 0
/ %F 8

> 3
/ %F 3
" / %F # $%E%% ; %8$
( 1 6
+

4 B
G
/ H
( )
"# ; )
1 1
4 ) ? / /@ B
0? / /@ B
*
"# ; 1 /
4 ? 1 @ 0
"#;%8=6 / 1 HHH
( 0
/ " # F /
'
+ 3

I 3
1 + 6

1 1 88
1 1 J
?, !@
<
' ' K
'
;
44 ; /
4; 6/
, / 1 8
4 0
80 / 1 K B ",L #
80 / / B "4L #
80 K / /6
1 / 8
" K,L M L # =
&
" ,L # ; E2
( & " 4L # ; E$ E
$
" K,L M L # ; E2

& 6
1 &F 6
/ ! 1 8
& ! 2 3
& 3 4 JA8$% ,L O
J$8 % / 8 9
& ",L #; E
2:
& 3 4 J$8%% 4L O
J$8%% / 8 9
& "4L #; E
$:
& !3 4 JA8%% L ,L O
JA8%% L ,L O
/ J% K L 8
9
& " K,L M L #; E
$: N
C
3 4 JA8$% ,L O
J$8 % / 8
3 4 J$8%% 4L O
J$8%% /
!3 4 JA8%% L ,L O
JA8%% L ,L O
/ J% K L

" !# $ " # " # " # '


8 L P,L 3
, / 6
/ 8
.A8$% K$8%% KA8%% K 8=%
$8 4L P K,L 3
, / K 6
/ / 8 K$8 % .$8%% Q%8%% K%8 %
28 L P K,L 3
, / K 6
/ 8
K$8 % K$8%% .A8%% K%8 %
%
C
3 4 JA8$% ,L O
J$8 % / 8
3 4 J$8%% 4L O
J$8%% / 0
!3 4 JA8%% L ,L O
/ 1
/6P JA8%% L ,L O
/ J% K L
/ H
/ " !# $ " # " # " # '
8 L P,L 3
, / 6
/ 8
.A8$% K$8%% KA8%% K 8=%
$8 4L P K,L 3
, / 6
/ / 8 K$8 % .$8%% Q%8%% K%8 %
28 L P K,L 3
, / 6
/ 8
K$8 % K$8%% .A8%% K%8 %
' , & !'

& ! 8
' 0
, ! 1 &

&R
& + S 8

$
T 2 6 16 ! 6 1 8
* 8 6 /
/ * 6
8

! / 1
" ; O=; #
8T 8
8T / ! ! ! 1 8
8T 8
8T / ! 8
8T T 1 4 U 8
8 T ! 8
18 T 8
8T ! 8
2
? Hepatitis?

? Hepatitis,
Jaundiced not Jaundiced
but +BloodTest
?
BloodTest

4 " . M G*
6. #B
A
>
# !% #
3? V
* 1 >U> W 9 4 :
& # #
' # # 3

- & X "*
6 6 #
% % % %8%22N

3$ % % %8%%N
"$ G 6 ; # % % %8%%%2
1 H % %8 =%
% % %8% A
% %8%2=
% %8%%%A
%8<$$
H Hepatitis
J Jaundice
B (positive) Blood test

>
1 * 3
- & X "*
6 6 #
( 6 % % % %8%22N
% % %8%%N
% % %8%%%2
/ 3 % %8 =%

" #; 3 " # % % %8% A


% %8%2=
% %8%%%A
%8<$$
".*#
; %8% A . %8%2= . %8%%%A . %8<$$
; %8<$$A
1 S

? 1 @

' 1 " Y #3
6 $ K

+ 6 06 + K

<
H Hepatitis
J Jaundice
B (positive) Blood test

>
1 * 3
- & X "*
6 6 #
( 6 % % % %8%22N
% % %8%%N
% % %8%%%2
/ 3 % %8 =%

" #; 3 " # % % %8% A


% %8%2=
% %8%%%A
%8<$$

"K* . #
; 8%22N . 8%%N . 8%%%2 . 8 =% . 8%%%A . 8<$$ ; %8NA <
=
1 6
/ / B
>U>I6 / 1$B

" M#

N
3
" M # ; 6
1
"- MX # ; %8=
1 R 3 P ( & )
P ( | )=
P ( )
P ( & ) = P ( | ) P ( )
(! # ) #
'3

"- # ; %8%A
" # * A %%
% !3 1

* # ) # #
'3
$%
I8 86 C T
>'>TW H
( ) 3
X / > "M#B

#( and B)
P( , ) N #( and )
P( | ) = =
P( ) #( ) #( )
N

#( jaundice and hepatitis)


P( jaundice | hepatitis) =
#(hepatitis) $
X >+

%% /
. + ,-
,
$ *
A

. ;
.*; *

" .*# ; B " .*M . # ; B

$$
>
1 * 3
H Hepatitis
J Jaundice - X & "*
6 6 #
B (positive) Blood test
% % % %8%22N
3 % % %8%%N
% % %8%%%2

"K M .*# % %8 =%

; "K .*# % % %8% A


% %8%2=
".* #
% %8%%%A
; %8% A . %8%2=
%8<$$
%8% A . %8%2= . %8%%%A . %8<$$

%8% <= $2
D3

"6# ; "# "M#

1 3
" 6 0 6 !# ;
" # "$M # ZZ "!M 6 06 !K #
Z

0 0
" 606 !# ; "2# "<M2# " AM2 6 <# Z
ZZ

$A
D$3 &

1 6 + 3

$
& R

0 1 "
X M #

4 " 1 M I !#B
P( SN | M ) P( M ) 1 6
P( M | SN ) =
1 !B)
P( SN
' 888
1 " # ; E%6%%%
1 ! " I# ; $

E
$%
&
, R " I# " IM #3
" I# ; " I6 # . " I6 #
; " IM # " # . " IM # " #
" # ; G " #
? !V
6/
1 " M I# ; " IM # " #E" I#
/ " 4 M I# ; " IM4# "4#E" I#
' ? ! @6
R " I# 3 P(M|SN) P(SN|M) P(M)
= = ...
P(W|SN) P(SN| W) P(W)
" W M Y # ; "Y M W # " W #
/ ; E"Y# W8 $<
? Hepatitis?

? Hepatitis,
Jaundiced not Jaundiced
but +BloodTest
?
BloodTest

4 " . M G*
6. #B
$=
1>
6. #
" . M K*
.X 6 1 5 K- 6 .& ' 7
B

& 3

> / "K*
6 . 6 888# 6
! / ". #
/ 8

"I 3 #
$N
1
I 2 3 " . M . 6 K*#
0I / 888
& 6 IC' I>>,>,H
" . M . 6 K*# ; " . M . #
" $6 1
$6 1 #
888

' CI IC' T
4 W ' >H
& / 6 * $ H

> 3
[, "G*# " . M G*# ; ". 6 G*
#
[ XO * S1 H 2%
H Hepatitis
J Jaundice
B (positive) Blood test
>
/ 0
1 * 3
C 3
- X & "*
6 6 #
1 S3 + "W6 +# % % % %8%22N
S3 " 6+# E "+# % % %8%%N
% % %8%%%2
% %8 =%
% % %8% A
% %8%2=
% %8%%%A
%8<$$

2
- - BB
* B
$
I3
$ A

2 =
" .*
6 K 6 . # BB
' 1 3 3
\$ % 6%$A
' /
" ) 1$!888 # 3 3

$% 6%A=6 <

3 3

& 3 2% 6 %<26<A 6=$A


6

> 3 3
>
2$
& I

P(H=1) P(H=0)
H
0.05 0.95
h P(B=1 | H=h) P(B=0 | H=h)

1 0.95 0.05 B
0 0.03 0.97
h b P(J=1|h,b) P(J=0|h,b)
J
1 1 0.8 0.2

Node ~ Variable 1 0 0.8 0.2


0 1 0.3 0.7
Link ~ Causal dependency 0 0 0.3 0.7
CPTable ~ P(child | parents)
22
> 1 T!
"X; #
H %8%
"&; M X; #
%8N
B "-; M 6 #
% %8%2
%8=
% %8=
J
% %82
% % %82

P(J | H, B=0) = P(J | H, B=1) J, H !


P( J | H, B) = P(J | H)
J is INDEPENDENT of B, once we know H
Dont need B J arc!
2A
> 1 T!
"X; #
H %8%
"&; M X; #
%8N
B "-; M #
% %8%2
%8=
% %82
J

P(J | H, B=0) = P(J | H, B=1) J, H !


P( J | H, B) = P(J | H)
J is INDEPENDENT of B, once we know H
Dont need B J arc!
2
& I
"X; #
H %8%
"&; M X; #
%8N
B "-; M #
% %8%2
%8=
% %82
J

Requires: P(H=1) known


P(J=1 | H=1) known
P(B=1 | H=1) known
(Only 5 parameters, not 7)

P(J=0 | H=1)
1
Hence: P(H=1 | B=1, J=0 ) = P(H=1) P(B=1 | H=1) P(J=0 |B=1,H=1)

2
4 ( 0
- 61 57
B

".*
# ; %82$

0- 61 G& ' B
H
".*M K # ; %82%
B
0- 61 .X B
J
".*M . # ; %8=

0- 61 .X 6
K& ' B

3 ".*M . 6 K # ; %8= 2<


- ".*
# ; %82$
,C>
& ' 6

H
".*M K # ; %82%
B
& -
IC'
J
".*M . # ; %8=
& ' 6
0 1 ) ##

3 ".*M . 6 K # ; %8= 2=
H

, 0 B

J
& -3
-; 6 ! X; &;
0 CITW 'X C X X3
! / X; 6 ! &;
0 F / -; -;% H
P(J=0 | B=1, H=1) = P(J=0 | H=1)

N.b., B and J ARE correlated a priori P(J | B ) P(J)


GIVEN H, they become uncorrelated P(J | B, H) = P(J | H)
2N
( ,
61 ,
H Hepatitis P( B | J ) P(B) but
J Jaundice P( B | J,H ) = P(B|H)
B (positive) Blood test

ReadingAbility and ShoeSize are dependent,


P( ReadAbility | ShoeSize ) P( ReadAbility )
but become independent, given Age
P( ReadAbility | ShoeSize, Age ) = P( ReadAbility | Age )

Age

ShoeSize Reading
A%
& 11 I / !
"U; #
" ; #
%8$%
%82$ U
"X; M 6 #

%8=$

X % %8 %
% %8A
% % %8%A

"-; M #
%8= - & ' "&; M #
% %82 %8N=
% %8%
3 / T 3
> X O X > -

If Alcohol, then expect Jaundice: Alcohol Hepatitis Jaundice

But only via Hepatitis: Alcohol and not Hepatitis Jaundice


P( J | A ) P( J ) but A
P( J | A, H ) = P( J | H)
3

3
'3 O ' $3
" '$ M ' # ; " ' $#

) #
6 "M#; "#
" #
0

) # 2
" # ; "# "#
A$
> &
" P # ; "# "#
" M # ; "#
" # ; G " G "# # " G "# #

U

6 " ; 6&; # ; " ; # "& ; #

A2
&
" M&# ; " # "&M # ; "&# " 6 &# ; " # "&#

"' 6 6 64 #
; "' 6 6 # "4 #

NO
6 C"$ # C" #
/ 0

, 1 / 6
/ 8
04 B

AA
3

6 0
S IC' 1
& 1 >0

! # ' ) #1
"M # ; "M#
" | #

) # 2 " | #
" M# ; " M # " M #
A
"X 6- 6 &' # $2 G ;< 8

.X 6 - R & ' 3
" # "- M . 6 &'# ; "- M. #

' KX 3
"$# " - M K 6 &' # ; "- MK #

- &' 1 X 3
"- M X6 &'# ; "- M X#

>) 3
"- M &'6 X #; "- MX #
"- 6 &' M X #; "- M X # "&' M X #
A
> > >$
1 >

"> M >6 >$# ; "> M>#

>6 ! / 1>$ 1
>
>) 3
" > 6 >$ M ># ; " > M > # " >$M >#
" >$ M >6 > # ; ">$ M > #
A<
&

3 1 + 606+ Y 606Y

3 "Y6W# ; "Y# "WMY#

& 3 "YMW# ; "WMY# "Y# E "W#

3
"Y 606Y # ;
"Y # "Y$MY # "Y!MY 606Y!K # "Y MY 6 06 Y K #

A=
U
"# 36 46 5
3 41 5
"3;64;'M5;7#6 6 U "3#6 ' U "4#6 7 U "5#

3
* # ) ! 2 "3 4 M 5#
( "3 4 M # 6 / "3 4#

) # 2 "3 4 M 5#
"364M5# ; "3M5# "4M5# AN
"' #'2
"3 4 M 5# "4 3 M 5#
! ) # 2
"3 4 8 M 5# "3 4 M 5#
8 9 2
"3 4 8 M 5# "3 4 M 5 8#
* # !# 2
"3 8 M 465# P"3 4 M 5# "3 4 8 M 5#
:# !# 2
"3 4 M 865# P "3 8 M 465# "3 4 8 M 5#
C H
"#]%6
%
; ## 2 " # G
" '

& '
'
( ) *
+
, & !'
-

& '
.
$
>

C 
;5 6$626A6 7
> ; $
; 5 6$7
>
' 5 6$7 P
5$627
3 5 6$627
3 6 4 MM ; 6
K
!
2
, "6 #

"# %
"#;
; 6 " # ; "#. "#

( 6 3
" #;%
" # ; "#. "# K " #

A
U

> G/ !
16 6X
S 3
; 5 3 "# ; 7

6 Y3
U "Y# ; Y
( " 1 #3 ; 0MU "Y#M "Y;+ # ;
( 3 + "Y;+# + ;

You might also like