- Introduced by
- Luc Anselin
- Year
- 1988
- Type
- Regression model for areal crime data with spatial dependence
- Family
- Spatial econometrics
What does it do?
Spatial regression models explain crime rates across areal units (neighborhoods, census tracts, counties) while explicitly accounting for the tendency of nearby places to have similar crime levels.
Ordinary regression assumes each unit's residual is independent, an assumption crime data routinely violate. Spatial econometric models, formalized in Luc Anselin's 1988 framework, introduce a spatial weights matrix and add either a spatial lag of the outcome or a spatially correlated error. The two choices address different problems. If the outcome of neighboring units genuinely influences a unit's outcome (spatial lag), ordinary least squares gives biased and inconsistent coefficients. If only the disturbances are spatially correlated (spatial error), the coefficients remain unbiased but are inefficient and the standard errors are wrong.
The intuition behind the method
Crime does not respect administrative boundaries: a tract with high crime usually sits beside other high-crime tracts, because the social and economic processes driving crime — disadvantage, instability, opportunity — spill across borders, and offenders and victims move between areas. If you fit ordinary regression to such data, the leftover residuals stay correlated in space, violating the model's assumptions and giving you over-confident, sometimes misleading results. Spatial regression takes this seriously. A spatial lag model says a place's crime depends partly on its neighbors' crime, capturing diffusion or spillover. A spatial error model says the unmeasured causes of crime are themselves spatially patterned. Geographically weighted regression goes further, letting the relationships vary from place to place rather than holding everywhere at once.
History
Spatial regression in the social sciences was systematized by Luc Anselin, whose 1988 book Spatial Econometrics: Methods and Models introduced the spatial lag and spatial error specifications discussed here. The approach entered criminology as researchers applied it to ecological theories of crime, such as social disorganization and concentrated disadvantage, and to the spatial autocorrelation found in neighborhood crime data. A 2000 review, 'Spatial analyses of crime' by Anselin, Cohen, Cook, Gorr and Tita in the Criminal Justice 2000 series, surveys these methods as applied to crime.
When to use it
Use spatial regression of crime when your outcome is a crime count or rate measured across areal units, you have explanatory covariates, and the residuals of an ordinary regression show spatial autocorrelation. It is used to test neighborhood theories of crime, such as social disorganization and concentrated disadvantage, while accounting for spatial dependence. A spatial lag model suits questions about diffusion and spillover; a spatial error model suits situations where unmeasured causes are spatially patterned; geographically weighted regression suits questions about how relationships vary across a city. It is less appropriate for individual-level data, for point events better handled by point-pattern or kernel methods, or when there are too few units to estimate spatial parameters reliably. Key assumptions: a linear specification with approximately Gaussian errors (or a count-model alternative), covariates that are exogenous, a fixed weights matrix that is justified by theory and checked for sensitivity, and enough areal units to estimate the spatial parameters reliably.
Limitations and considerations
- Results depend heavily on the spatial weights matrix, an analyst choice with no single correct specification.
- Aggregating to areal units invokes the modifiable areal unit problem and the ecological fallacy when inferring about individuals.
- Distinguishing a spatial lag from a spatial error process is statistically difficult and can be theoretically ambiguous.
- Standard models assume Gaussian outcomes, so crime counts often need transformation or count-data spatial extensions.
- Spatial parameters can absorb genuine causal effects, making interpretation of spillover versus confounding delicate.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Corrects the biased standard errors that ordinary regression produces when crime is spatially autocorrelated.
- Distinguishes substantive spillover (spatial lag) from spatially patterned omitted variables (spatial error).
- Provides formal diagnostics (Moran's I, Lagrange-multiplier tests) to detect and specify spatial dependence.
- Geographically weighted variants reveal how covariate effects vary across a city rather than assuming one global effect.
- Directly operationalizes neighborhood theories of crime such as social disorganization across connected areal units.
Applications
- Testing whether concentrated disadvantage and residential instability predict neighborhood crime net of spatial dependence.
- Estimating crime spillover between adjacent areas using a spatial lag specification.
- Modeling spatially patterned unobserved causes of crime with a spatial error specification.
- Mapping how the effect of a risk factor on crime varies across a city via geographically weighted regression.
- Evaluating area-level interventions or policies on crime rates while accounting for neighbor effects.
How it works
How it works
The starting point is an ordinary regression of crime in each areal unit on a set of covariates such as concentrated disadvantage, residential instability, and population structure. This baseline expresses crime as a linear function of local characteristics plus an error term, and its residuals are examined for spatial autocorrelation (typically with Moran's I) to decide whether a spatial specification is needed at all.
Formula
y_i = \beta_0 + \sum_{k} \beta_k x_{ik} + \varepsilon_i, \quad i = 1,\dots,nA spatial weights matrix W encodes which units are neighbors and how strongly they are connected, by shared boundaries (contiguity), by distance, or by k-nearest neighbors, with zeros on the diagonal so no unit is its own neighbor. Often row-standardized, W defines the neighborhood structure through which spatial dependence operates and is a modeling choice that materially shapes the results. With a row-standardized W, the lag parameter ρ is restricted to the interval between the reciprocal of the smallest eigenvalue and the reciprocal of the largest eigenvalue of W (for row-standardized W the upper bound is 1), which keeps the model stable.
Formula
W = [w_{ij}], \quad w_{ij} > 0 \text{ if } i \sim j,\ w_{ii} = 0The formula in this step is the combined model, with both forms of dependence in one equation: ρWy adds a spatial lag in the outcome, and u = λWu + ε makes the disturbances spatially correlated. The spatial lag model is the special case λ = 0, representing substantive diffusion or spillover from neighbors' crime. The spatial error model is the special case ρ = 0, in which only the disturbances are spatially correlated, representing spatially patterned omitted variables. A significant ρ or λ indicates spatial dependence of the corresponding type, and its sign and size should be read against theory and the diagnostics. In a spatial lag model, β is not the full marginal effect of a covariate: a change in x in one unit also feeds back through (I − ρW)^(-1) to neighbors and back again. Direct, indirect (spillover), and total impacts should therefore be computed from this inverse rather than reading β alone.
Formula
y = \rho W y + X\beta + u, \qquad u = \lambda W u + \varepsilon
Because the spatial lag term places the outcome on both sides of the equation, ordinary least squares is biased and inconsistent, so the models are estimated by maximum likelihood (or by generalized method of moments / instrumental variables). Estimation jointly recovers the regression coefficients and the spatial parameters. Lagrange-multiplier tests on the OLS residuals guide the choice between lag and error specifications, and geographically weighted regression is fit by locally weighted least squares so that coefficients can vary across space.
Formula
\hat{\theta} = \arg\max_{\theta} \ \ell(\rho,\lambda,\beta,\sigma^2 \mid y, X, W)Common pitfalls
- Fitting ordinary regression to spatially autocorrelated crime data and reporting over-confident standard errors.
- Choosing the spatial weights matrix arbitrarily and not testing sensitivity to alternative neighbor definitions.
- Interpreting a significant spatial lag as proof of crime diffusion when a spatial error process fits equally well.
- Drawing individual-level conclusions from area-level coefficients, committing the ecological fallacy.
- Modeling sparse crime counts as Gaussian rates without addressing the count nature or small-area instability.
Frequently asked questions
How do I decide between a spatial lag and a spatial error model?
Start by fitting ordinary regression and testing the residuals for spatial autocorrelation with Moran's I. If dependence is present, the robust Lagrange-multiplier tests on the OLS residuals indicate which specification is more appropriate: the lag model when the outcome itself is spatially dependent (diffusion), the error model when only the disturbances are. Theory matters too — choose the lag model when you have a substantive reason to expect neighbors' crime to influence a unit's crime, and the error model when you suspect spatially patterned omitted variables.
Why does the spatial weights matrix matter so much?
The weights matrix W defines which units are neighbors and how strongly they are linked, and every spatial parameter is estimated relative to that structure. A contiguity-based W, a distance-based W, and a k-nearest-neighbor W can yield different ρ, λ, and even different coefficient estimates. Because there is no single correct choice, good practice grounds W in the substantive process, often row-standardizes it, and reports how results change under alternative neighbor definitions.
Can I use spatial regression with crime counts rather than rates?
The classical spatial lag and error models assume an approximately Gaussian outcome, so analysts often model log rates or transformed counts. For small areas with low counts, where rates are unstable and the normality assumption fails, count-based spatial models — spatial Poisson or negative-binomial regression, or Bayesian conditional autoregressive (CAR) models — are a more appropriate alternative.
Related methods
Sources
Anselin, L. (1988). Spatial Econometrics: Methods and Models. Kluwer Academic Publishers.
ISBN: 9789024737352Anselin, L., Cohen, J., Cook, D., Gorr, W., & Tita, G. (2000). Spatial analyses of crime. Criminal Justice 2000, 4, 213–262.
Open publication reference