Theory · Page 14 of 34 · Trust and governance

14. Master and reference data: matching, survivorship and hub styles

Master data names the things a business deals with again and again (customers, products, brokers); reference data is the agreed lists that classify them. Managing them means finding the records that describe the same thing, building one trusted record from them, deciding where it lives, and versioning the lists everyone codes against.

Two records becoming one golden record, attribute by attribute
Playback speed

The clip takes one customer both insurers know: Harbour Mutual's CRM has her under her maiden name, Kestrel under her married name, with the same email address and birth date. The match rules compare the two records field by field and match them on the email. Survivorship then builds the golden record one attribute at a time: the name from the most trusted source, the email and address from the most recent record, the phone from the record that has one. Finally the four hub styles show where that golden record can live: only as an index, as a read-only copy, as a copy that writes back, or as the one place the record is maintained.

The intuition: one person, two files

Harbour Mutual's CRM knows a customer as Mia Visser, with a birth date and an email address. Kestrel knows a Mia de Jong, born on the same day, with the same email address. Is she one person who changed her surname, or two people? Nobody wants to send her two renewal letters, count her twice in the customer total, or price her motor policy without seeing her Kestrel claims.

Two different jobs hide in that question. First, matching: deciding which records describe the same real-world thing, without a shared key. Second, survivorship: deciding which of their values to trust when they disagree. The result is a golden record: one record per real customer, with the best value for each attribute and a link back to every source record it came from.

The codes those records carry need the same care. Harbour Mutual calls a burst pipe "escape of water"; Kestrel's code is WTR. Unless both map to one managed list, the combined company cannot count its water claims.

Remember Match records that describe the same thing, keep the best value of each attribute, and code everything against lists that are owned and versioned.

The theory: matching, survivorship, hub styles and code lists

Master data is the core entities several processes share and that change slowly: parties (customers, brokers), products, locations. Reference data is the sets of allowed values used to classify other data: loss causes, countries, policy statuses, currencies. Transactions (a claim, a payment) are neither; they refer to both.

Deterministic matching declares two records the same when chosen fields agree exactly, after standardisation (lower case, accents removed, spaces trimmed): the same email, or the same name and birth date. It is easy to explain and to audit, and brittle: a typo or a new surname defeats it. Comparing every pair is expensive, so matchers first group records by a cheap blocking key (here the birth date) and compare only within a block.

Every pair across the two customer bases, and how many agree on each rule (PostgreSQL)
SELECT
    COUNT(*) AS pairs,
    COUNT(*) FILTER (WHERE c.birth_date = k.geboortedatum) AS same_birth_date,
    COUNT(*) FILTER (WHERE c.name = k.naam AND c.birth_date = k.geboortedatum) AS same_name_and_birth_date,
    COUNT(*) FILTER (WHERE LOWER(c.email) = LOWER(k.email)) AS same_email
FROM customers c
CROSS JOIN klanten k

Of 1,200 possible pairs, 11 share a birth date: blocking on it leaves a small fraction to compare in detail. Only 3 agree on name and birth date exactly, and 1 on the email, while the answer key knows 9 people both insurers have. Exact rules alone miss most of them.

Probabilistic matching weighs the evidence instead. Fellegi and Sunter gave it its theory in 1969. For each field, m is the probability that it agrees when the two records are the same person, and u the probability that it agrees by chance when they are not. Agreement adds log₂(m/u) to a pair's score; disagreement adds log₂((1−m)/(1−u)), usually a negative number. Two thresholds split the scores into three zones: above the upper one a match, below the lower one a non-match, and between them a possible match for a steward to review. Their result: for chosen error rates, this rule leaves the fewest pairs to review.

Fellegi–Sunter weights estimated from the seed: m from the people both insurers have, u from every other pair (half a count added to each tally)
FieldmuWeight if it agreesWeight if it differs
name0.3500.002+7.4−0.6
birth date0.9500.002+8.8−4.3
email0.1500.000+8.5−0.2

For Mia de Jong, the name differs and the birth date and email agree: her pair scores +16.7 bits, far above anything chance produces, although no exact name rule would match her. The weights also describe the data: the name agrees for only 3 of the 9 true pairs, because the two companies spell names differently, so a differing name costs little (−0.6 bits); true pairs almost always share a birth date, so a differing one costs a lot (−4.3 bits).

Survivorship Once records are matched, each attribute of the golden record is chosen by a rule: most trusted source (the acquirer's CRM for names), most recent (the latest address), most complete (the record that has a phone at all), or a steward's decision. Every surviving value keeps a pointer to its source record, so a wrong merge can be undone and a value explained.
The four hub styles Where the golden record lives is an architecture decision. In the registry style the hub holds only the match links and an index; the sources keep their data. In the consolidation style the hub keeps a read-only golden copy for reporting. In the coexistence style the golden record is written back to the sources, which may still edit locally. In the centralised (or transaction) style the hub is where the record is created and changed, and the sources read from it. Each step along that list buys consistency with more change to the sources.

Reference data adds versioning. A code list changes: Kestrel's codes are mapped to Harbour Mutual's, a cause is split in two, a code is retired. Each list needs an owner, a version with a validity period, and crosswalks (mappings from each source's codes to the managed ones). A claim keeps the code that was valid on its date, so last year's report still adds up after the list changes.

Why it matters

The merger's "one customer" figure, its cross-selling and its pricing all depend on matching the two customer bases well. Too strict, and the same person is two customers; too loose, and Lucas Smit's twin brother inherits his claims history. Precision and recall (chapter 18) make that trade-off visible.

Reference data is smaller and more widespread: one unmanaged code list breaks every report that groups by it.

Where it goes wrong

  • Exact rules only. Deterministic matching misses typos, accents and new surnames; the duplicates stay.
  • Merging without review. A loose threshold with no steward queue merges twins and namesakes for good.
  • Survivorship by accident. "The last load wins" overwrites good values with worse ones.
  • Losing the lineage. A golden record with no links to its sources cannot be explained or unmerged.
  • Code lists in spreadsheets. A list with no owner and no versions changes silently, and history stops adding up.

Check yourself

Choose an answer to each question, then press Check.

1. In Fellegi and Sunter's model, what is u for a field?
2. Which hub style keeps only the links between source records, leaving the data in the sources?
3. Why does a claim keep the code that was valid on its date?
Answer every question first.

Sources

The works this page draws on, summarised in its own words rather than quoted. Read them for the full argument.

  • I. P. Fellegi and A. B. Sunter, "A Theory for Record Linkage", Journal of the American Statistical Association 64(328), 1969The m and u probabilities, log-likelihood weights, and the decision rule with two thresholds and a review zone.
  • P. Christen, Data Matching: Concepts and Techniques for Record Linkage, Entity Resolution, and Duplicate Detection (Springer, 2012)Standardisation, blocking, comparison functions and the evaluation of matching by precision and recall.
  • DAMA International, DAMA-DMBOK, 2nd edition (2017), chapter 10Master and reference data: definitions, matching, survivorship, and managing code lists and crosswalks.
  • A. Dreibelbis et al., Enterprise Master Data Management: An SOA Approach to Managing Core Information (IBM Press, 2008)Hub implementation styles, from a registry to a centralised hub.
  • W. E. Winkler, "String Comparator Metrics and Enhanced Decision Rules in the Fellegi-Sunter Model of Record Linkage" (1990)The Jaro–Winkler similarity used for names, as in chapter 18.

Practise it

The chapters that put this theory to work on Harbour Mutual and Kestrel:

The tools to try it in:

  • Match and merge · Tune matching and survivorship on two customer bases and watch precision, recall and the golden records change.

Terms taught here: Master dataMatchingGolden recordSurvivorshipPrecisionRecallHub styleReference dataCrosswalk

An unhandled error has occurred. Reload 🗙

Reconnecting…

Your connection to the Cloud Data Architecture Lab dropped, probably a Wi-Fi blip. Hold on while it reconnects.

The connection could not be restored. The page will reload in a few seconds.