Place-Based Crime Analysis Tool

Prioritise high-crime places, test whether earlier hotspots predict future crime, or evaluate a place-based intervention. The tool reports crime capture, PAI, PPAI, RRI, controlled before and after effects and Weighted Displacement Difference (WDD).

CSV data are processed in your browser and are not uploaded to a server by this page.

Prioritise places

Upload one row per spatial unit with unit_id, area and crime_count.

Required: unit_id, area, crime_count
Choose a sample for this analysis mode.
Download a small template showing the required columns.

Units are ranked by crime density.
Default: PAI ≥ 10.
0 = hit rate; 1 = PAI.

How the measures are used

Hit / capture rate

Hit rate = crime in selected places ÷ total crime

In the prediction workflow, this is the proportion of T2 crime occurring in places selected from T1.

Predictive Accuracy Index (PAI)

PAI = (n / N) ÷ (a / A)

n is crime in the selected area, N is all crime, a is selected area and A is total study area. PAI = 1 represents study-area-average crime density; PAI = 10 represents ten times that average density.

Penalized Predictive Accuracy Index (PPAI)

PPAI = (n / N) ÷ (a / A)α,   0 ≤ α ≤ 1

α controls how strongly spatial coverage is weighted. At α = 0, PPAI equals hit rate. At α = 1, it equals PAI.

Recapture Rate Index (RRI)

RRI = PAIT2 ÷ PAIT1

For the same T1-selected places, RRI compares their relative crime concentration in T2 with T1. A value of 1 means the relative concentration is unchanged; above 1 means it increased; below 1 means it decreased.

Controlled before and after

Absolute DiD = (Tafter − Tbefore) − (Cafter − Cbefore)

Relative effect = (Tafter / Tbefore) ÷ (Cafter / Cbefore)

The relative effect is generally more interpretable when treatment and comparison areas have different crime volumes. A value below 1 means the intervention area improved relative to the comparison trend. The tool also estimates the T1-equivalent expected after count by applying the control proportional change to the intervention baseline.

Important interpretation note: controlled before and after

Treat this as a simple Difference-in-Differences-style diagnostic rather than automatic causal proof. The key assumption is that, without the intervention, the intervention and comparison areas would have followed similar trends. One before and one after period cannot test that assumption. Prefer a deliberately selected untreated comparison with similar pre-intervention crime levels and trends; using the remainder of the study area is a weaker non-equivalent comparison.

Weighted Displacement Difference (WDD)

WDD = (ΔT − ΔCt) + (ΔD − ΔCd)

WDD combines change in the intervention area with change in its displacement zone, each relative to a matched control. Negative values indicate net crime reduction; a positive displacement component suggests possible spatial displacement, while a negative component suggests diffusion of benefits.

Important interpretation note: displacement and diffusion

Define the potential displacement zone before examining the outcome where possible. A larger or differently shaped zone can materially change the result. The matched control and its displacement zone should represent credible untreated comparisons. WDD separates treatment-area and surrounding-area changes, but it does not rule out other causes of change or identify movement beyond the chosen displacement boundary.

Important interpretation note: PAI

Classical PAI evaluates a selected hotspot area. In the prioritisation workflow this tool also calculates a unit concentration PAI for each individual spatial unit: its crime share divided by its area share. This is useful for ranking and for a rule such as PAI ≥ 10, but it should be interpreted as relative crime concentration rather than evidence of future predictive accuracy. The selected-area summary reports the standard set-level PAI and PPAI.

References