OLS creates a linear regression equation to model/predict values for a dependent variable based on its relationship(s) with an explanatory or independent variable(s).
After performing OLS one can map the residuals to examine their spatial autocorrelation. The OLS output report lists the Koenker statistic which tests for stationarity. "If the test is significant, the model is not stationary, which means that the relationships between variables changes substantially across the study area. This presents a good good reason for a local regression model." GWR, a local model, can then be used to reduce the residuals. GWR creates a separate linear regression equation for every feature in the dataset which enables distances for each neighborhood to be taken into account. OLS does not consider distances at each location/neighborhood.
To predict Auto Thefts, I first examined the Coefficient matrix and noticed strong multicollinearity between the Med_Income variable and the Black_Per, Rent_Per, Hu_Value variables.
|
Rate
|
BLACK_PER
|
HISP_PER
|
RENT_PER
|
MED_INCOME
|
HU_VALUE
|
Rate
|
1
|
|
|
|
|
|
BLACK_PER
|
0.467505903
|
1
|
|
|
|
|
HISP_PER
|
0.140724435
|
0.150039801
|
1
|
|
|
|
RENT_PER
|
0.496543551
|
0.555423624
|
0.4400933
|
1
|
|
|
MED_INCOME
|
-0.501135457
|
-0.729860109
|
-0.337189485
|
-0.73300131
|
1
|
|
HU_VALUE
|
-0.291086137
|
-0.648849511
|
-0.354489318
|
-0.427515948
|
0.830892093
|
1
|
I chose to perform an OLS with Black_Per and Rent_Per as the explanatory variables.
Variable
|
Coef
|
Robust_Pr
|
Intercept
|
-13.75320072
|
0.026737542
|
BLACK_PER
|
0.975778626
|
0.000158894
|
RENT_PER
|
1.645772686
|
1.42741E-05
|
No comments:
Post a Comment