a linear regression of input data from midterm exam