Beruflich Dokumente
Kultur Dokumente
7rh Semester
MODULE 4
' Consider a medical diagnosis problem in which there are two alternative hypotheses: 1.
that the patient has a particular form of cancer (+) and 2. That the patient does not (-). A
patient takes a lab test and the result comes back poslliyg, The test returns a correct
positive result in only 98% of the cases in which the disease is actually present, and a
correct negative result in only 97% of the cases in which the disease is not present.
Furthermore, .008 of the entire population have this cancer. Detennihe *hether the
patiept has Cancer or not using MAP hypothesis" l.-,,..,,
Sou*irn : -
+ fprvr -t4.r o-bout llluAf\n^ , p nb6bi.Ufu Wn be )unrrwn;-ytl
AJ fotl"our
-
t"
ttttt":t'
| (co,nua) A nn?
, U'VU0 O/>tn,r,t,'\ ^ rlrr(\L
- U,11
;[ 1r,r,,,",t-\./tl-
mn,9 nf r
P (@ lo^i,t '- U-\d ? I€'I -l
I L\--'l |
rrvntrr\'
\ )1
''\'\'t',.) O-)L
P(Ol-co t*rJ=0.03 ,f (Oh,"rt )= 0-q?
6nt"U un aro.XnoS,.
,-if."
.. p,r a,4 futr.-;i Co,nl-fl 6
^"r7
P(Ol **) lC**";, (0.q4* [0.0y) = o.al+s
nf - I \
ll,( O I tt*nc,D p[f
^
6,6.r,&t . 0.oS x 0"qq2 = 0. o}ql.
eo,
,l:::: ,:::,,:::,:
hllVl
,il::::::,:,, : ftP = - (XftW
=:=-
'{nnll Naive Bayes classifier for PlayTennis concept leaming problem to classify the
following novel instance
< Outlook: sunny, Temperature: cool, Humidity: high, Wind: strong >
,,,,,,,
To,,\K U 1a.,,,,, p *rrv- xaqu tt I
t,
\ro.trrr (ffo n-!o) q
-+l'.L {urq.t @rrwc flu1Tcnnis
ul t- r 4h;,r'nt,
J6t ^. ' T
lr -.r t ,,trr-) Wt\rfun{t
0
V^,3 =
ry^'*"
e
Ptri)Tl
{Jq , noJ
p(qi tuJ) <- eq^o
T
I&tc1e-t
fit:a,rrt \)O,luU A
e.If,inrro,r^a) VWil X U
W) -lfuiz Outl l1 teoin;' *
uomqh{ fiutntiu U
?(our.lo**Sunnf 1pqlnnic,yr6)=
+ = 0.22
p (sntUr'f , s,,nry I
?qTcnni.r"L;= + = 0,60
P (oTnry= bur t rbtyr\u
= 3q_ = 0.33
Ptf,*p=b'1, lttnyfrnn[""*)= +
+ = 0.20
P [Uu*iaif1= h{AA nrr^M ,,,/q) = r/q = o. j3
I p
t(u',
\r I
Pttt1T,nniu = AD
Ouf\no -F*g
tturniuiQ l,tlioel P1",1-lln*'s
\unnj [,Du( l'^.rgA Slrong n0
''
iit::'
o"oo53 0,20s
>---
0.a052 t 0"0246
o,0206
0 19s
0.0 093 + 0.02o6 T