Professional Documents
Culture Documents
Lecture 11
GIS220
Introduction to regression I
Lecture outline
o Up until now…
o Regression analysis
o Regression components
o GeoDa example
1
28/09/2021
• Why are there places in South Africa with high crime rates? What might be
causing this?
• What are the factors contributing to higher than expected traffic accidents?
2
28/09/2021
Regression analysis
o What is regression?
- Dependent variable (variable of interest)
- Independent variables (explanatory/predictor variables)
3
28/09/2021
Residuals
• A residual is the difference between the observed y-value
(from scatter plot) and the predicted y-value (from regression
equation line).
4
28/09/2021
Minimising Residuals
• Regression finds a line
such that the sum of
the squared (vertical)
distances between the
points and the line is
minimized
– Hence the term ordinary
least squares (OLS)
Regression analysis
5
28/09/2021
11
Why Regression?
1. Provides a simplified view of the relationship
between variables.
2. Provides a way of fitting the model with our
data.
3. Provides a means for evaluating the
importance of the variables and the
correctness of the model.
12
6
28/09/2021
Regression analysis
o Example
y – dependent variable
Residential burglary
x – independent variables
7
28/09/2021
y – dependent variable
x – independent variables
y – dependent variable
Residential burglary
x – independent variables
8
28/09/2021
y – dependent variable
Residential burglary
x – independent variables
x – independent variables
9
28/09/2021
10
28/09/2021
GeoDa: example
11
28/09/2021
GeoDa: example
GeoDa: example
12
28/09/2021
GeoDa: example
13
28/09/2021
Residual Errors
Tests Mapping Residuals
14
28/09/2021
References
• Esri (2018). Regression analysis basics.
http://pro.arcgis.com/en/pro-app/tool-reference/spatial-
statistics/regression-analysis-basics.htm#GUID-6D27B3A1-
FFC6-4BF5-893F-F6D60AB2E783.
15