Giter Club home page Giter Club logo

schelling-segregation-model-project's Introduction

Complex Systems Homework 2

Almudena Chapa, Dani Lazaro, Jon Ander Martin

April 12, 2021

In this project we will explore Thomas Schelling's model of segregation. In this model there is a certain number of agents, divided into 2 classes. The agents are happy if they have enough neighbors of their same class. The agents relocate using different policies, always looking for a spot where they are happier. In the following sections, we will present different relocation policies and study how each of them affects the distribution of the agents.

In this work, we will apply Schelling's model in a 40x40 bi-dimensional grid. To avoid edge effects, the boundaries of the grid are periodic. The population of agents is N = 1400, and their position is assigned randomly at the beginning of each simulation. Note that this leaves 200 empty locations, a 12:5% of the total space. An agent is “happy" if more than 3 out of its 8 neighbors belong to its same class. All the simulations are performed over 20 epochs. In every epoch, all the unhappy agents try to move in a random order. The simulation for each of the cases is run 30 times and the results are averaged.

schelling-segregation-model-project's People

Contributors

danilazaro97 avatar

Watchers

 avatar

Forkers

achapae

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.