Residuals from regression model

用 R 預測產品需求

Aric LaBarr, Ph.D.

Senior Data Scientist, Elder Research

Linear Regression

用 R 預測產品需求

Regression Residuals

  • Ways to reduce residuals further:
    1. Add more important variables to the model
    2. Use time series if your residuals are related over time
用 R 預測產品需求

Examine Residuals

M_hi_full_res <- residuals(model_M_hi_full)

M_hi_full_res <- xts(M_hi_full_res, order.by = dates_train)
hist(M_hi_full_res) plot(M_hi_full_res)
用 R 預測產品需求

Residual Plots

用 R 預測產品需求

Let's practice!

用 R 預測產品需求

Preparing Video For Download...