Performing Bivariate Correlation Analysis using Census and Crime Data

Exploring the relationship between census variables and recorded crime with bivariate correlation analysis in ArcGIS Pro.

ArcGIS Pro map of census lower layer super output areas used for the crime and census correlation

Key takeaways

  1. The tutorial explores the relationship between crime and socio-economic status using 2021 census output areas for England and Wales in ArcGIS Pro 2.9.1.
  2. An area of interest around Cambridge is drawn as a Polygon Map Notes layer and used with Select by Location to extract the output areas.
  3. The OA21CD output-area code is the key for joining other data, such as crime incidents, later on.
  4. Correlation does not equal causation: a simple bivariate analysis ignores the many other factors linked to crime.

This tutorial aims to explore the relationship between crime and socio-economic status using the latest available census data in England and Wales, United Kingdom using ArcGIS Pro 2.9.1. A future tutorial will demonstrate the use of CrimeStat III, a freely available spatial statistics program for the analysis of crime incident locations.

As a foreword to this tutorial, it should be noted that whilst crime and socio-economic status are often inextricably linked, a simple bivariate spatial analysis of the relationship does not explore the almost limitless number of variables that are related to the level or frequency of the incidence of crime observed. Remember: correlation does not equal causation.

Update (2026): to go beyond a simple correlation in Python, spatial regression in Python models house prices with Census 2021 variables and tests the residuals for spatial autocorrelation, and geodemographic classification in Python groups Census 2021 Output Areas into neighbourhood types. Software used:

Data used:

Selecting the Area of Interest

Create a new project in ArcGIS pro, giving it a suitable name and folder structure. Once created, download the Output Areas geodatabase and add the data to the ArcGIS Pro project using ‘Add Data’ on the Map ribbon. Once imported, your map should appear as below:

ArcGIS Pro map showing lower layer super output census output areas. ArcGIS Pro map showing lower layer super output census output areas.

Open and inspect the attribute table of the data by right clicking on the layer in the contents pane and selecting ‘Attribute Table’. The attribute table contains each output area of England and Wales along with the shape properties such as length and area. Later in the turorial, the output area identified in the ‘OA21CD’ column will be utilised to join other data such as crime incidence data.

Screenshot of the attribute table of the lower layer super census output areas.

Next, let’s create a Polygon Map Notes layer that will be used to create the area of interest polygon that will be further used to extract the census output areas around Cambridge, United Kingdom.

On the Insert ribbon, within the Layer Templates panel, click the drop down and select Polygon Map Notes to insert a new empty layer. Once complete, left click on the layer in the contents pane and on the Edit ribbon, click create.

Create a polygon according to your area of interest. I have selected an area around Cambridge, United Kingdom, although you can select a different area of interest. An example of the area selected is shown in the screenshot below.

Screenshot depicting an area of interest around Cambridge, United Kingdom.

Now the AOI layer has been created, select the output areas in the ‘Oa_2021_EW_BFE_V7’ layer using the Select by Location tool on the Map ribbon.

Using the input features ‘OA_2021_EW_BFE_V7’, select the relationship Intersect and selecting features as AOI (the newly created Polygon Map Notes layer).

The results of the ‘Select by Location’ operation should appear similar to below.

Areas selected using the ‘Select by Location’ tool.

With the features still selected, right click on the ‘OA_2021_EW_BFE_V7’ layer in the contents pane and select export features. Export the selected features to a new Shapefile named ‘Output_areas.shp’. Once complete, remove the ‘OA_2021_EW_BFE_V7’ layer from the contents pane. The new ‘Output_areas’ layer should appear as below.

Areas selected using the ‘Select by Location’ tool.

Key terms

Output area (OA)
The smallest geographic unit for which census statistics are published in England and Wales.
Bivariate correlation
A measure of how strongly two variables move together; it does not show that one causes the other.
3D visualisation of a cycle track near Wharncliffe Woods draped over the terrain

Article ArcGIS Pro

Visualising a Cycle Track in 3D

Turning a GPX track of the Wharncliffe Woods cycle route into a 3D scene and elevation profile in ArcGIS Pro.

Beginner 1 min read

ArcGIS Pro 3.4 showing satellite imagery of Edinburgh with place-name labels such as Leith, Holyrood Park and Morningside, after choosing an imagery basemap with labels from the Basemap gallery.

Tutorial ArcGIS Pro

How to add basemaps in ArcGIS Pro: the gallery, XYZ tiles, WMTS and your own default

Add a basemap in ArcGIS Pro from the gallery, load an XYZ tile URL such as OpenStreetMap with Add Data From Path, connect to a WMTS service, make your own basemap and choose the basemap new maps start with. Every step was run in ArcGIS Pro 3.4 over Edinburgh, with an arcpy script that does the same.

Beginner 9 min read

Three panels of the same corner of Utrecht: boxes from a text prompt over blocks of flats, the SAM 2.1 masks inside the kept boxes, and the resulting polygons following the national register's building outlines

Article Remote Sensing

Segment Anything for GIS: SAM, SAM 2 and SAM 3 on aerial and satellite imagery

What Meta's Segment Anything models are, how to prompt them with points, boxes and text, the tools for using them in Python, ArcGIS Pro and QGIS, how to turn masks into GIS features, and how to measure whether the results are good enough, with measured results from two tutorials.

Intermediate 13 min read