Understanding Loss Functions in Linear Regression