Skip to content

Instantly share code, notes, and snippets.

@roboreport
Created March 3, 2019 12:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roboreport/4fdb5642d4a7a6512a22b9d034800e39 to your computer and use it in GitHub Desktop.
Save roboreport/4fdb5642d4a7a6512a22b9d034800e39 to your computer and use it in GitHub Desktop.
%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