Schelling segregation
About this app
A 3D city of two groups on a grid with vacant lots. Anyone with fewer like neighbours than the tolerance threshold requires moves to the nearest suitable vacant lot. Metrics and a chart show that even at a threshold of one third the share of like neighbours rises from about 50 % to about 70 %.
Thomas Schelling’s model
Around 1970 the economist Thomas Schelling used a thought experiment to show how mild individual preferences can produce strong spatial segregation. Two groups live on a grid with some empty plots. Anyone with fewer similar neighbours among their up to eight neighbours than a tolerance threshold requires is unhappy and moves. Even with a threshold of one third, at which everyone accepts a majority of the other group around them, the average share of similar neighbours rises from about 50 % to about 70 %. The pattern of the whole city cannot simply be read from the motives of individuals.
What the app shows
A city of houses with gabled and flat roofs stands on a grid, viewed from an angle, from above or at street level. Unhappy residents are marked with a ring and in each round move to the nearest empty plot where they would be content. You set the tolerance threshold, the share of each group, the vacancy rate and the grid size. Readouts show the average share of similar neighbours, the share of unhappy residents and the dissimilarity index D over 5 × 5 blocks. A chart plots all values over the rounds, with a dashed line for the previous run.
Try it yourself
Set the threshold to about one third and run the simulation until equilibrium. Note how far the share of similar neighbours rises, even though everyone would accept a mixed neighbourhood. Then raise the threshold step by step and compare the runs in the chart. Change the vacancy rate: with few empty plots, unhappy residents struggle to find a suitable place. Click a house to see its neighbourhood and its share of similar neighbours. The model leaves out rents, income and discrimination and does not explain real segregation on its own.
Frequently asked questions
- What does Schelling’s segregation model show?
- Schelling’s model shows that strong spatial segregation can arise even when individuals have only a weak preference for similar neighbours. Residents with too few similar neighbours move, and the sum of these moves separates the whole city. It is an early example of agent-based modelling.
- What is the dissimilarity index D?
- The dissimilarity index D measures how unevenly two groups are distributed across areas. It ranges from 0 (every area equally mixed) to 1 (completely separated) and gives the share of one group that would have to move to reach an even distribution. With small areas, D is above 0 even for a random distribution.
- Does the Schelling model explain real-world segregation?
- Not on its own. The model is a thought experiment and leaves out income, rents, the housing market, discrimination and urban planning. It only shows that strong separation does not require strong aversion, and that the pattern of a city does not reveal its residents’ attitudes directly.
- What can I adjust in the Schelling app?
- You set the tolerance threshold, the share of the two groups, the vacancy rate and the grid size, then play the moves round by round. Readouts and a chart show the share of similar neighbours, unhappy residents and the segregation index. Clicking a house shows its neighbourhood.
Subject: Sociology & networks
More from Sociology & networks
A VisuApp by heyprof: interactive, free in your browser, no sign-up. What is a VisuApp? · All apps