MemoSimagent-based modeling studio

Memos/Memo 01 · Social sciences · 96 runs

Does a 30% preference turn a mixed neighbourhood into two?

Eight thresholds, 96 headless runs in MemoSim 1.1.4. The share of same-group neighbours moves from 57% with no preference to 90% at 0.7 — and no run had settled when the clock stopped.

The claim under test. Thomas Schelling's result is that a mild individual preference — to have some neighbours like yourself — is enough to sort a mixed population into sharply separated clusters. The mechanism does not require anyone to prefer segregation; it only requires people to move when they are uncomfortable. The model in the MemoSim library states this and is labelled illustrative and uncalibrated.

The model

1,089 residents, one per patch on a 33×33 wrapping grid, in two groups. A resident is satisfied when at least min-fraction of its occupied eight neighbours share its group; otherwise it moves to a random empty patch. We measured the mean share of same-group neighbours, which the original model did not report — one read-only reporter was added, the move rule was left alone.

The experiment

Eight values of min-fraction (0, 0.1 … 0.7), 12 repetitions each, 150 ticks per run, run headless in MemoSim 1.1.4. That is 96 runs. The raw table is published with this Memo.

figure
50%60%70%80%90%100%00.10.20.30.40.50.60.7min-fraction — the share of same-group neighbours a resident demandsmean share of same-group neighbours
Fig. 1 — Mean share of same-group neighbours against the preference threshold. Points are means of 12 runs; bars are one standard deviation.
min-fractionmean same-group shares.d.as a share
00.568± 0.00857%
0.10.584± 0.01458%
0.20.589± 0.01059%
0.30.637± 0.01064%
0.40.678± 0.01168%
0.50.732± 0.01773%
0.60.828± 0.01383%
0.70.904± 0.01490%

What the runs show

  1. The baseline is already sorted. At a threshold of zero nobody moves, and yet 57% of a resident's neighbours already share its group. Any claim about "segregation caused by preferences" has to be measured against that number, not against 50%.
  2. The response is monotone and tight. 64% at 0.3, 90% at 0.7, rising at every threshold, with a standard deviation of about one to two points. The mechanism is not noisy; the outcome is orderly, which is exactly what makes the result teachable.
  3. The last step is the steepest. Between 0.5 and 0.7 the mean rises by 17 points, more than any other interval. High demands do not just add a little sorting; they remove the possibility of a mixed neighbourhood.

What it does not show

  • No equilibrium. All 96 runs hit the 150-tick time limit still moving. The published averages are the state at tick 150, not a settled state, and the Memo reports them that way.
  • No calibration. Two groups, equal size, no prices, no distance, no housing stock. This is a mechanism, not a city.
  • No seeds. The model fixes no random seed, so repeating the sweep reproduces the distribution and not the digits. The s.d. column is the honest summary.
  • No causality about policy. Nothing here says a quota or a subsidy would produce a given outcome.

Why we published it

Because it is the smallest complete example of what a Memo is: a claim anyone can restate, a model anyone can open, an experiment anyone can re-run, and a limit stated above the finding rather than buried under it. The number that surprised us was the baseline, not the top of the curve.

Files

Reproduce it

Three things ship with this Memo: the model copies that were run, the raw results, and the exact command.

java -cp '*' org.nlogo.headless.Main \
  --model 01-segregation-0p3.nlogox \
  --experiment segregation-threshold-sweep --table -

Each file holds one threshold, because this engine's experiment format does not accept a value set. The README lists all eight commands.

Cite this Memo

Citation

MemoSim (2026). Memo 01 — Does a 30% preference turn a mixed neighbourhood into two? memosim.com/memos/01-segregation

Method notes and the ODD description for the model are on the research page.