Finding the equation for a given data set