Modelling society segregation with Schelling’s model

Photo by Andrea Leon on Unsplash

When thinking about math models, people usually think about some kind of abstract formula on a board or a sheet, nothing really near to everyday life. But you know what? They’re probably wrong.

Being a tech community member is a great experience and tech communities are a great way to describe a simple sociological phenomenon called “sorting”.

“Sorting” is a kind of behavior respecting which people just tend to spend their time with similar people (it can be a matter of economical status, ideology etc…) producing “segregation”. Schelling, an economist, first developed a model to formalize it.

According to Schelling’s model, people define a threshold (the percentage of people similar to them they want around) and just move away if the percentage of alike-people surrounding them is below that threshold. While people keep moving away, they induce other people to do the same in a “cascade effect” because their decisions affect others environment.

In this model, you have a percentage of unhappy people who want to change their location: they do this on a random basis and the algorithm just stops when the convergence to a percentage of 0 unhappy people is reached.

Now, an easy way to visualize how the model works is to use NetLogo, a simulation software. While running the simulation, NetLogo also keeps track of the percentage of unhappy people.

Setting up the simulation just produces a grid with a predefined density occupancy of people (90% in the following image).

Even if it is not explicitly pointed out, snooping into NetLogo simulation code it is possible to observe that in this “world” unhappy people who want to move away are marked with an “X”.

if visualization = "square-x" [
ifelse happy? [ set shape "square" ] [ set shape "X" ]
]

Clicking the “go” button, the simulation starts until convergence is reached.

Playing a bit with the “%-similar-wanted” parameter, you can observe that a very definite threshold for segregation emerges. In particular, setting the threshold to 30% you obtain a pretty “segregated” society.

If you think about it, this result is quite counterintuitive: if someone only wants a 30% of people-alike around you can say that this person is pretty tolerant. Despite the micro-behaviour, the observable macro-behaviour leads to a really different conclusion (and that conclusion is somewhat…surprising!).

References:

--

--

--

Full-time Human-computer interpreter. Opinions are my own.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Top Data Science Interview Questions and Answers

DATA LITERACY — a must have skill for all

Compressing unsupervised fastText models

Building a similarity graph with Neo4j’s Approximate Nearest Neighbors Algorithm

Overcoming the Drawbacks of Linear Regression

Covid-19 in North Carolina at the County Level

Exploring large image datasets with Facets Dive

Model-based micro-data reinforcement learning:

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Juna Salviati

Juna Salviati

Full-time Human-computer interpreter. Opinions are my own.

More from Medium

CHANCE(ASA)-Demystifying Gambler Fallacy via Transitional Matrix/Markov Matrices part 1

Are A and B Independent?

Probability Theory

The beauty of the Bayes Rule