Data Analytics, Machine Learning, Business Analytics, Regression Analysis, Knowledgebase Analytics.
is straightforward: # Durbin-Watson test durbinWatsonTest(linear_model) # output: # lag Autocorrelation D-W Statistic p-value # 1 0.2954091 1.362399 0.048 # Alternative hypothesis: rho != 0 # The Durbin-Watson statistic value of 1.362 suggests a # positive autocorrelation in the residuals of the