CSC212 · 2075 · 5 marks
The fit function of type y = a + bx for the following points using the least square method.
The fit function of type $y = a + bx$ for the following points using the least square method.
$$\begin{array}{c|cccccc} X & -1 & 1.2 & 2 & 2.7 & 3.6 & 4 \ \hline F(x) & 1 & 20 & 27 & 33 & 41 & 45 \end{array}$$
[5]
Numerical MethodChapter 2: Interpolation and RegressionLinear RegressionNumerical: least squares linear fit