Hello all, thanks for taking the time to read this.

So, I am looking over a document about least squares fitting, and right in the beginning is a summation function: This function is partially differentiated w/respect to b to get:Which is fine. However, here’s where I am confused: the simplified function appears as:
Sign confusion in partial differentiation of a summation.-summation_3.gif
Shouldn’t the last term be positive, as in:
Sign confusion in partial differentiation of a summation.-summation_4.gif
or am I missing something?


Thanks for your help!