Professional Documents
Culture Documents
Lecture 7: Spatial Econometric Modeling of Origin-Destination Flows
Lecture 7: Spatial Econometric Modeling of Origin-Destination Flows
Lecture 7: Spatial Econometric Modeling of Origin-Destination Flows
June 2005
The gravity/spatial interaction model
1
Interregional flows in a spatial regression
context
where:
2
0 1
x1
B x1 C
B C
B ... C
B C
B x1 C
B C
0 1 B x2 C
B C
X(nxk) B C
B X(nxk) C B x2 C
B ... C
Xd = B
@ ... C
A Xo = B C (2)
B C
B x2 C
X(nxk) B C
B ... C
B C
B xn C
B C
B xn C
B ... C
@ A
xn
3
Spatial dependence of flows
4
Spatial weight matrices for flows
• A key issue is how to construct a meaningful spatial
weight matrix in the case where the n2 by 1 vector
of observations reflect flows from all origins to all
destinations, rather than the typical case where each
observation represents a region.
• We can create a typical n by n first-order contiguity
or m nearest neighbors weight matrix W that reflects
relations between the n destinations/origin regions. This
can be repeated using In ⊗ W to create an n2 by n2
row-standardized spatial weight matrix that we label Wo,
shown in (3).
0 1
W 0 ... 0
B 0 W 0 ... C
Wo = B @ ...
C (3)
0 . . . 0 A
0 ... 0 W
• Use of this matrix to form a spatial lag of the dependent
variable, Woy , (where Wo = In ⊗ W with W row-
standardized), we can capture “origin-based” spatial
dependence relations using an average of flows from
neighbors to each origin state to each of the destinations.
• Intuitively, it seems plausible that forces leading to flows
from any origin to a particular destination state may
create similar flows from neighbors to this origin to the
same destination. This is what the spatial lag Woy
captures.
5
An example of “origin-based” spatial
dependence
6
“Destination-based” spatial dependence
7
An example of “destination-based” spatial
dependence
• To provide an example of this we consider four regions
located in a row as presented in Table 2.
0 1
0 In 0 0
B (1/2)In 0 (1/2)In 0 C
Wd = B
@
C
0 (1/2)In 0 (1/2)In A
0 0 In 0
(5)
8
“Origin-destination-based” spatial
dependence
y = ρ1 W o y + ρ2 W d y − ρ1 ρ2 W o W d y
+ αι + Xdβd + Xoβo + Dγ + ε (7)
9
An example of “origin-destination-based”
spatial dependence
10
Spatial regression models for O-D flows
• Proposition #1
– Given a row-normalized spatial weight matrix W , the
spatial weight matrices:
Wo = In ⊗ W (8)
Wd = W ⊗ In
Wod = W ⊗W
11
• Proposition #2
– Given a row-normalized spatial weight matrix W , the
elements of the matrices Wo and Wd are mutually
exclusive. This allows us to add the spatial weight
matrices:
WJ = Wo + Wd (10)
= (In ⊗ W ) + (W ⊗ In)
12
• Proposition #3
– Given a row-normalized spatial weight matrix W , one
can form a spatial weight matrix:
WJ = Wo + Wd + Wod (11)
= (In ⊗ W ) + (W ⊗ In) + (W ⊗ W )
13
Non-conventional model specifications
y = ρ1 W o y + ρ2 W d y − ρ1 ρ2 W o W d y
+ αι + Xdβd + Xoβo + Dγ + ε (13)
y = ρ1 W o y + ρ2 W d y − ρ3 W o W d y
+ αι + Xdβd + Xoβo + Dγ + ε (14)
14
Maximum likelihood estimation
15
The log-determinant term in the likelihood
2 0
LogL(ρ) = C +log|In2 −ρWJ |−(n /2)log(e e(ρ))
(15)
Where e0e(ρ) represents the sum of squared errors
expressed as a function of the scalar parameter ρ alone
after concentrating out the parameters β, σ (see LeSage
and Pace, 2004).
• The log-determinant of the transformation is the trace
of the matrix logarithm of the transformation, and the
Taylor series expansion of this has a simple form for the
positive definite matrix transformation In2 − ρWJ .
16
• For the case of destination or origin weight matrices,
Wd = In ⊗ W or Wo = W ⊗ In, which we designate
WJ , J = o, d
t t t t t
tr(WJ ) = tr(In ⊗ W ) = tr(In) · tr(W )
t
= n · tr(W ) (17)
17
Successive spatial filtering model
specifications
18
• Because the log-determinant of a product is the sum of
the log-determinants, the overall log-determinant of the
successive filtering approach is quite simple as shown in
(20).
19
The log-determinant term for successive
spatial filtering model specifications
20
Some applied illustrations
21
Model comparisons
Model log-like
OLS 347.3761
SAR using WJ = Wd only 542.9683
SAR using WJ = Wo only 567.5280
SAR using Wj = Wo + Wd + Wod 604.8205
SAR using WJ = Wo + Wd 617.9472
SAR using (In2 − ρ1Wo − ρ2Wd + ρ1ρ2WoWd) 623.4115
SAR using (In2 − ρ1Wo − ρ2Wd) 624.0966
SAR using (In2 − ρ1Wo − ρ2Wd + ρ3WoWd) 624.6686
Model ρ1 , ρ 2 , ρ 3
OLS 0
WJ = Wd only 0.2759
WJ = Wo only 0.3099
Wj = Wo + Wd + Wod 0.2019
WJ = Wo + Wd 0.2719
(In2 − ρ1Wo − ρ2Wd + ρ1ρ2WoWd) 0.2381, 0.2854
(In2 − ρ1Wo − ρ2Wd) 0.2551, 0.2985
(In2 − ρ1Wo − ρ2Wd + ρ3WoWd) 0.2532, 0.2993, -0.0060
22
23
Variable β t-stat z-prob
constant -1.207 -0.32 0.7425
Darea 0.072 4.09 0.0000
Dpcincome 0.385 2.11 0.0340
Dmales -2.361 -3.28 0.0010
Dfemales 2.935 3.41 0.0006
Dyoung -0.007 -0.04 0.9629
Dnretire -0.380 -1.50 0.1311
Dretired -0.120 -0.62 0.5328
Dborninstate -0.206 -3.71 0.0002
Dforeignborn -0.099 -2.16 0.0303
Dcollege 0.169 1.96 0.0496
Dgradprof -0.009 -0.13 0.8963
Dhousevalue -0.097 -1.66 0.0960
Dtraveltime 0.037 0.29 0.7645
Dunemp 0.076 1.59 0.1116
Dmedianrent -0.287 -1.86 0.0625
Dretireincome -0.389 -4.58 0.0000
Dself-emp -0.217 -4.76 0.0000
Drecentimmigr 0.088 2.28 0.0222
Oarea 0.090 4.95 0.0000
Opcincome 0.185 1.02 0.3071
Omales -0.686 -0.93 0.3473
Ofemales 0.092 0.10 0.9158
Oyoung 0.785 4.64 0.0000
Onretire -1.319 -5.21 0.0000
Oretired 1.079 5.39 0.0000
Oborninstate -0.081 -1.48 0.1374
Oforeignborn 0.132 2.82 0.0047
Ocollege -0.238 -2.70 0.0067
Ogradprof 0.146 2.11 0.0345
Ohousevalue 0.060 1.01 0.3078
Otraveltime 0.514 4.09 0.0000
Ounemp -0.327 -6.39 0.0000
Omedianrent 0.019 0.12 0.8976
Oretireincome -0.198 -2.36 0.0179
Oself-emp -0.100 -2.17 0.0293
Orecentimmigr -0.160 -4.05 0.0000
log(distance) -0.028 -2.08 0.0366
log(distance2) 0.003 2.48 0.0128
rho1 0.253 9.27 0.0000
rho2 0.299 12.93 0.0000
rho3 -0.006 -0.13 0.8896
24
Other issues/Work to be done
25
Conclusions
26