Each household wants only 30% of its own kind, and after the moves 75% of its neighbors are
Call the share of its own kind that each household requires its "threshold." With the threshold at 30%, after the moves each household has on average about 75% of its own kind around it, more than twice what it asked for. These figures come from a computer simulation, whose rules are in the next paragraph. With a threshold of zero nobody moves, and each household has about 50% of its own kind around it; that is what random mixing looks like. At a threshold of 20%, the end result is about 57%; at 30%, about 75%; at 60%, about 96%. Raising the threshold from 20% to 30% asks for only 10 points more, yet the result jumps by nearly 20 points, because once a batch of people start moving, the chain reaction can't stop.
The rules of the simulation: a 30×30 grid, two kinds of residents in equal numbers, and 90% of the squares occupied. Each household looks at the eight squares around it; if the share of its own kind is below the threshold, it is unhappy and moves to a random empty square where it would be satisfied. Each threshold was run 5 times and the results averaged.
One household moves, and people on both the old street and the new one become unhappy
When a household moves away, its same-kind neighbors on the old street each lose one of their own kind nearby, so people who were only just satisfied drop below the threshold and have to move too. When the household moves onto a new street, the residents of the other kind there gain one neighbor unlike them, their share of their own kind falls, and they may leave as well. Every move pushes the next batch of people to move, until no one is unhappy; by then, each kind has gathered into blocks.
Set the threshold too high, and nobody can move
Raise the threshold to 70%, and an empty square with 70% of your own kind around it is also hard to find, because when people live mixed, each household has only about 50% of its own kind nearby. Unhappy people can't find an empty square that would satisfy them, so they have to stay where they are. The computed pattern stops close to random mixing: each household has about 54% of its own kind around it, and five or six hundred households stay in places they're unhappy with.
The model works best when people choose neighbors mainly by "what share of the people around me are my kind," and moving is easy, as with seats, market stalls and online communities. Where housing is locked in place by prices, mortgages and policy, and people can't move even when they want to, it explains only part of the story. Taking the result on the grid to mean that "real segregation comes from residents' own free choice" ignores the redlining of mid-20th-century America: banks and federal housing agencies drew lines around neighborhoods based on their racial and ethnic makeup, and restricted loans inside the lines.