A Dash web application with simulation of evolution of Q-voter model with two kinds of agent behaviours:
- with anti-conformity,
- with independence.
Q-voter model is a model of binary opinion dynamics (agent opinion is either
However, some we can introduce some agent behaviours:
-
anti-conformity — if the neighbours' opinions are consistent, then the agent adopts the opposite opinion with some probabilty
$p$ , -
independence — the agent becomes independent with probability
$p$ and flips its opinon with probability$f$ .
In this app q-voter model evolution is simulated on a square lattice with periodic boundary conditions. There are different kinds of lattices — see image below.
├── assets
├── LICENSE
├── README.md
├── .gitignore
├── app.py <- contains Dash app layout and logic
└── scripts/
├── lattice.py <- contains functions for generating initial lattices
└── simulation.py <- contains functions simulating evolution of q-voter models
You can view the application here. It is hosted as a web service on Render.
Please clone the repository, install packages from requirements.txt
and run python app.py
in the console.