ECON5149 Chap.2 Schelling Segregation as a First ABM
Schelling Segregation as a First ABM
Schelling Segregation as a First ABM works through the model the course uses to show emergence with very few moving parts. A city is a grid of cells holding households of two types plus some vacancies. Each household compares its own type with the occupied cells around it, forms a local similarity share, and relocates to an empty cell whenever that share falls below a tolerance threshold.
Nothing more is assumed, yet repeated relocations can sort the city far more sharply than any single household asked for. The chapter shows how to compute the share correctly, why empty cells leave the denominator, and how one departure lowers the share of same-type neighbours while raising it for the other type.
It then treats the threshold as an experimental parameter, explains path dependence across starting grids and move orders, and sets out the limits of the example: it isolates a mechanism and is not a full account of real residential patterns. The final part uses the example to introduce the eight-step workflow for building any ABM and the simple loop that most simulation code follows.
What this chapter covers
- 01
Grid, household types and empty cells
- 02
Local similarity share and the tolerance threshold
- 03
Interaction through neighbours' moves
- 04
The threshold as an experimental parameter
- 05
Path dependence across runs and move orders
- 06
What the model does not explain
- 07
Eight-step build workflow and the core simulation loop
Worked example · free
Compute a household's similarity share on the grid
- 2Occupied neighbours are 4 + 2 = 6, of which 4 share the household's type, so the share is 4/6, about 0.67.
- 1Because 0.67 is at least 0.6, the household is satisfied and stays.
- 1If a type A neighbour leaves, the share becomes 3/5 = 0.6, which still meets the weak inequality, so the household stays.
- 2If a type B household arrives instead, occupied neighbours rise to 7 and the share falls to 4/7, about 0.57, below 0.6, so the household becomes unsatisfied and moves.
Key terms
- Local similarity share
- The fraction of a household's occupied neighbouring cells that hold a household of its own type.
- Tolerance threshold
- The minimum similarity share a Schelling household accepts before it relocates to an empty cell.
- Path dependence
- Dependence of the state a simulation reaches on the route taken, such as the starting grid or the order of moves.
- Conceptual model
- The written specification of question, agents, rules, environment, schedule and outputs that exists before any code.
Schelling Segregation as a First ABM FAQ
Why are empty cells left out of the similarity share?
The share is defined over occupied neighbouring cells, so vacancies affect neither the count of similar households nor the total. This matters in practice because a neighbour leaving can raise or lower a household's share without the household itself doing anything, which is exactly how one relocation sets off another.
Does the Schelling model explain segregation in real cities?
No. Actual housing patterns also reflect income, the housing stock, discrimination, institutions, history, transport links, schooling and access to credit, none of which appear in the model. Its value is narrower: it shows that local preferences, movement and feedback can on their own produce strong aggregate sorting, so the right test is whether that isolated mechanism suits the question.
Why might two runs with the same threshold end differently?
Starting grids are random and the order in which households move can differ, so the system can settle into different arrangements. That is path dependence. A sound report therefore summarises the degree of sorting across many runs and does not present one final map as the model's answer.
Exam move
Start by drawing a small grid of your own on paper with two household types and a few vacancies, then compute the similarity share for three or four households by hand. Write the occupied count before you divide, because the most common slip is to put all eight neighbouring cells in the denominator.
Test each share against a threshold using greater-than-or-equal, and practise a case where the share lands exactly on the threshold so the weak inequality becomes automatic. Next, trace a departure: pick one unsatisfied household, remove it, and recompute the shares of every neighbour it leaves behind.
Record the direction of each change in a short sentence, since explaining why same-type neighbours lose and other-type neighbours gain is the heart of the interaction argument. Then rehearse the limits of the model in two sentences: what mechanism it isolates and what real-world factors it omits.
Finally, learn the eight-step workflow as a sequence you can reproduce without notes, paying particular attention to deciding outputs before coding, verifying before experimenting, and validating against the model's intended use. Link each step to the Schelling case so that you can illustrate it concretely.
If you have time, sketch the core loop in a few lines of MATLAB-style pseudo-code: pick a household, compute its share, move it if the share is below the threshold, record a sorting measure, repeat. That exercise connects the verbal model to the code skeleton the course uses in every lab.
Working through Schelling Segregation as a First ABM in ECON5149? Sia is AskSia’s AI Economics tutor — ask any ECON5149 Schelling Segregation as a First ABM question and get a clear, step-by-step explanation grounded in how ECON5149 is taught and assessed. Read this chapter free, then take your hardest questions to Sia.
ECON5119 Applied Time Series and Forecasting · ACCFIN5249 Investment Analysis and Asset Allocation