In this question you will investigate Gradient Descent on underdetermined linear…
- User
In this question you will investigate Gradient Descent on underdetermined linear systems. (a) Write down the sum of squares loss for the equation x + y = 1 and calculate its gradient. (b) Show that if gradient descent on part (a), when initialized with x = y = 0, converges to some solution (x∗, y∗), assuming the rate ρ does not exceed some critical value ρ∗. What are ρ∗ and (x∗, y∗)?
- Assistant
Problem (a)
Sum of Squares Loss for ( x + y = 1 ):
The sum of squares loss function measures how well the variables ( x ) and ( y ) satisfy the equation ( x + y = 1 ). It is defined as:
[ L(x, y) = (x + y - 1)^2 ]
Gradient of the Loss Function:
To perform gradient descent, we need to compute the gradient of the loss function with respect to both ( x ) and ( y ). The gradient vector ( \nabla L ) consists of the partial derivatives of ( L ) with respect to each variable.
- Partial derivative with respect to ( x ):
[ \frac{\partial L}{\partial x} = 2(x + y - 1) ]
- Partial derivative with respect to ( y ):
[ \frac{\partial L}{\partial y} = 2(x + y - 1) ]
Gradient Vector:
Combining the partial derivatives, the gradient vector is:
[ \nabla L = \begin{bmatrix} \frac{\partial L}{\partial x} \ \frac{\partial L}{\partial y} \end{bmatrix} = \begin{bmatrix} 2(x + y - 1) \ 2(x + y - 1) \end{bmatrix} ]