updated regression formula