calculate delta y regression