Skip to main content

scalelink

Deploy to PyPI PyPI version PyPI - Python Version Code style: ruff

An implementation of the probabilistic data linkage method Scalelink, described in Goldstein et al. (2017).

This implementation has been created in response to recommendation six of the Joined Up Data in Government: The Future of Data Linking Methods cross-government review.

This work is authored by the Data Linkage team within the Methodology and Quality Directorate (MQD) of the Office for National Statistics (ONS). This team researches novel data linkage methods and applications to facilitate production of high-quality linked datasets for national statistics.

Pre-requisites

  • Python 3.10 or 3.11
  • PySpark >=3.0.0, <4.0.0

Method

The Scalelink method is a novel probabilistic data linkage method. It uses a scaling algorithm based on correspondence analysis. A key potential advantage is that it utilises linkage variable dependence. In contrast, the current gold-standard probabilistic data linkage method, the Fellegi-Sunter algorithm, assumes that linkage variables are independent, an assumption which is violated to at least some extent in all linkage problems. For example, forenames are correlated with middle names, surnames, age, gender, home address, etc.

The Scalelink method is experimental. This implementation has been open-sourced to facilitate further research regarding the suitability of the Scalelink method for real-world data linkage, particularly on Big Data. The authors do not currently endorse using the Scalelink method to produce linked datasets for research, analysis or statistics.

Installation and use

Please see the User Guide.

Contact

For questions, support or feedback about the scalelink package, please email DataLinkage@ons.gov.uk.

Acknowledgements

The authors would like to acknowledge the following collaborators for their contributions to the Scalelink research project within the Office for National Statistics:

  • William Browne (University of Bristol)
  • Christopher Charlton (University of Bristol)
  • James Doidge (Intensive Care National Audit & Research Centre)
  • Harvey Goldstein (University of Bristol and University College London)
  • Katie Harron (University College London)
  • Leah Maizey (Office for National Statistics)
  • Josie Plachta (Office for National Statistics)
  • Rachel Shipsey (Office for National Statistics)
  • Paul Smith (University of Southampton)

The authors would also like to acknowledge the following individuals for their support in making this code public and packaged:

  • Dominic Bean (Office for National Statistics)
  • Diego Lara de Andres (Office for National Statistics)
  • Robin Linacre (Ministry of Justice)
  • Zoe White (Office for National Statistics)

Dedication

This project is dedicated to the memory of Harvey Goldstein (1939-2020).

License

Unless stated otherwise, the codebase is released under the MIT License. This covers both the codebase and any sample code in the documentation.

The documentation is © Crown copyright and available under the terms of the Open Government 3.0 license.

Metadata

Release files for scalelink 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scalelink 1.0.0
File Size Uploaded Provenance Actions
scalelink-1.0.0.tar.gz 42.3 kB With provenance Details for scalelink-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for scalelink 1.0.0
File Interpreter ABI Platform Actions
scalelink-1.0.0-py3-none-any.whl Python 3 none any Details for scalelink-1.0.0-py3-none-any.whl

Total release size: 63.5 kB

Security for scalelink 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page