This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%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