MemoSimagent-based modeling studio

Library/Social sciences

Opinion polarization

60 agents are placed on a small toroidal (wrapping) 31x31 grid.

Run in your browser Download .nlogox Get MemoSim verified in NetLogo Web · or open in MemoSim
Read the assumptions first. The model itself says it is illustrative and uncalibrated. Treat its output as a demonstration of a mechanism, not an estimate of a real system.

An illustrative, uncalibrated agent-based model of how opinions can drift toward the extremes (0 and 1) through local social influence. It is a teaching tool, not a scientifically validated result.

Mechanism

  • 60 agents are placed on a small toroidal (wrapping) 31x31 grid.
  • Each agent holds an opinion in the range [0, 1] (0 = left, 1 = right).
  • On every tick, each agent looks at the agents on its 8 neighboring patches.
  • Bounded confidence: an agent is only influenced by the average opinion of its neighbors if that average is within confidence of its own opinion. This is the key mechanism: agents ignore those who disagree too strongly, which lets clusters form and prevents full consensus.
  • Influence: when the bounded-confidence condition holds, the agent moves a fraction influence of the way toward the neighbors' average opinion.
  • Noise: a small random perturbation (noise) is added each tick so the system does not freeze instantly and can explore.
  • Opinions are clamped to [0, 1].

Controls

  • Setup – clears the world, creates 60 agents with random opinions, resets the clock.
  • Go – runs the model one tick per step (forever button).
  • confidence (0–1) – how far an agent's opinion can be from the neighbors' average before it ignores them. Low values → strong echo chambers; high values → more consensus.
  • influence (0–1) – how strongly an agent moves toward the neighbors' average when influenced.
  • noise (0–0.2) – random perturbation added each tick.

Monitors and plot

  • Polarization – 0 means everyone agrees, 1 means the population is maximally split (half at 0, half at 1).
  • Mean opinion – the average opinion of all agents.
  • Opinion spread – max opinion minus min opinion.
  • Plot – polarization (red) and mean opinion (blue) over time.

Assumptions and limitations

  • Opinions are one-dimensional and continuous.
  • Influence is symmetric and based only on the 8 spatial neighbors.
  • There is no external information source, no media, no personality differences.
  • The model is intentionally simple and not calibrated to any real population; results are illustrative only.
  • With the default parameters the system tends to form two clusters near 0 and 1 (polarization), but outcomes depend on the random initial conditions and parameters.
Field
Social sciences
Model file
Opinion-polarization-4a17add9ce5f.nlogox · 39 KB
Controls
confidence, influence, noise
Reporters
polarization, mean-opinion, spread
Procedures
setup, go, polarization, mean-opinion, spread
Experiment
none pinned in this file
Documentation
5/7 · 355 words in the Info tab

This model is the subject of Memo 02 — A metric that cannot see polarisation, where its experiment, repetitions and raw CSV are published.