Library/Social sciences
Crime patterns and community response
A small city grid where crime behaves like a contagion: criminal activity on a block spreads to neighboring blocks, decays slowly on its own, and is suppressed by police patrols that move toward the most criminal nearby block.
Category: Social Sciences Status: Illustrative and uncalibrated. This is a teaching simulation, not a scientifically validated model of real crime.
What it shows
A small city grid where crime behaves like a contagion: criminal activity on a block spreads to neighboring blocks, decays slowly on its own, and is suppressed by police patrols that move toward the most criminal nearby block. The model is meant to show how the number and effectiveness of patrols interact with the rate at which crime spreads, producing patterns such as hotspots, containment, or city-wide spread.
How it works
- Patches are city blocks. Each has a
crimevalue from 0 (safe) to 1 (fully criminal). - Patrols (blue turtles) each tick face the most criminal neighboring block, move one step toward it, and reduce the crime on the block they occupy by
suppression. - Spread: every criminal block adds
spread-rate × its crimeto each neighbor (capped at 1). - Decay: every criminal block loses
decay-rateper tick (floored at 0). - Setup seeds 3 small hotspots and places
initial-patrolspatrols at random.
Controls
- initial-patrols (0–40): number of patrol units.
- spread-rate (0–0.5): how fast crime spreads to neighbors per tick.
- suppression (0–1): how much crime a patrol removes per tick.
- decay-rate (0–0.2): natural decay of crime per tick.
Monitors and plot
- Total crime: sum of crime over all blocks.
- Criminal blocks: count of blocks with crime above 0.1.
- Crime over time: both quantities plotted per tick.
Assumptions and limitations
- Crime is a single continuous quantity; no distinction between crime types, severity, or repeat offenders.
- Patrols are identical, always effective, and move one block per tick; no response time, budget, or shift changes.
- Spread is purely spatial and symmetric; no social, economic, or demographic drivers.
- The world is small (41×41 blocks) and the population bounded (≤40 patrols), so results are qualitative.
- Parameters are arbitrary and not fitted to any real city. Treat outputs as illustrative only.
- Field
- Social sciences
- Model file
Crime-patterns-and-community-response-20bf160cb435.nlogox· 39 KB- Controls
initial-patrols,spread-rate,suppression,decay-rate- Reporters
- none recorded
- Procedures
setup,go- Experiment
- none pinned in this file
- Documentation
- 4/7 · 330 words in the Info tab