Skip to content

jjapp/shortBurglary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Python Implementation of a Statistical Model of Criminal Behavior

Description

This is a python implementation of the statistical model of criminal behavior described by Short, D’Orsogno, Pasour, Tita, Brantingham, Bertozzi and Chayes in their paper “A Statistical Model of Criminal Behavior” published in Mathematical Models and Methods in Appliend Sciences, Vol 18, Suppl (2008) 1249–1267.

The model is implemented in python using the Mesa library for agent based modeling.

The model consists of a neighborhood of houses. Each house has an attractiveness score:


A = Bs + A0

The attractiveness score is composed of a baseline attractiveness A0 and a dynamic component Bs.

Bs is determined by its previous value, the number of crimes committed at an address in a previous period, and a broken windows effect:

$$B(t+\delta t) = (B_s(t) + \frac{\mu l^2}{z} \Delta B_s(t))(1-\omega \delta t)+\theta E_s(t)$$

Where δ is the time interval, μ describes how attractiveness spreads due to the broken window effect, l is the distance between houses, Δ is the discrete Laplacian operator, z is the number of houses around any single house (in this case 4), ω describes attractiveness decay, θ measures the attractiveness increase for crimes committed at a location in the interval δt.

Model Components

The model has three components. First, agents that represent houses. Second, the criminal agents. Third, the spacial component represented by a grid on a taurus.

Running main will run the model through the designated number of iterations and output a heatmap of attractiveness.

At each step the datacollector summarizes, min, max and mean attractiveness scores as well as the location of the house with the maximum attractiveness.

About

Short et alStatistical Model of Crime

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages