Calculating response based on predictor and respective independent and dependent variable using least square method