Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Help with partial derivatives

Status
Not open for further replies.

t_maggot

Member level 3
Member level 3
Joined
Nov 9, 2006
Messages
57
Helped
4
Reputation
8
Reaction score
2
Trophy points
1,288
Activity points
1,282
I want to understand the creation of the least square line of type f(x)=a+bx with input 5 points. My purpose is to optimize the calculations to fit my DSP best. I have start with this this simple example:

https://en.wikipedia.org/wiki/Linear_least_squares#Motivational_example

and I try to calculate the 2 partial derivatives of S(a,b) with respect to a and b, from witch (when I set them to 0) system of 2 functions of 2 variables I can calculate a and b.

Setting b as costant, I find S'b(a) = 8a+20b-56 witch I think is right, but I can't calculate the S'a(b) to have a system witch gives me a=3.5 and b=1.4. I always find the S'a(b)=20a+20b-154 witch dont fit the results. I am stuck on this, and I would appreciate any help...
 

Ok, problem solved, its S'a(b) = 20a+60b-154 instead of S'a(b)=20a+20b-154
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top