An implementation of linear regression based on solving the normal equations. Fitted data from CalCoFi trying to find a relationship between temperature and salinity.
Below is a screenshot of a scatter plot denoting the best-fit-line along with 50 randomly selected points from the data set.