MemoSimagent-based modeling studio

Library/Social sciences

Residential segregation

This is an illustrative, uncalibrated educational model of residential segregation, inspired by Thomas Schelling's classic 1971 model.

Run in your browser Download .nlogox Get MemoSim verified in NetLogo Web · or open in MemoSim
Read the assumptions first. The model itself says it is illustrative and uncalibrated. Treat its output as a demonstration of a mechanism, not an estimate of a real system.

Overview

This is an illustrative, uncalibrated educational model of residential segregation, inspired by Thomas Schelling's classic 1971 model. It shows how small individual preferences for similar neighbors can produce large-scale spatial segregation.

Mechanism

  • The world is a 33×33 toroidal grid of patches.
  • Two groups of residents (red and blue) are placed randomly, one per patch.
  • Each resident is satisfied if at least min-fraction of their occupied 8-neighbor patches contain a resident of the same group.
  • Each tick, every unsatisfied resident moves to a random empty patch (with probability move-prob).
  • The process repeats until an absorbing state (all residents satisfied) is reached.

Controls

  • min-fraction (0–1): the minimum fraction of same-group neighbors a resident requires to be satisfied. Higher values produce stronger segregation.
  • move-prob (0–1): the probability that an unsatisfied resident actually moves each tick. 1 means all unsatisfied residents move every tick.

Monitors and Plots

  • Satisfied residents: number of residents currently satisfied.
  • Segregation index: a measure of how segregated the population is (0 = fully mixed, 1 = fully segregated).
  • Segregation over time: plot of the segregation index across ticks.

Assumptions and Limitations

  • Residents are identical within their group; no income, race, or other attributes are modeled.
  • Movement is random (no preference for specific locations).
  • The world is small and bounded; results may not scale to real cities.
  • The model is illustrative only and is not calibrated to any real-world data. It is a teaching tool for understanding how local preferences can generate global patterns.

Category

Social Sciences

Field
Social sciences
Model file
Residential-segregation-c2da2c3d9a88.nlogox · 40 KB
Controls
min-fraction, move-prob
Reporters
satisfied?, segregation-index, fully-segregated?
Procedures
setup, go, satisfied?, segregation-index, fully-segregated?
Experiment
none pinned in this file
Documentation
6/7 · 257 words in the Info tab

This model is the subject of Memo 01 — Does a 30% preference turn a mixed neighbourhood into two?, where its experiment, repetitions and raw CSV are published.