Skip to main content

A toolkit for simulating UK crime data.

Project description

Build Status Codacy Badge Codacy Badge

Crime data simulating toolkit

This package was built over the course of an internship at Leeds Institute of Data Analytics to simulate realistic crime data (predominantly for West Yorkshire) to generate as an input into an agent-based model.

The toolkit exists in three main strategies for data simualtion:

  • a simple poisson sampler based on past data
  • a decision tree using a wide range of predictor variables
  • a microsimulation using transition probabilities

The data_manipulation folder contains notebooks highlighting how some data sources have been constructed.

Notes on datafiles

the census_2011_population_hh.csv file is derived from ONS data. Taking data from sheet LSOA and using row 12 as the header row and keeping only rows below with data.

To use

For the poisson simulator the package expects a raw dump of folders from Police data into data/policedata. If it can't find data there it will default to test data.

TODO

  • Build method for using Police data API
  • microsimulation

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

crime_sim_toolkit-1.3.0.tar.gz (7.2 MB view hashes)

Uploaded Source

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