Apps

Schelling's town

How mild preferences add up to a strongly divided town

Round 0

What they wanted, what they got

30%
similar neighbours each household needs to be happy
→
50%
similar neighbours they actually have, on average

0%want to move
0%have no neighbours of another colour
0moved last round
0unhappy but stuck

How similar is each household's neighbourhood?

nowat the startwanted

Over time

similar neighbours (average)want to move

Inspect a household

Click any house in the town to see its neighbourhood and why it is happy or not.

About the model

The idea

In 1971 the economist Thomas Schelling asked a simple question. If people have only a mild preference for living near others like themselves, what happens to a whole town? He was thinking about racial segregation in US cities, but the model applies to any visible difference, which is why the households here are simply blue and orange. He worked it out with coins on a chessboard. The surprising answer is that mild individual preferences can produce a strongly divided town, which nobody intended and nobody necessarily wants.

How the model works

Show the maths
similarity of household i: f_i = (same-colour neighbours) / (occupied neighbours) happy if f_i ≥ θ (θ = the "happy if at least" slider) average similarity S = mean of f_i over all households with any neighbours

With 8 neighbours the possible shares are 0, 1/8, 2/8 and so on, so the threshold behaves in steps. For example, 25% means at least 2 of 8, and 30% means at least 3 of 8. That is why the outcome jumps between those two settings.

What it does (tested in this model)

For a 40 × 40 town with 10% empty homes and two equal groups, averaged over several runs:

Happy if at least20%25%30%50%60%70%
Average similar neighbours at the end57%57%74%85%97%99%
No other-colour neighbours at all6%6%26%51%86%96%

A random town starts at about 50%. So households that would happily be outnumbered 5 to 3 end up, on average, in neighbourhoods that are three-quarters their own colour.

The advanced options

OptionWhat we found in this model
Mixed preferencesWith most households needing only 20%, the town ends at 57% similar. Make 10% of households intolerant (needing 75%) and it reaches 65%; with 20% intolerant, 71%. A small intolerant minority pushes everyone apart.
Unequal groups (80/20, threshold 30%)At the start, about 79% of the minority are unhappy and none of the majority are. With random moves the minority stays largely unhappy for a long time: the empty homes are mostly in majority areas.
Diversity seekersEveryone's ideal is a 50/50 neighbourhood. If being outnumbered feels no worse than being in the majority, the town stays mixed (about 49% similar). If being outnumbered feels twice as bad, the town drifts to about 69% similar, and more households end up dissatisfied than at the start. This reproduces the key result of Pancs and Vriend (2007): segregation can emerge even when everyone prefers integration. In our tests it needs that asymmetry. A simple "leave if too similar or too different" rule did not produce it.
Choosy moversSimilar final pattern, reached much faster (about 7 rounds instead of 12–14).
RestlessnessA little restlessness (2% per round) makes the town more segregated (about 86% vs 74%). Random moves shake households out of awkward mixed pockets, and clusters grow. More restlessness (10%) keeps things churning at about 74%.
Move only nearbySlower and somewhat less segregation (about 70%). With very few empty homes (3%), some unhappy households are stuck with nowhere to go.

What the model does and does not show

It shows that strong segregation can arise from mild preferences, without anyone wanting it. It does not show that real segregation happens this way. Housing costs, discrimination, history and policy (for example, mortgage redlining in the United States) all play large roles. Researchers use models like this to ask which mechanisms are enough to produce the patterns we see, and then test them against data.

References