how do you know whether to perform a linear regression or a quadratic regression for a given set of data