Skip to main content

A toolkit for simulating UK crime data.

Project description

Build Status Codacy Badge Quality Gate Status Codacy Badge PyPI version

Crime data simulating toolkit

The crime_sim_toolkit is a python package that originated from a joint Alan Turing Institute and Leeds Institute of Data Analytics project formulated by Dr. Dan Birks at the University of Leeds. It focuses on generating simulations of crime demand, using alternate methodologies, that can then be used as an input into an agent based model of police supply.

The toolkit was envisioned to have three main strategies for data simulation:

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

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

Installation

Install via Python package index

This package is now available via PyPi.

pip install --user crime_sim_toolkit

Install from sources

You can also install this package from source by cloning this repository, navigating into the crime_sim_toolkit directory and running the following.

python setup.py install --user

Wiki

Find out how to get started using the crime_sim_toolkit via our Wiki

License

MIT License

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.

TODO

  • Build method for using Police data API
  • Decision tree implementation

Project details


Download files

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

Files for crime-sim-toolkit, version 1.5.0
Filename, size File type Python version Upload date Hashes
Filename, size crime_sim_toolkit-1.5.0-py3-none-any.whl (6.9 MB) File type Wheel Python version py3 Upload date Hashes View
Filename, size crime_sim_toolkit-1.5.0.tar.gz (6.7 MB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page