Processing math: 100%

 

 

 

The χ2 function

For a linear fit (a first-order polynomial) we don't need to invert a matrix!! Defining

γ=n1i=01σ2i, γx=n1i=0xiσ2i, γy=n1i=0(yiσ2i), γxx=n1i=0xixiσ2i, γxy=n1i=0yixiσ2i,

we obtain

β0=γxxγyγxγyγγxxγ2x, β1=γxyγγxγyγγxxγ2x.

This approach (different linear and non-linear regression) suffers often from both being underdetermined and overdetermined in the unknown coefficients βi. A better approach is to use the Singular Value Decomposition (SVD) method discussed next week.