Skip to content

This repository provides the code and resources to simulate and visualize the evolution of corruption using network theory and game theory. It includes models and simulations presented at the 55th Mexican National Mathematics Congress and in the undergraduate thesis with the same name.

Notifications You must be signed in to change notification settings

ElCaballerodelaTierra/Corrupcion

Repository files navigation

Understanding and tackling corruption

An analysis using network theory and game theory on social systems and their evolution


This repository contains the code and resources necessary to simulate and visualize the work presented at the 55th Mexican National Mathematics Congress and the subsequent undergraduate thesis in Mathematics.

Description

The project simulates the evolution of corruption using two approaches: network theory and game theory. The first approach uses a complex network with information diffusion models to recreate the structure of a corrupt network. The second approach uses the replicator dynamics in evolutionary game theory to simulate the corruption game for three different societies: two with low levels of corruption and one with high levels of corruption. This simulation proposes strategies to eliminate corruption from a society.

Libraries such as networkx are used for the creation and manipulation of networks, and pyvis for their interactive visualization.

Visualization Examples

Example of a created network

Example of a created network

Degree distribution (log)

Log degree distribution colored

Degree distribution

Degree distribution colored

Example of the evolution of the corruption game

Example of the evolution of the corruption game

Installation

To run this project, you need to have Python 3.10 or higher installed with the NetworkX and NDlib libraries. To visualize the graphs, PyVis for networks, Matplotlib, and SciencePlots for the evolution game graphs.


Comprendiendo y atacando la corrupción

Un análisis mediante teoría de redes y teoría de juegos a los sistemas sociales y su evolución


Este repositorio contiene el código y los recursos necesarios para simular y visualizar el trabajo presentado en el 55º Congreso Nacional Mexicano de Matemáticas y la tesis de licenciatura en Matemáticas con el mismo nombre.

Descripción

El proyecto simula la evolución de la corrupción mediante 2 enfoques teoría de redes y teoría de juegos, el primer enfoque es mediante una red compleja utilizando modelos de difusión de información, con ello se recrea la estructura de una red de tipo corrupta. Y mediante la dinámica temporal del replicador en teoría de juegos evolutivos se simula el juego de la corrupción para 3 distintas sociedades, dos de ellas con bajos niveles de corrupción y la tercera una sociedad con altos niveles de corrupción, mediante esta simulación se proponen estrategias para eliminar la corrupción de una sociedad.

Se utilizan librerías como networkx para la creación y manipulación de redes, y pyvis para la visualización interactiva de las mismas.

Ejemplos de Visualización

Ejemplo de red creada

Ejemplo de red creada

Distribución de grados (log)

Distribución de grados log coloreado

Distribución de grados

Distribución de grados coloreado

Ejemplo de la evolución del juego de la corrupción

Ejemplo de la evolución del juego de la corrupción

Instalación

Para ejecutar este proyecto, necesitas tener instalado Python 3.10 o superior con las librerías NetworkX y NDlib. Para visualizar los gráficos PyVis para las redes, Mathplotlib y SicencePlots para los gráficos de evolución del juego.

About

This repository provides the code and resources to simulate and visualize the evolution of corruption using network theory and game theory. It includes models and simulations presented at the 55th Mexican National Mathematics Congress and in the undergraduate thesis with the same name.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published