Drawing diagnostic plots
It's time for you to draw these diagnostic plots yourself using the Taiwan real estate dataset and the model of house prices versus number of convenience stores.
taiwan_real_estate is available as a pandas DataFrame and mdl_price_vs_conv is available.
Questo esercizio fa parte del corso
Introduction to Regression with statsmodels in Python
Esercizio pratico interattivo
Prova a risolvere questo esercizio completando il codice di esempio.
# Plot the residuals vs. fitted values
sns.____(x=____, y=____, data=taiwan_real_estate, ____)
plt.xlabel("Fitted values")
plt.ylabel("Residuals")
# Show the plot
plt.show()