University of Washington
Geography 207

Fitting an Unconstrained Spatial Interaction Model
from:  David Plane and Peter Rogerson (1994), The Geographical Analysis of Population, pp. 200-201.  New York:  John Wiley.

    "To operationalize the [spatial interaction model where the interaction is total migration between places i and j]
Mij  =  k Pi Pj dij -b , the most common approach is to use log-linear regression analysis.  We first transform the variables in the equations by taking the logarithms of both sides:

log Mij  =  log k  + log P+  log Pj  - b log dij 

[Alternatively], natural logarithms (logs to base e) are used, whereas in the above] equation common logarithms (e.g., those to base 10) suffice.  Note that the impact of this step is to turn our formerly multiplicative models into additive ones.

    "Next, using any standard computerized statistical package that supports multiple regression applications, we 'fit' the models.  The equation typically estimated by a regression program is a slightly modified version of the [above] equation:

log Mij  =  a + a1 log P+  a2 log Pj  - b log dij 

Here, a0 = log k.  Also, two new parameters have been added on the populations variables that make the models a bit more flexible.  The a1 and a2 parameters may diverge somewhat from 1.0, allowing the estimated flows to be something other than directly proportional to origin and destination populations.

    "By fitting a multiple regression model we mean that the computer program finds for us the optimum values of the parameters a0 , a1 , a2 , and .  These fitted parameter values are those for which the model-predicted flows { Mij } most accurately replicate the matrix of actual migration figures { mij }, in the sense of minimizing the sum of the squared deviations between the logarithms of the model-predicted flows and the actual flows.  The regression packages picks out the values for the four parameters that result in Mij values that minimize the sum of squared errors [between all the observed values of mij and the values Mij derived from the application of the parameter values to the population and distance values associated with each data point].

    "To illustrate the results of this fitting procedure, we entered into a statistical package the 30 actual migration flows between the six New England states for 1985-90, the corresponding distances between each origin and each destination state's population centroid, and the origin and destination state populations.  Specifying multiple regression in the form of the [above] equation, the following estimated equation was found:

log Mij  =  -3.9190.940 log P0.570 log Pj  - 0.746 log dij 

The a0 regression parameter must then be exponentiated to transform the equation back into its original, multiplicative form:
k = 10a0 .

Our fitted gravity model is thus Mij  =  (0.000120503) Pi0.940 Pj0.570 / dij 0.746

    [One then uses this model to estimate the "expected" migration flows.  One can compare these flows to the actual flows to understand what other factors might be influencing the migration patterns.  One can use these parameters to estimate flows in the near future, given projections of future populations.  One can compare these parameters to parameters estimated from data on other U.S. regions or other times in history, to understand how migration propensities and the friction of distance are different in different regions or at different times.]