- Introduced by
- Thomas Schelling and Robert Axelrod (foundational contributions, 1970s–1990s)
- Year
- 1970s–1990s (formalized as a field)
- Type
- Computational simulation method
What does it do?
Agent-based modeling (ABM) is a computational simulation method in which the modeller specifies autonomous agents, such as individuals, firms, or cells, together with the rules by which they act and interact with each other and their environment.
Running these rules shows how system-level patterns emerge from local interactions, patterns that cannot be read directly from any single agent's rules. The method is associated with the work of Thomas Schelling and Robert Axelrod in the 1970s–1990s.
The intuition behind the method
Consider a city where traffic jams form even though no individual driver intends to cause one. ABM reproduces this kind of emergence by letting you write the rules each agent follows, such as how it perceives its surroundings, decides, and acts, and then observing the population-level outcome. The global pattern is not programmed in directly; it arises from the interactions. ABM is therefore most useful when the phenomenon of interest lives at the system level but the mechanisms operate at the individual level.
History
ABM's intellectual roots are usually traced to Thomas Schelling's work on residential segregation and to Robert Axelrod's work on cooperation. Axelrod's 1997 book The Complexity of Cooperation collects essays that apply agent-based modelling to competition, collaboration, the emergence of norms, and errors in perception. Uri Wilensky's NetLogo platform is among the tools used to build such models.
When to use it
Choose ABM when the phenomenon you study arises from heterogeneous individual-level interactions, and when differences between agents, spatial structure, or path-dependent local interactions are part of the mechanism. Examples include social dynamics, epidemic spread through contacts, and market microstructure. Do not choose it when the system can be described adequately by aggregate differential equations; a system dynamics model is then usually simpler. It is also the wrong tool when the question concerns queues or flow processes, for which discrete-event simulation is more natural. No minimum empirical sample size is required, but each agent rule must be defensible from theory or prior data, and the model must be run enough times to see the output distribution.
Limitations and considerations
- Results are only as credible as the agent rules; arbitrarily chosen rules yield outcomes that cannot be read as evidence about the real system.
- Because outputs are stochastic, characterising the outcome distribution reliably requires many replications, which can make computation expensive.
- Validation is difficult: different combinations of rules and parameters can reproduce the same observed pattern (equifinality), so matching data does not establish the mechanism.
- Outputs are simulated distributions rather than closed-form expressions, which makes analytical reasoning and communication harder than with equation-based methods.
- The parameter space grows quickly with the number of agent types and rules, so systematic exploration becomes costly.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Emergent system-level patterns are produced by the simulation rather than assumed, so the model can test whether a proposed set of individual rules is sufficient to generate an observed macro-level pattern.
- Each agent carries its own state, so differences between individuals, including minorities that follow different rules, are represented directly instead of being averaged away.
- Spatial structure and path dependence enter through local interactions; Axelrod (1997) uses agent-based models in this way to study cooperation, the emergence of norms, and errors in perception.
- Agents are defined by stated rules rather than fitted to a sample, so the model can be built where empirical data are scarce, but each rule still needs a theoretical or empirical basis.
- Outputs are distributions across stochastic replications, so uncertainty in the emergent outcome is visible rather than hidden in a single trajectory.
Applications
- Epidemiology: modelling epidemic spread at the individual contact level to compare intervention strategies.
- Market simulation: representing heterogeneous traders to study price formation and volatility in financial markets.
- Social dynamics: studying residential segregation, opinion dynamics, and norm diffusion in populations.
- Ecology: modelling predator-prey dynamics and species interactions in spatially explicit landscapes.
- Healthcare policy: simulating patient flows and resource allocation under different organisational rules.
- Economics and finance: agent-based models of supply-chain and interbank networks show how a local default can propagate through linked firms and banks into avalanches of bankruptcy, which can inform the analysis of systemic risk and the design of regulation (Predictive Econometrics and Big Data, 2018).
How it works
How it works
Each agent type is given state variables (its attributes) and behavioural rules that govern how it perceives, decides, and acts. The rules are the model's assumptions, so each needs a stated basis in theory or empirical evidence. Distinct agent types, such as susceptible and infected individuals in an epidemic model, let the model represent different classes of actors.
The environment is configured: its spatial structure (grid, network, continuous space, or none), any shared resources, and the perception or communication range that determines which other agents each agent can observe. These choices fix which interactions are possible, so they affect results directly.
Agents are placed in the environment and their initial states are set, either from empirical data or from calibrated distributions. Random seeds are fixed so that runs can be reproduced. If observational data are available, Approximate Bayesian Computation (ABC) can be used at this stage to calibrate parameters against observed outcomes.
The model advances in discrete time steps. At each step agents apply their rules, possibly in randomised order so that the update sequence does not create artefacts, and then update their states and interact with neighbours or shared resources. Because each run is stochastic, many replications are needed to characterise the distribution of outcomes rather than a single trajectory.
Key system-level variables are summarised across all replications using means, variances, and distributional properties, and results are reported as distributions rather than point estimates. Sensitivity analysis tests whether the emergent patterns persist when agent rules and parameter values change, and simulated output is compared with observed data where it is available.
Common pitfalls
- Running too few replications. With a small number of runs the output distribution is poorly estimated and an apparent pattern may be noise. Check whether summary statistics stabilise as runs are added; if computation limits this, and the question is aggregate, a system dynamics model may be a better fit.
- Writing agent rules without a stated rationale. Each rule should be linked to a behavioural argument or to data; otherwise the model expresses assumptions rather than describing the system.
- Reporting only the mean trajectory. ABM outputs are stochastic, so variance and distributional summaries must accompany any central result.
- Treating a good fit as validation. A model can reproduce observed aggregate patterns through compensating errors, so structural checks and out-of-sample prediction are needed.
- Ignoring the warm-up period when the starting configuration is arbitrary; early-run behaviour reflects initial conditions rather than the dynamics being studied.
Frequently asked questions
How is ABM different from system dynamics?
System dynamics models a system using aggregate stocks, flows, and feedback loops described by differential equations. It treats the population as a homogeneous whole and tracks average behaviour over time. ABM models each individual agent separately, allowing heterogeneity, local spatial interactions, and path-dependent behaviour. Choose system dynamics when aggregate feedback structure is the main interest and agent heterogeneity does not matter; choose ABM when individual differences and local interactions are the mechanism you want to study.
How many replications do I need?
The output of an ABM is a distribution across stochastic runs, not a single deterministic trajectory. Add replications until the summary statistics and their intervals are stable when more runs are added; the number needed depends on how variable the model is. Reporting a single run, or a small handful, as representative is a common and serious error.
How do I validate an agent-based model?
Validation has several layers: structural validation (are the rules consistent with known behaviour?), pattern-oriented validation (does the model reproduce multiple observed empirical patterns simultaneously, not just one?), and predictive validation (do out-of-sample predictions hold?). Reproducing a single aggregate statistic is not sufficient evidence that the model is correct.
What if I do not have empirical data to calibrate agent parameters?
Theory-grounded rules can be used directly when data are absent, but the model should then be presented as exploratory rather than predictive. Where partial data exist, Approximate Bayesian Computation (ABC) provides a principled framework for estimating parameter distributions by comparing simulated summary statistics to observed ones. Sensitivity analysis is always required to show which parameters matter most.
Related methods
Sources
Axelrod, R. (1997). The Complexity of Cooperation: Agent-Based Models of Competition and Collaboration. Princeton University Press.
Open DOI referenceWilensky, U. & Rand, W. (2015). An Introduction to Agent-Based Modeling: Modeling Natural, Social, and Engineered Complex Systems with NetLogo. MIT Press.
ISBN: 978-0262731898Predictive Econometrics and Big Data (Studies in Computational Intelligence 753) (2018)