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 11 pages
Exam (elaborations)

CS7641 Problem Set - Guide for Final Exam Preparation, Fall

Document preview thumbnail
Preview 2 out of 11 pages

CS7641 Problem Set - Guide for Final Exam Preparation, Fall

Content preview

CS7641yProblemySetyFally




Instructions
Thisyproblemysetyisynotyaypartyofyyouryfinalygradeybutyratheryaymeansytoyhelpyyouywithytheyfinalyexam.yIfyallyofytheyprobl
emsyareyattemptedyandyyourygradeyisyaroundytheycutoff,yweywillyroundyupytoytheyhigheryletterygrade.yYouywillyneedytoyat
temptyeachyproblemyandysubmityyourysolutionsyonyCanvas.yWeywillyverifyyworkyisysubmittedyatytheyendyofytheyterm.yAf
terytheydeadline,yweywillyprovideysolutionsyforyyouytoycompareyyouryanswers.yWeyplanytoyholdytwoyOfficeyHours,yoneyf
oryeachypartyofytheyproblemysetybeforeytheyfinal.


PartyOne
1. Whereyweyareydoingysupervisedylearning,yweyhaveymostlyyassumedyaydeterministicyfunction.yImagineyin
steadyayworldywhereyweyareytryingytoycaptureyaynon-
deterministicyfunction.yInythisycase,yweymightyseeytrainingypairsywhereytheyxyvalueyappearsyseveralytime
s,ybutywithydifferentyyyvalues.yForyexample,yweymightyuseyattributesyofyhumansytoytheyprobabilityythatyth
eyyhaveyhadychickenypox.yInythatycase,yweymightyseeytheysameykindyofypersonymanyytimesybutyonlyysom
etimesytheyymayyhaveyhadychickenypox.yWeywouldylikeytoybuildyaylearningyalgorithmythatywillycomputey
theyprobabilityythatyaypersonyhasychickenypox.ySo,ygivenyaysetyofytrainingydataywhereyeachyinstanceyisym
appedytoy1yforytrueyory0yforyfalse:
(a) DeriveytheyproperyerroryfunctionytoyuseyforyfindingytheyMLyhypothesisyusingyBayes’yRule.yYouysho
uldygoythroughyaysimilaryprocessyasytheyoneyusedytoyderiveyleastysquaredyerroryinytheylessons.
(b) Compareyandycontrastyyouryresultytoytheyruleyweyderivedyforyaydeterministicyfunctionyperturbedybyy
zero-
meanygaussianynoise.yWhatywouldyaynormalyneuralynetworkyusingysumyofysquaredyerrorsydoywithyt
heseydata?
yWhatyifytheydatayconsistedyofyx,yyypairsywhereyyywasyanyestimateyofytheyprobabilityyinsteadyofy0sya

ndy1s?
2. Designyaytwo-inputyperceptronythatyimplementsytheybooleanyfunctionyAy∧y¬B.yDesignyaytwo-
layerynetworkyofyperceptronsythatyimplementsyAy⊕yBy(wherey⊕yisyXOR).
3. Deriveytheyperceptronytrainingyruleyandygradientydescentytrainingyruleyforyaysingleyunitywithyoutputyo,yw
hereyoy=yw0y+yw1x1y+yw1x21y+y.y.y.y+ywnxny+ywnx2 n
y.yWhatyareytheyadvantagesyofyusingygradientydescent

trainingyruleyforytrainingyneuralynetworksyoverytheyperceptronytrainingyrule?

4. ExplainyhowyoneycanyuseyDecisionyTreesytoyperformyregression?
yShowythatywhenytheyerroryfunctionyisysquaredyerrorythatytheyexpectedyvalueyatyanyyleafyisytheymean.yTak
eytheyBostonyHousingydatasety(http://lib.stat.cmu.edu/datasets/
boston)yandyuseyDecisionyTreesytoyperformyregression.
5. SuggestyaylazyyversionyofytheyeagerydecisionytreeylearningyalgorithmyID3.yWhatyareytheyadvantagesyandy
disadvantagesyofyyourylazyyalgorithmycomparedytoytheyoriginalyeageryalgorithm?
6. Imagineyyouyhadyaylearningyproblemywithyanyinstanceyspaceyofypointsyonytheyplaneyandyaytargetyfunction
ythatyyouyknewytookytheyformyofyaylineyonytheyplaneywhereyallypointsyonyoneysideyofytheylineyareypositive
yandyallythoseyonytheyotheryareynegative.yIfyyouywereyconstrainedytoyonlyyuseydecisionytreeyorynearest-
neighborylearning,ywhichywouldyyouyuse?yWhy?
7. GiveytheyVCydimensionyofytheseyhypothesisyspaces,ybrieflyyexplainingyyouryanswers:

(a) Anyorigin-centeredycircley(2D)
(b) Anyorigin-centeredyspherey(3D)



y

, 8. Youyhaveytoycommunicateyaysignalyinyaylanguageythatyhasy3ysymbolsyA,yByandyC.yTheyprobabilityyofyob
servingyAyisy50%ywhileythatyofyobservingyByandyCyisy25%yeach.yDesignyanyappropriateyencodingyforythi
sylanguage.yWhatyisytheyentropyyofythisysignalyinybits?
9. ShowythatytheyK-
meansyprocedureycanybeyviewedyasyayspecialycaseyofytheyEMyalgorithmyappliedytoyanyappropriateymixtur
eyofyGaussianydensitiesymodel.
10. PlotytheydirectionyofytheyfirstyandysecondyPCAycomponentsyinytheyfiguresygiven.




11. Whichyclusteringymethod(s)yisymostylikelyytoyproduceytheyfollowingyresultsyatyky=y2?
yChooseytheymostylikelyymethod(s)yandybrieflyyexplainywhyyit/
theyywillyworkybetterywhereyothersywillynotyinyatymosty3ysentences.

• Hierarchicalyclusteringywithysingleylink
• Hierarchicalyclusteringywithycompleteylink
• Hierarchicalyclusteringywithyaverageylink
• K-means
• EM




(a) (b) (c)




2
y

Document information

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

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