Skip to content

Instantly share code, notes, and snippets.

Created March 3, 2019 12:02
What would you like to do?
%matplotlib inline
import matplotlib.pyplot as plt
Y_pred = lm.predict(X_test)
plt.scatter(Y_test, Y_pred)
plt.xlabel("Price Index: $Y_i$")
plt.ylabel("Predicted price Index: $\hat{Y}_i$")
plt.title("Prices vs Predicted price Index: $Y_i$ vs $\hat{Y}_i$")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment