fitting data to linear and quadratic curves, normal distributions, measuring goodness of fit of data to curve