Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Understanding Databases Concepts And Practice

Authors: Suzanne W Dietrich

1st Edition

1119827949, 9781119827948

More Books

Students also viewed these Databases questions

Question

=+a) Comparing the ratings of a new telephone set on a

Answered: 1 week ago

Question

What would you do?

Answered: 1 week ago