Please derive the derivation
l. (a) (5 marks) Derive the gradients of linear regression with 5 variables using expanded equation form and vector form and write the gradient descent update rule for the weights using Mean Squared Error (MSE) as loss function. Typically, gradient descent is run on the entire dataset (full gradient descent) or mini-batches (batched gradient descent). This problem is simple enough that you should be able to get results using per example iterations and MSE for every, individually without summing it over mini-batches or the full dataset. Expanded equation form:
+ S S, + s n + g + n + 13 In = fi
Vector form:
w= [,2,ug,W4,3],x= [z,x2,23,42s],b y = wT + 6 Here, w are the weights and is the offset. Mean Squared Error:
Here {(x(), y()); i = 1, 2,..., N} are the labeled data samples available for the optimization. 3 are the predictions from the linear regression model. Submit the derivation of the gradients for the above 5-dimensional example, both in the expanded equation form as well as the vector form.