Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

4. (a) Consider a linear regression problem , with a training set having m examples . Suppose that we wish to minimize the mean fifth

4. (a) Consider a linear regression problem image text in transcribed , with a training set having m examples image text in transcribed . Suppose that we wish to minimize the mean fifth degree error (loss function) given by:

image text in transcribed

i. Derive the equation to calculate the gradient with respect to the parameters w1 and w0. (6 marks) ii. Write the pseudo-code of the gradient descent algorithm for this problem. (6 marks)

(b) Consider the following set of points: {(-2, -1), (1, 1), (3, 2)} i. Find the least square regression line for the given data points. (5 marks) ii. Plot the given points and the regression line in the same rectangular system of axes. (5 marks)

(c) What is the use of basis function in linear regression? (5 marks)

y = W10 + wo (21, y1), 12, y2), ..., Im, Ym) Loss = (u: ) y = W10 + wo (21, y1), 12, y2), ..., Im, Ym) Loss = (u: )

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions