230 likes | 450 Views
Notes on Weighted Least Squares Straight line Fit Passing Through The Origin. Amarjeet Bhullar. November 14, 2008. Data Set. For given {x i , y i } find line through them; i.e., find a and b in y = a+bx. (x 6 ,y 6 ). (x 3 ,y 3 ). (x 5 ,y 5 ). (x 1 ,y 1 ). (x 7 ,y 7 ). (x 4 ,y 4 ).
E N D
Notes onWeighted Least Squares Straight line FitPassing Through The Origin AmarjeetBhullar November 14, 2008
Data Set • For given {xi, yi} find line through them;i.e., find a and b in y = a+bx (x6,y6) (x3,y3) (x5,y5) (x1,y1) (x7,y7) (x4,y4) (x2,y2)
Least Squares • Universal formulation of fitting:minimize squares of differences betweendata and function • Example: for fitting a line, minimize Using appropriate a and b • General solution: take derivatives w.r.t. unknown variables, set equal to zero
Linear Least Squares: Equal Weighting Data Reduction and Error Analysis for the Physical Sciences by Philip R Bevington (1969)
Uncertainties or Estimation of Errors: In a & b • Using the propagation of errors:
Uncertainty or Estimation of Error: In Calculated a The uncertainty in parameter a
Uncertainty or Estimation of Error: In Calculated b The uncertainty in parameter b
Uncertainties or Estimation of Errors: In Calculated a & b Intercept Uncertainty or Error Slope Uncertainty or Error Where &
Linear Least Squares fit : • Linear least squares fitting and error of a straight line which MUST go through the origin (0, 0). • Partial derivative w. r. t. b is zero
Uncertainties in a and b: Unequal Weighting Intercept Uncertainty or Error Slope Uncertainty or Error Where
Weighted Least Squares Straight Line Fit: Eq (6) in draft should be Where Eq (7) in draft should be
Uncertainty in b: Unequal Weighting Eq (8) in draft should be
Conclusion Eq (6) Eq (7) Eq (8)