University of Glasgow · FACULTY OF ECONOMICS

ECON5149 Chap.2 Schelling Segregation as a First ABM

- one subject, every graph, every model, every mark
7 Chapters4-page Bible
Our own words - no uploaded lecturer files
Updated for this semester
Chapter 2 of 11 · ECON5149

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.

In this chapter

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

Q [6 marks]. A type A household's eight neighbouring cells contain 4 type A households, 2 type B households and 2 empty cells, and the tolerance threshold is 0.6. Find its similarity share and decide whether it stays. Then recompute the share if one type A neighbour leaves, and separately if a type B household moves into one of the empty cells. This mark allocation is set for self-assessment and is not published by the University.
Each square is a cell of the city grid, coloured by household type or left white when empty, and the dashed frame outlines the eight cells around household i.Each square is a cell of the city grid, coloured by household type or left white when empty, and the dashed frame outlines the eight cells around household i. Three of its five occupied neighbours share its type, so its similarity share is 0.6.type Atype Bempty cellhousehold isame-type neighbours: 3occupied neighbours: 5si = 0.6
Each square is a cell of the city grid, coloured by household type or left white when empty, and the dashed frame outlines the eight cells around household i. Three of its five occupied neighbours share its type, so its similarity share is 0.6.
  • 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.
The share starts at 4/6 and the household stays; a same-type departure leaves it exactly on the threshold, still satisfied, while an other-type arrival pushes it to 4/7 and triggers a move. The mark allocation is an original practice weighting, not a university marking scheme.
Sia tip — Write the occupied count first and drop empty cells from the denominator before dividing, then test the share with greater-than-or-equal.
Glossary

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.
FAQ

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.

Study strategy

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.

A+Everything unlocked
Unlocks this Bible + all 26 of your subjects at University of Glasgow, plus 1,000+ more Bibles across the AskSia library.
Sia - your ECON5149 tutor, unlimited, worked the way the exam marks it
The full 4-page Bible + practice bank with worked solutions
Chrome extension - sync your LMS so Sia knows your deadlines
Bilingual EN / Chinese on every Bible and every Sia answer
$0.99 Trial
30-day money-back · cancel in one tap · how it works