A toolkit for simulating UK crime data.
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.
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
directory and running the following.
python setup.py install --user
Find out how to get started using the
crime_sim_toolkit via our Wiki
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.
- Build method for using Police data API
- Decision tree implementation
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|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|
Hashes for crime_sim_toolkit-1.5.0-py3-none-any.whl