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.

Source Distribution

crime_sim_toolkit-1.5.0.tar.gz (6.7 MB view hashes)

Uploaded Source

Built Distribution

crime_sim_toolkit-1.5.0-py3-none-any.whl (6.9 MB view hashes)

Uploaded Python 3

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