Question: 3 . Linear regression ( 1 5 marks ) ( a ) Write the explicit formula of a linear regression model, f = f (
Linear regression marks
a Write the explicit formula of a linear regression model, f fxlambda in the
case x in R Specify how you can use f to predict the label of a test object.
marks
b Explain how you can train f on a given data set and what is the leastsquare
estimate of lambda Do you need an iterative algorithm, eg gradient descent, to
obtain it Justify your answer. marks
c Consider a dimensional linear regression model, gXlambda lambda
P
ilambda iXi
with parameter lambda T
Evaluate the Residual Sum of Squares RSS
of g on
D xn yn in R
times R
n
T
T
T
T
Hint: In this case, the RSS is defined as
RSSDlambda X
xy in D
y gxlambda
marks
d Discuss the problem of regularization in machine learning. In particular,
how can you regularize a linear regression model? Write the expression of
the Lregularized RSS of g on D as a function of lambda and a regularization
parameter rho
Hint: The L norm of a ddimensional vector is defined as
kvk
X
d
i
v
i
marks
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
