- Introduced by
- George Kingsley Zipf (formalized); analogy to Newton's law of gravitation
- Year
- 1946
- Type
- Spatial-interaction regression model for migration flows
- Family
- Spatial interaction / gravity models
What does it do?
The gravity model of migration expresses the volume of movement between two places as proportional to the product of their populations (their 'masses') and inversely related to the distance between them, by direct analogy with Newton's law of universal gravitation.
George Kingsley Zipf gave it a testable form for intercity movement in 1946. It is widely used in human geography to model migration, commuting and other spatial-interaction flows.
The intuition behind the method
Larger places tend to attract and send more people, and distant places exchange fewer. In the basic form with mass exponents of one, doubling either city's population doubles the flow between them. The distance exponent sets how quickly flows fall as separation grows. Estimating the exponents from data shows how strongly population scales flows and how sharply distance deters them.
History
The model rests on the analogy between human movement and the law of gravitation. George Kingsley Zipf gave this analogy a specific, testable form in his 1946 American Sociological Review paper on the P1 P2 / D hypothesis, which relates intercity movement of persons to the product of city populations divided by distance. Constrained extensions that reproduce known origin and destination totals now form part of the broader spatial-interaction family, of which the migration gravity model is the canonical unconstrained member.
When to use it
Use the gravity model when you have origin–destination flow data, such as migrants, commuters, trips or trade, together with measures of origin and destination size and the distance or travel cost between places. You want to explain or predict those flows and quantify distance decay. It is a sensible first model for inter-regional migration and, in its constrained forms, can be used to estimate flows when only marginal totals are known. Avoid it when flows are driven mainly by policy, social-network or chain-migration effects that mass and distance do not capture. It is also a poor fit when the independence-of-irrelevant-alternatives property implied by the simple multiplicative form is clearly violated; competing-destinations and discrete-choice models are then preferable.
Limitations and considerations
- The Newtonian analogy is descriptive, not mechanistic: it does not model the individual decision process behind a move.
- Simple unconstrained forms ignore intervening opportunities and competing destinations, so they can misallocate flows in dense settlement systems.
- Distance is a crude proxy for the true cost, time, and information barriers that deter migration.
- Log-linear estimation cannot use zero flows and can be sensitive to heteroskedasticity on the log scale, which is a common reason to prefer Poisson-family estimators.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Parsimonious: a small number of parameters, interpretable as mass elasticities and a distance-decay exponent, describe the main structure of origin–destination flows.
- Parameters are directly interpretable as elasticities, so estimates can be compared across studies and regions that use the same measures.
- Extended with constraints (production-constrained, attraction-constrained and doubly constrained forms) so that predicted flows can reproduce known origin and destination totals.
- Estimable with standard count-regression tools, which makes the model straightforward to fit once flows, populations and distances are assembled.
Applications
- Forecasting inter-regional and international migration streams for population projection and planning.
- Modelling journey-to-work commuting flows in transport and land-use planning.
- Estimating retail catchments and trade-area patronage in economic geography.
- Predicting bilateral trade volumes between countries in international economics.
- Allocating unknown origin–destination flows from known marginal totals using doubly constrained variants.
How it works
How it works
The expected flow M_ij from origin i to destination j is a constant k times the origin population P_i raised to a power α, times the destination population P_j raised to a power β, divided by the distance D_ij raised to a power γ. The exponents are free parameters: α and β describe how flows scale with the size of each place, and γ, the distance-decay exponent, describes how sharply interaction falls with separation.
Formula
M_{ij} = k\,\frac{P_i^{\,\alpha} P_j^{\,\beta}}{D_{ij}^{\,\gamma}}Zipf's P1 P2 / D hypothesis, as named in the title of his 1946 paper on the intercity movement of persons, relates the movement between two cities to the product of their populations divided by the distance between them. In the parameterization above, this corresponds to mass exponents and a distance exponent that are each equal to one, as the hypothesis is commonly summarized. It is the form the gravity model of migration takes in its simplest version.
Formula
M_{ij} \propto \frac{P_i P_j}{D_{ij}}Taking logarithms turns the multiplicative gravity form into a linear equation in the logged masses and logged distance. Ordinary least squares on log flows then gives α and β directly as coefficients on the logged origin and destination populations. The coefficient on log distance equals minus γ, so γ is recovered by reversing its sign. This is the classic estimation route, but it cannot use zero flows, which have no logarithm.
Formula
\ln M_{ij} = \ln k + \alpha \ln P_i + \beta \ln P_j - \gamma \ln D_{ij} + \varepsilon_{ij}Because migration flows are non-negative counts with many zeros, modern practice often estimates the gravity model as a Poisson (or negative-binomial) regression with a log link. This handles zero flows without dropping them and respects the count nature of the data. Unlike log-linear OLS, Poisson estimation models the counts themselves rather than their logarithms, so zero flows remain in the estimation sample.
Formula
M_{ij} \sim \text{Poisson}(\mu_{ij}),\quad \ln \mu_{ij} = \lambda + \alpha \ln P_i + \beta \ln P_j - \gamma \ln D_{ij}Common pitfalls
- Dropping zero-flow origin–destination pairs to permit log-linear OLS, which discards information and biases the distance coefficient.
- Using straight-line (great-circle) distance when travel time or network distance is the operative deterrent, distorting the estimated decay.
- Conflating population with the relevant 'mass': labour-market size, income, or amenities may be the true attractor for migration.
- Ignoring spatial autocorrelation and the structure of the flow network, which violates the independence assumptions of naive estimation. Moran's I computed on the model residuals is a common check for remaining spatial dependence.
- Treating the simple multiplicative form as adequate without checking for competing destinations. Destination fixed effects or a competing-destinations specification are standard responses when the independence-of-irrelevant-alternatives property looks implausible.
Frequently asked questions
How is the gravity model of migration different from a general spatial interaction model?
The gravity model is the canonical, unconstrained member of the broader spatial-interaction family. Spatial-interaction modelling generalizes it with balancing factors and constraints (production-constrained, attraction-constrained and doubly constrained forms) so that predicted flows reproduce known origin or destination totals. The migration gravity model is the gravity form applied to people moving between places, with population as the mass term.
Why use Poisson regression instead of taking logarithms?
Migration flow tables contain many zero cells, which have no logarithm and are dropped by log-linear OLS. The log transform can also distort coefficient estimates when the error variance depends on the mean. Poisson pseudo-maximum-likelihood estimation models the counts directly and retains zero flows, which is why it is commonly used for gravity models. Robust (sandwich) standard errors are commonly reported with Poisson estimates, and negative-binomial regression is an alternative when the counts are overdispersed.
What does the distance-decay exponent tell me?
The exponent γ measures how sharply interaction falls with distance. A larger γ means flows drop off faster, indicating that distance is a strong deterrent, which may be the case for short, cost-sensitive moves. A smaller γ means interaction is less sensitive to separation, which may be the case for long-range moves with better information. Comparing γ across flow types or periods shows how the friction of distance changes.
Related methods
Sources
Zipf, G. K. (1946). The P1 P2 / D hypothesis: On the intercity movement of persons. American Sociological Review, 11(6), 677–686.
Open DOI referenceIsard, W. (1960). Methods of Regional Analysis: An Introduction to Regional Science. MIT Press.
ISBN: 9780262090032