2078 7

CSC212 · 2078 · 5 marks

Linear Regression Question What is linear regression? Fit the linear function to the following data.

Linear Regression Question

What is linear regression? Fit the linear function to the following data.

$$\begin{array}{c|cccccccc} x & 1.0 & 1.2 & 1.4 & 1.6 & 1.8 & 2.0 & 2.2 & 2.4 \ \hline f(x) & 2.0 & 2.6 & 3.9 & 6.0 & 9.3 & 15.0 & 20.6 & 30.4 \end{array}$$

[5]

Numerical MethodChapter 2: Interpolation and RegressionLinear RegressionNumerical: linear regression fitting

Linear regression is a curve-fitting technique that determines the best-fit straight line through a set of data points using the least squares principle, which minimizes the sum of squares of the residuals (vertical deviations) between observed values and the line. The model is: $$f(x) = a0 + a1 ...