[SOLVED] CMPUT466- Assignment 5

20.90 $

Programming resource
Digital learning resource
Category:
โœ“ Practical programming resource
โœ“ Suitable for guided study and reference
โœ“ Tutor guidance available when needed

Description

Rate this product

Problem 1.

Consider the training objectiveHow would the hypothesis class capacity, overfitting/underfittting, and bias/variance vary๐ฝ = ||๐‘‹๐‘ค โˆ’ ๐‘ก||2 subject to ||๐‘ค||2 โ‰ค ๐ถ for some constant ๐ถ.

according to ๐ถ?

  Larger Smaller
Model capacity (large/small?) _____ ๐ถ _____ย ย  ๐ถ
Overfitting/Underfitting? __fitting __fitting
Bias variance (how/low?) __ bias / __ variance __ bias / __ variance

Note: No proof is needed Problem 2.

๐‘ก(๐‘š) โˆผ ๐‘(๐‘ค๐‘ฅ(๐‘š), ฯƒ

๐‘คConsider a one-dimensional linear regression modelโˆผ ๐‘(0, ฯƒ 2). Show that the posterior of ๐‘ค is also a Gaussian distribution, i.e.,ฯต2) with a Gaussian prior

๐‘ค|๐‘ฅ(1), ๐‘ก(1), ๐‘ค ยทยทยท, ๐‘ฅ(๐‘€), ๐‘ก(๐‘€) โˆผ ๐‘(ยต๐‘๐‘œ๐‘ ๐‘ก, ฯƒ๐‘๐‘œ๐‘ ๐‘ก2). Give the formulas for ยต๐‘๐‘œ๐‘ ๐‘ก, ฯƒ๐‘๐‘œ๐‘ ๐‘ก2.

Note: If a prior has the same formula (but typically with different parameters) as the posterior, itHint: Work with ๐‘ƒ(๐‘ค|๐ท) โˆ ๐‘ƒ(๐‘ค)๐‘ƒ(๐ท|๐‘ค). Do not handle the normalizing term.

is known as a conjugate prior. The above conjugacy also applies to multi-dimensional Gaussian, but the formulas for the mean vector and the covariance matrix will be more complicated.

Problem 3.

equivalent toGive the prior distribution of๐‘™1-penalized mean square loss.๐‘ค for linear regression, such that the max a posteriori estimation is

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.