In: Advanced Math
What straight line y=ax+b best fits the following data in the least-squares sense?
x | 1 | 2 | 3 | 4 |
y | 0 | 1 | 1 | 2 |
i. Formulate the problem in the form Ax=b for appropriate A and b (matrix form).
We want to fit in the function g(x) = a sinx + b cosx for a data set
x 1 1.5 2 2.5
y 1.902 0.5447 0.9453 2.204
x | 1 | 1.5 | 2 | 2.5 |
y | 1.902 | 0.5447 | 0.9453 | 2.204 |
i. Formulate the problem in the form Ax=b for appropriate A and b (matrix form).