In this exercise you will familiarize yourself with dynamic memory allocation in C by performing a linear least squares fit of some data to a line, or simply linear regression. In this lab you will see some of the flexibility C allows when creating programs which are matched to user input.
Linear regression is a powerful data anlaysis tool.
Physical measures contain errors or noise, thus making an exact measurement impossible. Linear regression gives the answer to these questions in a rigorous fashion. Linear regression is one of a class of data analysis methods called linear least squares fitting. These methods model data as a linear combination of basis functions. With linear regression, this model is simply a line.