machine-learning Definition Residual The residual is the difference between the predicted value y^ and the actual value y: Residual=y−y^