Skip to main content

chimera simulates the diffusion of innovations in a society

Project description

Chimera

Chimera simulates the spread of ideas within a population.

Installation

pip install zf-chimera

Usage

$ chimera --help
usage: chimera [-h] [--population POPULATION] [--start START] [--infected INFECTED] [--radius RADIUS] [--spread SPREAD] [--steps STEPS]

Simulate the diffusion of innovations

options:
  -h, --help            show this help message and exit
  --population POPULATION
                        The population size of the society
  --model MODEL         The model to use (e.g. v1, v2)
  --start START         The style of the simulation (e.g. middle, random)
  --infected INFECTED   The number of initially infected (e.g. 1, 10)
  --radius RADIUS       The geographic radius of each agent (e.g. 5, 10)
  --spread SPREAD       The number of agents each agent will infect (e.g. 2, 7)
  --steps STEPS         The number of steps to simulate (e.g. 50, 100)
$ chimera
Running simulation for 50 steps with 3481 agents

Simulation

Parameters

You can control the simulation by changing parameter which will affect the spread of the idea.

Transmission Rate

The transmission rate is the probability that an agent will be infected by another agent. The argument name is --rate and its default value is set to 0.5.

For the following tables, the initial infected is set to 1 while varying the transmission rate.

Rate = 0.3

rate_0.5

Rate = 0.5

rate_1.0

Rate = 1.0

rate_1.0

Initial Infected

The initial infected is the number of agents that will be infected at the start of the simulation. The argument name is --infected and its default value is set to 1.

For the following examples, the transmission rate is set to 0.5 while varying the initial infected.

Infected = 1

rate_0.5

Infected = 3

rate_1.0

Infected = 5

rate_1.0

Geographic Radius

The geographic radius is the distance that an agent can transmit the idea to another agent.

For the following examples, both the transmission rate and initial infected are set to 1 while varying the geographic radius.

Radius = 1

rate_0.5

Radius = 3

rate_1.0

Radius = 5

rate_1.0

Questions

  • How many friends does a person have?
  • How many people does a person talk to?
  • When do people act upon some information?
  • How to model hierarchies and groups?
  • How to model lateral communication?

References

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zf-chimera-0.0.2.tar.gz (9.6 kB view hashes)

Uploaded Source

Built Distribution

zf_chimera-0.0.2-py3-none-any.whl (9.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page