Exercise

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.

Instructions 1/3

undefined XP
  • 1
    • Create the residuals versus fitted values plot. Add a lowess argument to visualize the trend of the residuals.
  • 2
    • Import qqplot() from statsmodels.api.
    • Create the Q-Q plot of the residuals.
  • 3
    • Create the scale-location plot.