A toolkit for simulating UK crime data.
Project description
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
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.
Source Distribution
Built Distribution
Hashes for crime_sim_toolkit-1.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d56d6ee28eb7bbb65d8e36f211413108620df221ce0c838fefb25013f475001c |
|
MD5 | a642c63ca495785d1a2783acb2c6622a |
|
BLAKE2b-256 | aa4b8e1d63a25d586c096f5089ec81fae05427f6d20c43fda97d112cd5c3dcfb |