You are on page 1of 7

0usnon M, SO[gtr'ons - Dtc. zo9 | Jdn.

11tg Machine Learning


$ rscszl

4a' For *At '*rnnsn-cti"or"rs SMctn i,41 +rq +ohJa- hnpuh ttw
t'Urui^t'
(il tl*op6 o; +r^r *
\ transozrion ettr-tdr \ +t +^hlL
urirr'r ffr{p{.f -b Ufr}kiir^fifrn
tii) who^r u.lL +h{- fl.r o,^d.aL fulfrtlrrL
^y^rli- W t
"fo +h{ $wxntttpnt 1 {4.t .f*U t
g q
linShanrr L 3 + S 6 4
&r T T T F F F F T F
At T T F l= T T F F 't-
Taurr dnw + t -t- +

+ €ntvoyVcs)
= - po [uJ " p@ F p- tr.g, po
Goin I s, D = cntropJ Cs) - L
)e
€ntrory (s,)
tu*,#|
ti) H,u'-, -l{',u,- o,. q vn\tom/^ oLrr UtlrtilL
rF 4 OJL
X
po Si-tU-lt irrultwn-ccl
.p 5 Cur NtXatiroc 'wfianttt

-= 0.qq\
--------a

eo,

Deepak D. , Asst. Professor, Dept. of GS&E, Ganara Engineerins c;ir;g", Mangaluru


Outs+,,on ftau golunons-Dr .2olg I ran.zolg Machine Learning
$ rscszr
0t rn nn*rp g- ,
5
j
d

hd *tr^" t^j"'rp[ {rr aL, Lt-., lsu| €nrvop,:cs")


f-r

: +tt"ge"(+) -HQ,H)]
@|
+

+Ft+)tr,c) -t+) t:'[eI


0.J6os t 0_fofo
0
:::
'+615 qul Sbifi/t irt, qatn twlrudo
v
llt-tz'lt
qo,n t*ro1cs,J
[s, u) = cnfropy c')
; ;];*,, ff
= 0"qQlo - 0.+61s.

-ry ofio,ihilfr 0.o


Jhrgu UN9
CLz +
Unlrrta T L 3
F L 2_

lhd +frc ffipy # QL ;t', €nrrolcrcsrJ


#
0z
Deepak D. , Asst. Professor, Dept. of GS&E, Ganara Engineering Gollege, Mangaluru
- eK3) br, H -(+) rry,(*r . rr
'.'
/
quol t\0.$ *Vc
irntnnfq
0.ssq+ t0.++++
0.q838 S*s+ian in hp.narron Clsrrrt dolru&

v',-:=-Qoi.(1 ,01= €ntuop6(t -


I

Z '[
€*oyyCs')
ve uo,lrur (a)
: 0"qqO- 0"q938

Deepak D. r Asst. Professor, Dept. of GS&E, Ganara Engineering Goltege, Mangaluru


Qurs1on Qa+a gohnon - Dtc ,totg I 1ao.zolq Machine Learning
$ rscszr

X. C, bns;clur- n Mboll W b6uuw hn tqn/ffii:


q57'
^!fl.t
Tq.0m0 o,nd Tt-a,nL, (ulposr Tenrn} tpinx 4 +hL 4+nL
0/nd Ttnnnf winr +h{" *r*t*V n11a'u, Srno'9 *ta W tflln
ux Ttnnl, 3o'1" -t/rt,n Lsw" p%"t clyr Te.amL'g
ry t forr
Uutt *,rld - 9n +{,{- Atfiul,o,,rd, ?s ./. vUrfii,tt $t
tout nW
ftn'nl ntu lbfnirrv) *@ fW * l\sYrw, q Tu^!, A
fu host {fu wt-t rnofuA bch))Len +fu firrn
"tln/ryrs I uth;nh
trnrn wiil rnost J*% wrw\t 04 +tu u)vnnur ?

€41*'
+ probab&{ -liut Tmrn0 whs o/rr
r^ t'LYoJ\ -'
= 0'q5
I

+ probobiJ./q '+{.oJ twnt uvns 14


r(Itl=
Plr,t \
7r nlrt \
fLYil
= j * 0"q[
= 9:g:
*, Probo.billfrJ f-hot ]1tnn!, l.ost a +r.e rn0fch
Lt hod uron i4 p
CXr[ Vn) = ,-.0'?5
+ probabi{^& -{+'of rrnml l"\lgtrd +t0 nNLt\
won bJ Tapn'O i^
p[Xr I VJ = e.1e

Jto F on{lrno Corri be- !,,{vod


I ' \ ulrr.uoui;,$4*
P/rly, X,) , L iA
wtirh ,. {f"
rr ,^ U
"probob
'
+l"Ot
L I tnrtonlwrwl,
W
TtCI,ml wfrrZ +{"{- nur nafuh itr hreU"
fo 'sno-m-g4rn SoJ*hh n* ; nssr^CIl B, l.f*ft *gt g*- - .". Y :*il"--'.tr ::i :q-[ i ::]:-
Ustntr B%u -lhmrurn ,

pIv' x,) - P(*,lvJ x r(v)


PCX.)

P [x, lv,),r p [v,) + p[x, lyo) p tv,)

o.?5 * o.oS
( o'1s * o.os) t ( o" Zox 0"qt
rtvl x,) - 0.l16t-

(v, lr,) = 1 p^ | r
P
-r- ,[Y, Ix) = !,-O.ll6L
= 0.8838
ginct
P(v, l*,) { P(Y, l^)
Ttntn0 hoJ fr
k=:-fltrT b,hr probab,.{rQ q wirnnirna -tfu1, TnnL,,
i

' tlu", +1.{.r. orr frr,, ujmfi - I hosy


N obo
hjin .

O wrn
@ fiosc <-- d,uwt,a W X
@ Tromg .? fur\ruA iJ 0
@ Til,nf + dt"ar,A \ L
Deepak D. r Asst. Professor, Dept, of GS&E, Ganara Engineering Goilege, Mangaluru
wsriol P, Machine Learning

8. C The following table gives data set about stolen vehicles. Using Naive Bayes classifier
classif,ithe new data {Color: Red, Type: SUV, Origin:Domestic}

Color Tvpe Orisin Stolen


Red Snorts Domestic Yes
Red Soorts Domestic No
Red Snorts Domest Yes
Yel ow Soorts Domest No
Yel ow Sports Imported Yes
Yel ow SUV Imported No
Yel ow SUV Imported Yes
Yel ow SUV Domestic No
Red SUV Imported No
Red Sports Imported Yes

y:
- cugryir pty)-i,rf o(xiIy)
ley
(toTia\^fiI , ttatut) + tofrr I fA ,y,iln,^,)
(tlut lsPo,ts , surr)
t Orir4h I Dor,sric , gnpotc,A)
Tqr Uu J
Color Yu NLO
p ( color, e.af stot,n=!u) = * = 0-6

\lnlrru Pu{ 5 2- P krlnt " P.llstotcn 'r,b)= 0"t


+
!ttl-0, L 2 P ( ult" Y,tbrrl I Stoten:!u): 2^
J
PCt tlr= YrLln*l Stot.n " s =0.t
?
0,6 ^u)" T =

Typo Yu AfO
P[!P" = sPorr l, stalrn 'Vo)= trls = o.g
Cport + g-
P h[p" =
cPorr l(tultn = M)" ,lt -
0,+
Suv I 3
P($p. = suv I srolcn,y.r) = l/r - 0.1-

P[rgp. = suu I Stotcn = N, ' 3/r'0.6


Deepak D. , Asst. Professor, Dept. of GS&E, canara. Engineering colleg;; Mangaluru
Q,urStioo Pa{,l 9{rmOoS - Dq,.ZOn I Ian.ZOn Machine Learning f; rscszr

Tht,r
0rioin Au Al, P [Otig in ' Dorn csnrf.f+otrn = U4= 2/s = 0,*
Val.lrt Dorn'6 gi1 z 3 P (oriSin= Dornunc I vuttn= M) = 3lr = 0'6
?mportud 3 2_
p [oriX.n =L^prrt",r I stalt n=y,J)= s/E = 0.6

zlr = 0.+
P [origi.,= ],npo,ttd I Stot,tt =
I =

(Lass,tr, +i.e r\xrt) dofc = ( gra, Sut/ , Dorn uttL)


+ For SO(rn = yg ,o

4 ( nLor. Rtd Ismt,n,y,{)* (tp,= euv sdrn ,y,t)x


f (ot;Xin = Domum
I
ptv u) S'{rrttn. Yri)*
+ 0.6 * 0.2 4 0.+ * 0"s
:) p 02+
-,( fo, [tu.(cn = Alo :
€o
ll\rl
+ ?d[ sml,n (Trr* Suu {sml,n'No)x (rnl'^ "}em(shir{ttt,n"
[cobr = /\Jl
"ru,)* ruo) x {rur)
-) o.+*0.6{ o-6+ o.r
-) 0. 04L
So,
-
orlc tloutd UMA',14
b)
*?rt fW dnin M nn|c Sfuttn

Deepak D. r Asst. Professor, Dept. of GS&E, Ganara Engineering Cofiege, Mangaluru

You might also like