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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file crime_sim_toolkit-1.5.0.tar.gz.

File metadata

  • Download URL: crime_sim_toolkit-1.5.0.tar.gz
  • Upload date:
  • Size: 6.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.6

File hashes

Hashes for crime_sim_toolkit-1.5.0.tar.gz
Algorithm Hash digest
SHA256 ea778aaff9b2eeec33c7724f52f469bd03091ff98d0be13e5f5655109b4b3c22
MD5 810d049e42ba6720ea012e9d89d34686
BLAKE2b-256 a39d69ac29210130bc23365ef1b8628bc7df897a740503733438bba42c7794dd

See more details on using hashes here.

File details

Details for the file crime_sim_toolkit-1.5.0-py3-none-any.whl.

File metadata

  • Download URL: crime_sim_toolkit-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 6.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.6

File hashes

Hashes for crime_sim_toolkit-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d56d6ee28eb7bbb65d8e36f211413108620df221ce0c838fefb25013f475001c
MD5 a642c63ca495785d1a2783acb2c6622a
BLAKE2b-256 aa4b8e1d63a25d586c096f5089ec81fae05427f6d20c43fda97d112cd5c3dcfb

See more details on using hashes here.

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