GIS320 Lecture4 Geographically Weighted Regression
GIS320 Lecture4 Geographically Weighted Regression
Lecture 4
Geographically-weighted regression
learning outcomes
• Be able to know the difference between an OLS regression, a
spatial regression and a geographically-weighted regression
1
2024/08/02
key concepts
• Spatial non-stationarity exists when the same stimulus
provokes a different response in different parts of the
study region
what is GWR?
• A local form of linear regression used to model spatially
varying relationships
GLOBAL
MODEL
2
2024/08/02
what is GWR?
• GWR constructs a separate equation for every feature (polygon)
in the dataset incorporating the dependent and independent
variables of features within the bandwidth of each target
feature
potential applications
1. Is the relationship between educational attainment and income consistent
across the study area?
2. Are the key variables that explain high forest fire frequency stationary?
4. Where are the districts in which children are achieving high test scores? What
characteristics seem to be associated? Where is each characteristic most
important?
5. Are the factors influencing higher cancer rates consistent across the study
area?
3
2024/08/02
example
• Dependent variable
1) 911 calls for service
• Independent variables
1) -
2) -
3) -
4) -
example
• Dependent variable
1) 911 calls for service
• Independent variables
1) Population (the number of individuals in a suburb)
2) Jobs (the number of job positions in a suburb)
3) LowEduc (the number of individuals with a low level of education)
4) Dst2UrbCen (the distance to the CBD from that suburb)
4
2024/08/02
5
2024/08/02
6
2024/08/02
7
2024/08/02
8
2024/08/02
Kernel
9
2024/08/02
Kernel type
Fixed Adaptive
10
2024/08/02
GWR in
ArcGIS
Pro
The feature class containing the
dependent and independent variables
GWR in
ArcGIS
Pro
The numeric field containing the
observed values that will be modelled
11
2024/08/02
GWR in
ArcGIS
Pro
Model type
* Continuous
* Logistic
* Poisson
GWR in
ArcGIS
Pro
A list of fields representing independent
variables in the regression model
12
2024/08/02
GWR in
ArcGIS
Pro
The new feature class containing the
dependent variable estimates and
residuals
GWR in
ArcGIS
Pro
Specifies whether the neighbourhood
used is constructed as a fixed distance
or allowed to vary (adapt) in spatial
extent depending on the density of the
features
* Number of neighbours
* Distance bands
13
2024/08/02
GWR in
ArcGIS
Pro
Specifies how the neighbourhood size
will be determined. The neighbourhood
selected with the Golden search and
Manual intervals options is based on
minimizing the AIC value.
* Golden search
* User defined
GWR in
ArcGIS
Pro
A feature class containing features
representing locations where estimates
will be computed. Each feature in this
dataset should contain values for all the
independent variables specified. The
dependent variable for these features
will be estimated using the model
calibrated for the input feature class
data.
14
2024/08/02
GWR in
ArcGIS
Pro
Specifies the kernel type that will be
used to provide the spatial weighting in
the model. The kernel defines how each
feature is related to other features
within its neighborhood.
* Bisquare—A weight of 0 will be assigned to
any feature outside the neighborhood
specified. This is the default.
* Gaussian—All features will receive weights,
but weights become exponentially smaller the
further away from the target feature.
GWR in
ArcGIS
Pro
The workspace where the coefficient
rasters will be created. When this
workspace is provided, rasters are
created for the intercept and every
independent variable
15
2024/08/02
example
• Dependent variable
1) % unemployed
• Independent variables
1) % foreign born
2) % female
3) % moved in the last five years
GWR in
ArcGIS
Pro
16
2024/08/02
GWR in
ArcGIS
Pro
17
2024/08/02
18
2024/08/02
GWR in
ArcGIS
Pro
positive predictor
negative predictor
19