Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You are given a dataset consisting of 1000 samples described by 2 predictors A and B and a label y. Assume that the true underlying

image text in transcribed

You are given a dataset consisting of 1000 samples described by 2 predictors A and B and a label y. Assume that the true underlying model is linear and follows the mathematical expression y=w0+wAA+wBB+n, where n follows a Gaussian distribution of mean 0 and unknown variance. To determine the value of w0,wA and wB you choose the Mean Squared Error as your error function and use two optimisation methods: gradient descent and least squares. The initial model in your gradient descent implementation is [w0,wA,wB]=[40,30,50] and the learning rate is =1. The error E and the gradient of the error E during the first 4 iterations are: - Iteration 1:E=200,E=[5,5,5] - Iteration 2: E=100,E=[3,3,3]. - Iteration 3:E=50,E=[1,1,1] - Iteration 4:E=10,E=[0,0,0]. The coefficients of the gradient descent solution are w0=,wA=,wB= The coefficients of the least squares solution are w0=,wA=,wB= Finally, the variance of n is 2=

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

Students also viewed these Databases questions

Question

prime number in python

Answered: 1 week ago