Matrix Calculus

xdmatheusw

New member
Joined
Feb 3, 2021
Messages
2
I have a question about the derivative of the dot product of two vectors. if I have f(w, y) = w' * y where w and y are vectors, why is the derivative of f(w, y) relative to w is y and not y'? (y' is the transpose of y) thanks for listening.


1612365671687.png
 

Attachments

  • 1612365330761.png
    1612365330761.png
    22.4 KB · Views: 0
I have a question about the derivative of the dot product of two vectors. if I have f(w, y) = w' * y where w and y are vectors, why is the derivative of f(w, y) relative to w is y and not y'? (y' is the transpose of y) thanks for listening.


View attachment 24865
Please show us what you have tried and exactly where you are stuck.

Please follow the rules of posting in this forum, as enunciated at:


Please share your work/thoughts about this problem.
 
Sorry, i will try to explain it better.

I was studying machine learnig and I came across a linear regression problem, and I was following the proof for the optimization problem. I will link the proof below.
1612366514584.png
1612366532125.png

My question is on line 5.10, where the derivative of 2 * w' * X' * y is equal to 2 * X' * y.

I think that the product of X' by y will result in a vector, and following the definition of the derivative of a scalar by a vector, the result would have to be transposed, in the case X' * y, where it would be y' * X

1612367012894.png
 
Top