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.

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.

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

Farm check answer for Lilongwe, Malawi, on 30 October 2026: the rains have not started yet and usually start between 15 November and 18 December

Article Remote Sensing

Farm check: has the rain started on your farm?

A free, phone-friendly check for any farm: whether the rains have started, when they usually start, rain and heat for the next 10 days and how green the crops are. Examples from Lilongwe, Malawi, and Gazipur, Bangladesh.

Beginner 5 min read