Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 2 out of 10 pages
Exam (elaborations)

CS7641 Problem Set - Guide for Final Exam Preparation, Fall

Document preview thumbnail
Preview 2 out of 10 pages

CS7641 Problem Set - Guide for Final Exam Preparation, Fall

Content preview

CS7641 Problem Set Fal
i i i


l i




Instructions
Thisi problemi seti isi noti ai parti ofii youri finali gradei buti ratheri ai meansi toi helpi youi withi thei finali exam.i Ifii alli ofitheip
roblemsiareiattemptediandiyourigradeiisiarounditheicutoff,iweiwilliroundiupitoitheihigheriletterigrade.i Youi willi needi t
oi attempti eachi problemi andi submiti youri solutionsi oni Canvas.i Wei willi verifyi worki isi submittediatitheiendiofitheiter
m.i Afteritheideadline,iweiwilliprovideisolutionsiforiyouitoicompareiyourianswers.i WeiplanitoiholditwoiOfficeiHours,i
oneiforieachipartiofitheiproblemisetibeforeitheifinal.


Parti One
1. Whereiweiareidoingisupervisedilearning,iweihaveimostlyiassumediaideterministicifunction.i Imagineiinsteadiai
worldiwhereiweiareitryingitoicaptureiainon-
deterministicifunction.i Inithisicase,iweimightiseeitrainingipairsiwhereitheixivalueiappearsiseveralitimes,ibutiwit
hidifferentiyivalues.i Foriexample,iweimightiusei attributesi ofii humansi toi thei probabilityi thati theyi havei hadi chi
ckeni pox.i Ini thati case,i wei mighti seeitheisameikindiofipersonimanyitimesibutionlyisometimesitheyimayihaveih
adichickenipox.i Weiwouldilikei toi buildi ai learningi algorithmi thati willi computei thei probabilityi thati ai personi
hasi chickeni pox.i So,i giveniaisetiofitrainingidataiwhereieachiinstanceiisimappeditoi1iforitrueiori0iforifalse:
(a) DeriveitheiproperierrorifunctionitoiuseiforifindingitheiMLihypothesisiusingiBayes’iRule.i Youishouldi goit
hroughiaisimilariprocessiasitheioneiuseditoideriveileastisquaredierroriinitheilessons.
(b) Compareiandicontrastiyouriresultitoitheiruleiweiderivediforiaideterministicifunctioniperturbedibyizero-
meanigaussianinoise.i Whatiwouldiainormalineuralinetworkiusingisumiofisquaredierrorsidoi withitheseidat
a?i Whatiifitheidataiconsistediofix,iyipairsiwhereiyiwasianiestimateiofitheiprobabilityiinsteadiofi0siandi1s?
2. Designiaitwo-inputiperceptronithatiimplementsitheibooleanifunctioniAi∧i¬B.i Designiaitwo-
layerinetworkiofiperceptronsithatiimplementsiAi⊕iBi (wherei⊕iisiXOR).
3. Deriveitheiperceptronitrainingiruleiandigradientidescentitrainingiruleiforiaisingleiunitiwithioutputio,iwherei
oi=iw0i+iw1x1i+iw1x2i+i.i.i.i+iwnxni+iwnx2i.i Whati arei thei advantagesi ofii usingi gradienti descent
1 n
trainingi rulei fori trainingi neurali networksi overi thei perceptroni trainingi rule?
4. Explaini howi onei cani usei Decisioni Treesi toi performi regression?
i Showi thati wheni thei errori functioniisisquaredierrorithatitheiexpectedivalueiatianyileafiisitheimean.i Takeithei
BostoniHousingidataseti(http://lib.stat.cmu.edu/datasets/
boston)i andi usei Decisioni Treesi toi performi regression.
5. SuggestiailazyiversioniofitheieageridecisionitreeilearningialgorithmiID3.i Whatiareitheiadvantagesiandidisadvan
tagesiofiyourilazyialgorithmicompareditoitheioriginalieagerialgorithm?
6. Imagineiyouihadiailearningiproblemiwithianiinstanceispaceiofipointsionitheiplaneiandiaitargetifunctionithatiyoui
knewitookitheiformiofiailineionitheiplaneiwhereiallipointsionioneisideiofitheilineiareipositiveiandiallithoseionithei
otheriareinegative.i Ifiyouiwereiconstraineditoionlyiuseidecisionitreeiorinearest-
neighborilearning,iwhichiwouldiyouiuse?i Why?
7. Givei thei VCi dimensioni ofii thesei hypothesisi spaces,i brieflyi explainingi youri answers:
(a) Ani origin-centeredi circlei (2D)
(b) Aniorigin-centeredispherei(3D)




i

, 8. Youihaveitoicommunicateiaisignaliiniailanguageithatihasi3isymbolsiA,iBiandiC.iTheiprobabilityiofiobservi
ngiAiisi50%iwhileithatiofiiobservingiBiandiCiisi25%ieach.i Designianiappropriateiencodingiforithisilanguag
e.i Whatiisitheientropyiofithisisignaliinibits?
9. ShowithatitheiK-
meansiprocedureicanibeiviewediasiaispecialicaseiofitheiEMialgorithmiapplieditoianiappropriateimixtureiofiGaus
sianidensitiesimodel.
10. Ploti thei directioni ofii thei firsti andi secondi PCAi componentsi ini thei figuresi given.




11. Whichi clusteringi method(s)i isi mosti likelyi toi producei thei followingi resultsi ati ki=i2?
i Choosei thei mostilikelyimethod(s)iandibrieflyiexplainiwhyiit/
theyiwilliworkibetteriwhereiothersiwillinotiiniatimosti3isentences.

• Hierarchicali clusteringi withi singlei link
• Hierarchicali clusteringi withi completei link
• Hierarchicali clusteringi withi averagei link
• K-means
• EM




(a) (b) (c)




2
i

Document information

Uploaded on
September 29, 2025
Number of pages
10
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$22.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
NurseAmelia
3.5
(2)
Sold
14
Followers
-1
Items
1889
Last sold
3 months ago


Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions