SPS CW

As attached below, the coursework is about linear regression. I am given a set of training data of csv files and the data can be divided into 1 to 3 segments depending on the number of data. Each segment should have a linear regression plot of either a linear, polynomial or an unknown function. The least sum squared error should be the chosen function of the respective segment.