Fitting a Linear Function
This example shows how to fit a linear function to a given data sets with least squares approximation.
Problem:
Find the function
Solution:
The first thing we see is that
To solve with normal equations we simply solve the system