---
title: "Performing Bivariate Correlation Analysis using Census and Crime Data"
description: "Explore how crime relates to socio-economic status in ArcGIS Pro: select 2021 census output areas around Cambridge, ready for bivariate analysis."
url: https://www.technicalgis.com/2022/08/14/performing-bivariate-correlation-analysis-using-census-and-crime-data/
author: TechnicalGIS Team
publisher: TechnicalGIS (https://www.technicalgis.com/about/)
published: 2022-08-14
updated: 2022-08-14
language: en-GB
---

# Performing Bivariate Correlation Analysis using Census and Crime Data

> Explore how crime relates to socio-economic status in ArcGIS Pro: select 2021 census output areas around Cambridge, ready for bivariate analysis.

## 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](https://www.technicalgis.com/tutorials/spatial-regression-python/) models house prices with Census 2021 variables and tests the residuals for spatial autocorrelation, and [geodemographic classification in Python](https://www.technicalgis.com/tutorials/geodemographic-classification-python/) groups Census 2021 Output Areas into neighbourhood types. Software used:

-   ArcGIS Pro 2.9.1 ([https://www.esri.com/en-us/arcgis/products/arcgis-pro/resources](https://www.esri.com/en-us/arcgis/products/arcgis-pro/resources))

Data used:

-   Output Areas (December 2021) Boundaries Full Extent EW (BFE) ([https://geoportal.statistics.gov.uk/datasets/ons::output-areas-december-2021-boundaries-full-extent-ew-bfe/explore?location=52.910974%2C-2.000000%2C7.75](https://geoportal.statistics.gov.uk/datasets/ons::output-areas-december-2021-boundaries-full-extent-ew-bfe/explore?location=52.910974%2C-2.000000%2C7.75))

## 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.](https://www.technicalgis.com/_astro/arcgis-pro-map-output-areas-1.DlHl7tWu_KdnG7.webp) _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.](https://www.technicalgis.com/_astro/census-lower-layer-super-output-areas-attribute-table.B4Py3VZG_1rupLg.webp)

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.](https://www.technicalgis.com/_astro/aoi-area-around-cambridge.C2BEzlRK_OEplu.webp)

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.](https://www.technicalgis.com/_astro/selected-output-areas-around-cambridge-3.VZU0jEYZ_1q9fLn.webp)

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.](https://www.technicalgis.com/_astro/aoi-area-around-cambridge-2.CjxfC3Mm_1PM9O.webp)

## 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.

## Data for this article

-   [GIS data sources for the United Kingdom](https://www.technicalgis.com/data-sources/united-kingdom/)

Licences and formats for each source are listed in the [GIS data sources catalogue](https://www.technicalgis.com/data-sources/).

---

Source: https://www.technicalgis.com/2022/08/14/performing-bivariate-correlation-analysis-using-census-and-crime-data/
