- Introduced by
- Jan Tinbergen (empirical); Anderson & van Wincoop (structural)
- Year
- 2003
- Type
- Structural econometric model of bilateral trade flows
- Family
- International trade econometrics
What does it do?
The gravity model of trade explains bilateral trade flows by analogy to Newton's law of gravitation: trade between two economies rises with their economic sizes and falls with the trade costs, such as distance, between them.
Jan Tinbergen applied an empirical version of this relation in his early work on trade flows, and Anderson and van Wincoop (2003) gave it a theoretical foundation in which bilateral trade depends on trade costs relative to each country's multilateral resistance to trade. The structural form is now widely used in empirical work on bilateral trade.
The intuition behind the method
Larger economies trade more, nearby economies trade more, and economies separated by distance or borders trade less; this regularity is what the gravity model captures. The structural insight is that the relevant quantity is not a bilateral trade cost taken in isolation but that cost relative to each country's multilateral resistance, its average trade frictions with all of its partners. A pair's trade therefore depends on the whole network of barriers that each partner faces. Regressions that omit these terms attribute to bilateral barriers effects that partly reflect the rest of the network, which is the omitted-variable problem Anderson and van Wincoop addressed. Their estimate that national borders reduce trade between industrialized countries by 20–50 percent is the best-known application of the framework.
History
Jan Tinbergen introduced the empirical gravity equation for trade, and for decades it was used largely without a theoretical foundation despite its strong fit. Anderson and van Wincoop (2003) derived a structural form from a CES demand system, introduced multilateral resistance, and applied it to McCallum's border puzzle, the problem named in the subtitle of their paper. Santos Silva and Tenreyro (2006) then showed that the equation should be estimated by Poisson pseudo-maximum-likelihood, because log-linear OLS is biased under heteroskedasticity and cannot use zero flows. Structural gravity is now a standard framework in empirical international economics.
When to use it
Use the gravity model when you want to explain or predict bilateral trade flows, or to estimate how trade-cost determinants such as distance, contiguity, common language, colonial ties, trade agreements, currency unions and borders affect trade. It is also applied to migration, foreign direct investment and other bilateral flows that depend on size and distance. For a structural interpretation, include exporter and importer fixed effects to control for multilateral resistance, and estimate by PPML to handle heteroskedasticity and zero flows. When policy variables change over time, panel data with pair fixed effects absorb time-invariant pair heterogeneity; time-varying endogeneity of policy variables then requires instruments or another identification strategy. Time-invariant bilateral variables such as distance cannot be estimated with pair fixed effects. Do not rely on a naive log-linear specification without these features when the aim is policy analysis, because its estimates are biased and not structural.
Limitations and considerations
- Naive specifications that omit multilateral resistance produce biased estimates of trade-barrier effects.
- Policy variables such as trade agreements are typically endogenous. Pair fixed effects absorb only time-invariant pair heterogeneity, so time-varying endogeneity requires instrumental variables or other identification strategies.
- The model describes bilateral aggregate flows and says nothing about which goods or firms drive them unless it is extended to sectors or firm-level data.
- Welfare interpretations depend on the assumed elasticity of substitution σ and on the CES demand structure.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Economic size and distance are consistently strong predictors of bilateral trade across country pairs, so the basic specification captures a stable pattern in the data.
- The structural version links its coefficients to the trade-cost and elasticity parameters of the underlying CES demand system, which allows counterfactual and welfare calculations; when ln t_ij is a single trade-cost term, σ can be recovered as one minus its coefficient.
- The same specification accommodates many bilateral trade-cost determinants and extends to migration, FDI and other bilateral flows.
- With exporter and importer fixed effects and PPML, the model can be estimated on widely available bilateral data while handling zero flows and heteroskedasticity.
Applications
- Estimating the trade-creating effects of free-trade agreements, customs unions, and currency unions such as the euro.
- Quantifying the trade impact of borders, distance, language, and colonial or institutional ties.
- Conducting counterfactual and welfare analyses of trade policy within the structural gravity framework.
- Modeling bilateral migration flows, foreign direct investment, and other size-and-distance-driven interactions.
- Forecasting bilateral trade and assessing trade potential between country pairs.
How it works
How it works
The original empirical gravity equation states that the value of trade X_ij from country i to country j is proportional to the product of their economic sizes, Y_i Y_j, and inversely proportional to the distance D_ij between them, scaled by a constant G. It fits trade data well in many applications, but it has no explicit theoretical foundation, so its coefficients cannot be read as structural parameters.
Formula
X_{ij} = G\,\frac{Y_i Y_j}{D_{ij}}Anderson and van Wincoop derive this form from a CES demand system. Trade depends on the sizes Y_i and Y_j relative to world output Y, and on the bilateral trade cost t_ij raised to the power 1−σ, where σ is the elasticity of substitution. The cost is divided by the product of the two multilateral resistance terms, Π_i and P_j, so the expression makes explicit that trade is governed by bilateral cost relative to country-specific resistance.
Formula
X_{ij} = \frac{Y_i Y_j}{Y}\left(\frac{t_{ij}}{\Pi_i P_j}\right)^{1-\sigma}The terms Π_i (outward) and P_j (inward) are multilateral resistance indices, which summarize a country's trade costs with all of its partners, weighted by partner size. They are defined implicitly by a system of equations that must be solved jointly. Because a country's trade with one partner depends on its frictions with every other partner, omitting these terms, as naive gravity does, biases the estimated effects of bilateral barriers.
Formula
\Pi_i^{1-\sigma} = \sum_j \left(\frac{t_{ij}}{P_j}\right)^{1-\sigma}\frac{Y_j}{Y}, \quad P_j^{1-\sigma} = \sum_i \left(\frac{t_{ij}}{\Pi_i}\right)^{1-\sigma}\frac{Y_i}{Y}In practice, the structural equation is estimated with exporter (η_i) and importer (θ_j) fixed effects, which absorb the multilateral resistance terms without solving the nonlinear system. Under the structural formula the exponent on the trade cost is 1−σ. When ln t_ij enters as a single trade-cost term, its coefficient β equals 1−σ, so σ = 1−β. With several trade-cost components, the coefficient on each component is (1−σ) times that component's weight in ln t_ij. Counterfactual and welfare results depend on this estimate of σ. Santos Silva and Tenreyro showed that log-linearizing the equation and estimating it by OLS is biased under heteroskedasticity, because of Jensen's inequality, and that OLS on logs also drops zero-trade observations. They therefore recommend estimating the multiplicative form directly by Poisson pseudo-maximum-likelihood (PPML).
Formula
X_{ij} = \exp\!\bigl(\beta_0 + \eta_i + \theta_j + \beta'\ln t_{ij}\bigr)\,\varepsilon_{ij}Common pitfalls
- Estimating the log-linearized equation by OLS. Under heteroskedasticity this is biased by Jensen's inequality, and it silently drops all zero-trade observations; PPML is the usual correction.
- Omitting exporter and importer fixed effects, which leaves multilateral resistance in the error term and biases the distance and barrier coefficients.
- Reading cross-sectional trade-agreement coefficients as causal without pair fixed effects to absorb time-invariant bilateral heterogeneity.
- Using a remoteness index as a crude stand-in for multilateral resistance when exporter and importer fixed effects are feasible.
- Including pair fixed effects while trying to estimate distance, contiguity, common language or colonial ties. Pair fixed effects absorb all time-invariant bilateral variables, so these coefficients cannot be identified; estimate them without pair fixed effects or use a time-varying alternative.
Frequently asked questions
What is 'multilateral resistance' and why does it matter?
Multilateral resistance is a country's trade barrier with all of its partners, captured by the outward (Π_i) and inward (P_j) price indices in the structural gravity equation. Trade between two countries depends on their bilateral cost relative to these multilateral terms, so a bilateral barrier does not have the same effect in every country pair. Anderson and van Wincoop showed that omitting these terms, as earlier gravity regressions did, biases the estimated effects of distance and borders. This is why exporter and importer fixed effects are now used to control for them.
Why estimate gravity by PPML instead of log-linear OLS?
Taking logs of the multiplicative gravity equation and running OLS is biased when the error is heteroskedastic. By Jensen's inequality, the expectation of the log differs from the log of the expectation, so OLS on logs can give biased elasticities. Log-linear OLS also cannot use observations with zero trade, which are common. Santos Silva and Tenreyro (2006) showed that estimating the equation in its multiplicative form by Poisson pseudo-maximum-likelihood is consistent under heteroskedasticity and naturally includes zero flows.
How does the gravity model relate to general-equilibrium trade analysis?
Structural gravity is the partial-equilibrium estimating equation implied by a range of trade models with CES-type demand, such as Armington/CES models. The estimated trade-cost elasticities and the multilateral resistance system can be embedded in a general-equilibrium framework to run counterfactuals, such as the welfare effects of a new trade agreement. This connects the econometric estimates directly to computable general equilibrium analysis.
Related methods
Sources
Anderson, J. E., & van Wincoop, E. (2003). Gravity with gravitas: A solution to the border puzzle. American Economic Review, 93(1), 170–192.
Open DOI referenceSantos Silva, J. M. C., & Tenreyro, S. (2006). The log of gravity. The Review of Economics and Statistics, 88(4), 641–658.
Open DOI reference