# Residuals vs Fitted Values residuals = model.resid # outlier_linear = name of linear model on #our dataset fitted_vals = model.predict(X) # making predictions from our fit #model