scalelink
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)
| 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)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| 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
Release files / scalelink-1.0.0.tar.gz
| Download URL | scalelink-1.0.0.tar.gz |
|---|---|
| Size | 42.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0d86b1be4702c3a6dcc14801f66753a74ff51ca4a4f09620a51ab46f77298392
|
|
BLAKE2b-256 checksum How to use checksums |
62cb45c26aebb826ddd50ea2bc3456c6cda5cd45b00ed14d1a1dfa6ec38f0cbf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.
Transparency logRelease files / scalelink-1.0.0-py3-none-any.whl
| Download URL | scalelink-1.0.0-py3-none-any.whl |
|---|---|
| Size | 21.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f6fc3b26f7783eff9bb2a181a92a351ac43cec41b6dc997039034feb20d769f1
|
|
BLAKE2b-256 checksum How to use checksums |
d83de4664461226df7b8cb42cf3e92fb481f7152f8b44b087496ff2625b69135
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.
Transparency logSecurity 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.
Attestation for scalelink-1.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.
Transparency logA 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.