I'm studying with a book and I'm at the Linear Regression part. The author is showing that we have to calculate the derivative of each part of the equation that leads to the loss.
But he's using the MSE to calculate the loss and so, I tried to calculate the derivative of MSE:
the derivative of $ (y-p)^2 $ with respect to y (the target) is equal to $2(y-p)$ but in the book it is written $-1*(2(y-p))$ which is simplified as $-2(y-p)$. Why do I have different values ? Where is this $-1$ coming from?