Exercise "Least-squares fit"
- Make a subroutine that fits a given data-set, {xi
yi, δyi}, i=1..n, with a linear combination
of given functions, {fk(x)} k=1..m. The subroutine must return
the vector of coefficients and the covariance matrix.
- Make some interesting fits and check that the reported errors
of the fitting coefficients are resonable.
Projects
- Implement linear least-squares fit for data sets with errors
in both x and y: {xi, δxi,
yi, δyi}.