DEV Community

Kartikeya Sharma
Kartikeya Sharma

Posted on

Geographical Version of Schelling's segregation Model built with Python!

Check out this desktop application I have built with PyQt5 and PyQtGraph https://github.com/kartikeyas00/geo-schelling

It allows to run the simulation for Schelling's segregation model on a real map. In this case, they are all 50 American states.

Why I have built this app?
The main motivation was that in lots of agent based modeling cases and especially in Schelling's model of segregation, geological or geographical version is not present or when they are present they are not very well implemented. I wanted to see the Schelling's model simulating on a real geography and the outcomes of the simulation as the model is based for real world. After implementing the model and visually seeing the result, I was able to conclude thaat how segregation can happen in the real world (Obviously if we leave certain factors alone) based on the Shelling's approach.

Top comments (0)