Question: 3 . Linear regression ( 1 5 marks ) ( a ) Write the explicit formula of a linear regression model, f = f (

3. Linear regression (15 marks)
(a) Write the explicit formula of a linear regression model, f = f(x,\lambda ), in the
case x in R. Specify how you can use f to predict the label of a test object.
[3 marks]
(b) Explain how you can train f on a given data set and what is the least-square
estimate of \lambda . Do you need an iterative algorithm, e.g. gradient descent, to
obtain it? Justify your answer. [4 marks]
(c) Consider a 2-dimensional linear regression model, g(X,\lambda )=\lambda 0+
P2
i=1\lambda iXi
,
with parameter \lambda =[1,0,1]T
. Evaluate the Residual Sum of Squares (RSS)
of g on
D ={(xn, yn) in R
2\times R}
4
n=1
={([0.1,0.2]T
,0.3),([0.4,0.5]T
,0.4),([0.3,0.2]T
,0.1),([0.2,0.3]T
,0.4)}
Hint: In this case, the RSS is defined as
RSS(D,\lambda )= X
(x,y) in D
(y g(x,\lambda ))2
.
[4 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 L2-regularized RSS of g on D as a function of \lambda and a regularization
parameter \rho .
Hint: The L2 norm of a d-dimensional vector is defined as
kvk
2=
X
d
i=1
v
2
i
.
[4 marks]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!