Data & evidence
Resolve order identity across independently numbered systems
Two records can have the same amount and a similar time without describing the same order. One customer can place two equal orders, a platform can shorten a reference, and a point-of-sale export can use a different identity namespace. Linking the wrong pair can be more damaging than leaving it unresolved: a refund, fee or service complaint may be attached to the wrong trading event while the group's total still looks reasonable.
This workshop builds an original order-linkage desk for fictional Elm Quay Restaurants. Six accepted point-of-sale order records must be compared with six accepted channel records. Nine candidate pairs have invented similarity scores. A separate synthetic truth table permits exact evaluation of the teaching methods, while the operational matcher is deliberately prevented from reading that truth table.
The case contains two easy pairs, a two-by-two ambiguity and a competing pair that can steal another order's partner. You can change the score threshold, compare a conservative unique-candidate rule with an explicitly unsafe greedy demonstration, and add four fictional independently reviewed links. The result shows exact accepted pair identities, unresolved records and quality measures with their denominators.
All identifiers, scores, reviews and records are fictional. The scores are not probabilities and are not calibrated against real restaurant data. The calculator does not connect customer accounts, establish legal identity or authorise the use of personal information. It teaches a controlled way to preserve ambiguity, evaluate errors and separate candidate generation from supported linkage decisions.
TRY THE CASE
A high-score pair can consume the wrong order identity
Fictional inputs and stated model boundaries. The worked calculations and downloadable records below remain available without JavaScript.
- Establish source namespaces and the actual relationship cardinality
- Freeze accepted populations and candidate-generation version
- Retain candidate components and competing endpoints
- Apply the declared automatic rule without reading evaluation truth
- Preserve ambiguous, absent and below-threshold states separately
- Reserve only independently supported reviewed relationships
- Evaluate exact pairs, precision, recall and unresolved coverage under supported reference evidence
- Version corrections and assess downstream attribution and decision effects
1. Define what counts as the same order
An order identity represents a particular business event under an accepted source contract. It is not a customer identity, a payment identity or a settlement identity. One order can have several payment attempts, and a single payout can contain many orders. Before designing a matcher, state the relationship expected between the specific source populations.
Elm Quay's bounded fixture assumes a one-to-one relationship: each of six accepted POS orders has exactly one corresponding accepted channel order, and vice versa. That is an invented complete population used to evaluate the exercise. A real business must establish whether split orders, merged tickets, cancellations, retries or channel-specific events violate that assumption.
If a real system allows one channel order to become several POS tickets, forcing a one-to-one match will create errors even with an excellent similarity score. The relationship model must represent the actual business process. A linkage rule cannot repair an incorrect assumption about what the source records mean.
The fixture uses left identifiers L1 through L6 and right identifiers P1 through P6. These are technical teaching identities, not names, phone numbers or actual platform references. Their separate namespaces remain visible. L1 and P1 are not considered equal because their suffixes happen to match; their link belongs to the separately established teaching truth.
2. Separate accepted source records from candidate pairs
The left and right populations contain twelve records in total: six on each side. The candidate table contains nine proposed pair relationships, not nine additional orders. One left record can appear in several candidates, and one right record can appear in several candidates. Treating candidate rows as orders would duplicate the source population before any linkage decision was made.
Candidate generation narrows the pairs considered for investigation. It can use supported identifiers, approved date windows, amount comparisons or other appropriate features. The current exercise starts after that stage with a fixed candidate table. It does not claim that these nine candidates exhaust every possible real-world matching method or that a missing candidate proves the corresponding order does not exist.
Keep candidate generation versioned. If a new export format changes which references are available, the candidate population can change independently of the acceptance threshold. A reported improvement in recall might arise from better candidate coverage rather than a more accurate decision rule. Record those stages separately so the company can identify which part of the process improved.
Download the candidate-pair CSV, the separate synthetic truth CSV and the full populations, decisions and expected answers. The truth table exists only because the exercise is constructed. A live organisation must not pretend it knows every true relationship merely because a model has assigned a score.
3. Inspect all nine candidate pairs
L1 with P1 has score ninety. L2 with P2 has score eighty-eight. Both are true links in the synthetic evaluation table and have no competing candidate in this fixture. They make useful easy cases, but their success should not be used to imply that the more ambiguous records have the same evidence quality.
The middle group contains four candidates: L3 with P3 scores seventy-five, L3 with P4 scores seventy-six, L4 with P3 scores seventy-four, and L4 with P4 scores seventy-five. The true relationships are L3 with P3 and L4 with P4. The two incorrect cross-links are deliberately plausible and share the same two-by-two candidate component.
The final group contains L5 with P5 at sixty-five, L6 with P6 at eighty and L6 with P5 at eighty-one. The first two are true relationships. The last is false, yet it has a higher score than L6's true partner. A method that automatically selects the highest remaining score can consume P5 and prevent the true L5 pair from being accepted later.
These scores are original teaching inputs with no statistical interpretation. Ninety does not mean a ninety-percent chance of correctness, and a difference of one point has no universal evidential meaning. The laboratory uses them only to demonstrate thresholding and ranking behaviour under a declared synthetic case.
Inspect the graph of candidates mentally: two isolated easy pairs, a connected two-by-two group and a connected three-edge group. Looking only at each candidate row hides the competition for shared identities. A company-level review needs the relationship structure as well as the individual comparison evidence.
4. Reconstruct the conservative rule
The conservative teaching method first retains candidate pairs whose score is at least the selected threshold. It then accepts a pair only when its left record has exactly one qualifying candidate and its right record also has exactly one qualifying candidate in that same retained population. Every other eligible relationship remains unresolved for review.
At threshold seventy-five, seven candidates remain. L1/P1 and L2/P2 qualify as isolated pairs. L3 has two qualifying partners, and P4 has two qualifying left records. L6 has two qualifying partners. Those conflicts prevent the rule from accepting the middle and final groups, even though some individual rows look attractive.
The accepted set is exactly L1/P1 and L2/P2. Four left records and four right records remain unresolved. The method has made two correct links out of two accepted links in this constructed case. It has found only two of the six true links. Preserving that missing coverage is essential; a clean accepted set does not mean the whole linkage job is complete.
This rule is intentionally simple and conservative. It is not claimed to be the universally best matcher or a calibrated statistical method. A unique candidate can still be wrong if the true partner was omitted from candidate generation. The synthetic truth permits us to evaluate this fixture exactly, while a production process needs additional evidence about the quality and completeness of its candidates.
5. Understand why a higher threshold can hide difficult records
At threshold eighty-five, only the two easy candidates remain. The accepted set is still L1/P1 and L2/P2. The measured precision is unchanged at one, and recall remains one third. The higher threshold has not solved the ambiguous orders; it has removed their candidates from the eligible set while leaving their source records unresolved.
At threshold ninety, only L1/P1 remains eligible. Precision is still one for that single accepted link, but recall falls to one sixth. At threshold ninety-one, no candidate qualifies. Precision is unavailable because there are no accepted links, while recall is zero because none of the six true links was found.
A dashboard that reports only precision could make the ninety threshold look as good as seventy-five. A dashboard that replaces an undefined no-links precision with one could make ninety-one look perfect. Both presentations conceal a serious coverage difference. The laboratory returns the accepted count and the denominators beside the rates.
Thresholds also affect workload. Some records may have no eligible candidate, while others have several. Those are different review states. Raising a threshold can reduce the displayed ambiguous-pair count by turning ambiguous records into no-candidate records; it does not necessarily reduce the underlying investigation needed to establish their true partners.
Choose production thresholds using the actual decision costs, evidence and validation process. This guide supplies none as a restaurant benchmark. A false match affecting a refund route can have different consequences from an unresolved exploratory analytics record. The appropriate rule follows the use case and applicable handling requirements, not the desire to maximise one green percentage.
6. Watch a greedy method make confident mistakes
The greedy demonstration sorts eligible candidates by score descending, then accepts each pair if neither endpoint has already been used. It produces a one-to-one set, but one-to-one consistency is not proof of correct identity. A wrong early choice can consume a partner needed by a later true relationship.
At threshold seventy-five, the method first accepts L1/P1 at ninety and L2/P2 at eighty-eight. It then accepts L6/P5 at eighty-one. L6/P6 at eighty is skipped because L6 is already used. Next it accepts L3/P4 at seventy-six. The remaining true middle candidates are blocked by already-used endpoints.
The accepted set contains four links: two true and two false. Precision is two divided by four, or one half. Recall is two divided by six, or one third. This greedy rule has accepted more pairs than the conservative rule without finding any additional true relationship in the fixture.
At threshold sixty-five, the previously excluded L4/P3 cross-link becomes available after L3/P4 has been selected. The greedy method accepts it. L5/P5 remains blocked because P5 was consumed by L6. There are now five accepted links but only two correct ones, so precision falls to two fifths while recall remains one third.
The demonstration is labelled unsafe because it is included to expose a failure mode, not to recommend those links. The operational conclusion should remain unresolved until supported evidence establishes the correct relationships. A high score, a deterministic sort and a completed one-to-one assignment cannot create that evidence.
7. Compare local scores with the global relationship
In the middle two-by-two group, the correct pairing has scores seventy-five plus seventy-five, totaling one hundred and fifty. The incorrect cross-pairing has seventy-six plus seventy-four, also totaling one hundred and fifty. Even an algorithm that maximises the total score over that group would face an exact tie under these invented scores.
That tie is not resolved by choosing alphabetical order or whichever row appears first. Such a rule can make software deterministic, but it does not make the business relationship true. Deterministic handling is useful for reproducibility; identity evidence is needed for correctness. The workpaper should distinguish those properties rather than hide the tie behind an automatic accepted status.
The final three-edge group shows a different issue. Selecting L6/P5 alone scores eighty-one, while selecting the two true links L5/P5 and L6/P6 totals one hundred and forty-five. A broader assignment objective may avoid the greedy failure there. But its success in that group would not establish that its score objective correctly resolves the middle tie or every other production case.
Optimisation is conditional on the objective, candidate set and relationship assumptions. Maximising score, number of links or another utility can produce different outputs. The company must establish why that objective is appropriate and how unresolved alternatives are handled. A mathematical optimum is not automatically a verified order identity.
Preserve candidate components for review when they matter. A reviewer who sees only the highest candidate per left record may never learn that two left records are competing for the same right record. The complete component makes the ambiguity visible and supports a decision on the actual relationship instead of a series of isolated row approvals.
8. Use reviewed evidence without giving the matcher the answer
The fixture includes four fictional review decisions: L3/P3, L4/P4, L5/P5 and L6/P6. Each has a nonblank evidence reference, a preparer and a distinct reviewer. These fields represent an assumed completed independent review for the teaching case. Clicking the control does not create real source evidence or authenticate a person's identity.
When reviewed links are enabled, the conservative process reserves their left and right endpoints, validates their one-to-one consistency and accepts those supported relationships. It then evaluates the remaining candidate population under the same unique-candidate rule. L1/P1 and L2/P2 are accepted, giving all six correct links in the constructed fixture.
A reviewed link can be considered even if its similarity score is below the automatic threshold. That is a separately labelled evidence route, not an undocumented score override. The record should explain why the source evidence supports the relationship and which reviewer accepted that version. Production systems should establish their actual required evidence and authority rather than copy the fictional role arrangement blindly.
The matcher does not inspect the synthetic truth table when making these decisions. The truth is used later by a separate evaluation function to classify accepted pairs. This separation matters: a demonstration that secretly selects correct pairs by reading the answer key would teach nothing about operational matching and would produce misleadingly perfect quality measures.
Reviewed decisions must be consistent with one another. Two reviewed links cannot consume the same left record or right record under the declared one-to-one contract. A missing evidence reference, a reviewer equal to the preparer or an unknown endpoint causes refusal in the bounded model. Those checks validate the declared teaching record; actual evidence authenticity still requires the company's real process.
9. Calculate precision, recall and unresolved coverage
Precision is the number of accepted true links divided by all accepted links. Recall is the number of accepted true links divided by all true links in the evaluation population. In this fixture, the truth population contains six links. At threshold seventy-five the conservative method has precision two over two and recall two over six.
The greedy method at that threshold has precision two over four and recall two over six. Its additional two accepted links are false positives. The four true relationships not found are false negatives relative to the six-link truth table. Some involve endpoints that were linked incorrectly rather than left untouched, so unmatched source count and missed true-link count answer different questions.
Report both source coverage and pair correctness. A false link can make the accepted-source coverage look higher while reducing precision. The greedy method uses four left and four right records, but that does not mean it has correctly reconciled two thirds of the orders. Only two of the six true relationships have been recovered.
At threshold sixty-five, five greedily linked left records can make coverage look even more complete. Precision is only two fifths. If someone presents five of six orders matched without the correctness evaluation, the headline hides that three accepted relationships are wrong. A supported unresolved status is preferable to a fabricated claim that those links have been established.
No-link precision is null rather than zero or one. Zero would imply a defined accepted population with no correct links, while one would imply all accepted links were correct. With no accepted links, the fraction's denominator is zero and the measure is undefined. Recall remains zero when a nonempty known truth population exists and no true link is accepted.
10. Interpret the synthetic truth honestly
The six true relationships are known exactly because the dataset was designed for the workshop. That permits exact precision and recall calculations. It does not establish how a production matcher will perform on real exports, unfamiliar source patterns or changed operating processes. A perfect result on six reviewed synthetic pairs is a functional example, not statistical validation.
In real linkage, a reference set can itself contain errors or uncertainty. A clerical reviewer may lack enough source evidence to decide, and an accepted historical link may have been based on the same imperfect rule being evaluated. Preserve reference-set provenance and unresolved labels rather than treating all reviewed records as unquestionable truth.
Validation samples should represent the relevant decisions. Reviewing only high-score accepted links can estimate a selected group's quality but cannot establish recall over omitted true pairs. Reviewing only easy outlets can miss problems in sources with shortened references or incomplete timestamps. The sampling and evaluation design must match the claim being made.
The ONS data linkage and matching policy discusses false links, missed links, precision, recall and assessment of linkage quality in its official-statistics setting. Those concepts inform the distinctions here. ONS does not endorse these invented scores, thresholds or restaurant rules, and its institutional policy is not presented as law for restaurant companies.
Keep the uncertainty visible in a production report. An honest statement might identify accepted, unresolved and unavailable-reference populations, then report estimated quality for the reviewed scope. Avoid presenting a single apparent accuracy rate as if every proposed order relationship has been independently proven.
11. Establish identifiers before adding fuzzy features
Use supported stable relationships where available. A channel reference carried into a POS system under a verified integration contract can provide stronger evidence than a similarity score built from amount and time. Preserve source namespaces, version history and known transformations rather than stripping prefixes until unrelated identifiers happen to match.
An exact string match is still conditional on the identifier contract. A short reference can be reused by another outlet, day or source account. A matching value is not globally unique merely because a spreadsheet column is called order ID. Establish the complete key and its effective scope before relying on equality.
Do not merge records by customer name to solve an order-linkage problem without an appropriate purpose and handling framework. One person can place several orders, and different people can share names. The order relationship should use proportionate evidence relevant to that event. The synthetic fixture needs no personal identifiers to demonstrate ambiguity and review.
Record missing and transformed identifiers explicitly. A missing reference can limit candidate recall; it should not become a literal string that matches every other missing reference. A truncated value can be useful supporting evidence but should not silently inherit the uniqueness claim of the full original identifier.
If a source changes its identity format, create a versioned compatibility rule and test the affected populations. Removing punctuation, leading zeros or case distinctions may be valid for one source and destructive for another. Preserve raw values and the transformation evidence so another reviewer can reconstruct how the final candidate relationship was produced.
12. Use time and amount as evidence, not identity guarantees
Time comparisons need compatible clocks and business meanings. Order creation, acceptance, preparation, collection and payment times can differ legitimately. A local timestamp without an offset may be ambiguous around clock changes. Establish what each field measures before using a small time gap as evidence that two records represent the same order.
Amount comparisons also require a common basis. A POS amount may include a component excluded from a channel net settlement, or a discount may be funded by another party. Equality on an unsupported amount basis can create false confidence, while a legitimate difference can cause a missed match. Preserve gross, net, discount and currency definitions as appropriate to the actual source contract.
Equal amounts are common in menus with standard prices. Two near-simultaneous orders for the same meal can therefore have identical amounts. An aggressive amount-and-time rule may systematically confuse busy periods, precisely when duplicate-looking records become frequent. The validation process should examine such difficult patterns instead of assuming every mismatch is a rare random exception.
Do not invent a probability from an arbitrary weighted score. A score can be a useful ranking device without being calibrated. If a production system claims probabilistic interpretation, it needs a supported model, assumptions and evaluation appropriate to that claim. The teaching scores remain explicitly invented ordinal inputs throughout the laboratory.
Feature-level evidence should remain inspectable for review. A reviewer may need to know which reference agreed, which timestamp definition was used and which amount basis differed. A single unexplained similarity number makes it harder to identify source defects and easier to accept an attractive but unsupported relationship.
13. Preserve unmatched records in the operating process
Unmatched is a status requiring an appropriate next action, not proof that an order is invalid or absent. A true partner may be missing from the extract, outside the candidate window or represented under another supported relationship type. Assign an evidence owner and maintain the unresolved source identity without deleting it from the control population.
Separate no-candidate, below-threshold, competing-candidate and evidence-conflict states. These categories help investigators ask the right question. A source receipt problem differs from a ranking ambiguity. A one-to-many business process differs from a bad identifier. Grouping everything as failed match encourages generic fixes that may conceal the actual mechanism.
An unresolved linkage can coexist with an independently supported source total. Do not attach an order to a convenient partner merely to reconcile a report. Preserve the accepted monetary population and the unresolved attribution separately where the source contract permits that distinction. A matched-looking table is not a substitute for supported relationships.
Define downstream use by status. Some exploratory analyses can include a labelled sensitivity scenario, while a customer-specific refund or investigation may require stronger evidence before using the link. The actual company must establish its authority, privacy and operational conditions. This guide does not grant permission to act on uncertain customer records.
Track resolution evidence and time without rewarding unsupported speed. A team measured only on percent matched can be pushed towards false positives. A team measured only on zero false positives can avoid difficult records indefinitely. Review quality, unresolved coverage, decision relevance and evidence handling together rather than optimise one incomplete metric.
14. Freeze linkage versions and explain corrections
A linkage decision should identify the left and right record versions, candidate-generation version, threshold or review route, rule version and evidence cutoff. A later source correction may invalidate a prior relationship. Without that history, the current matched table cannot explain which order a previous report or refund decision relied upon.
Do not silently overwrite a previously accepted pair. Record the withdrawal or correction, its evidence and affected downstream products. If L6/P5 was incorrectly accepted, correcting it to L6/P6 also frees P5 for L5. That is a relationship change involving several records, not a single-cell replacement that can be assessed in isolation.
Rerun component-level checks after corrections. A new reviewed pair can consume an endpoint that another automatic link used. The resulting output must still satisfy the one-to-one contract, preserve the original source population and identify any newly unresolved relationship. The model reserves reviewed endpoints before evaluating remaining automatic candidates for that reason.
Retain original and corrected quality reports when evaluating a historical run. A corrected current result should not be presented as the quality of the original matcher at issue time. Use separate labels for original automatic decisions, reviewed corrections and final supported linkage. This keeps process learning honest and prevents retrospective perfect-accuracy claims.
Where a link was used in published analysis, assess the effect on the actual output versions. A pair change can alter outlet attribution, repeat-order counts or fee analysis without changing a group total. Linkage quality and numerical report impact are related but distinct evidence questions. The correction plan should address both at the appropriate grain.
15. Design tests around pair identities and competition
The baseline conservative test must return exactly L1/P1 and L2/P2 at threshold seventy-five. Checking only that two links were accepted would allow an implementation that selected two wrong pairs to pass. Exact pair identities, methods and unresolved endpoints should be part of the expected answer.
The greedy demonstration at the same threshold must return four pairs with two true and two false. At sixty-five it must return five with two true and three false. These are deliberate failure demonstrations. A future implementation that changes tie ordering or candidate rules needs a reviewed explanation of the changed example rather than an unnoticed drift in the teaching result.
With the four reviewed links enabled, the supported conservative process must return six one-to-one links and precision and recall one on this synthetic truth table. Turning reviews off must restore the unresolved baseline. Neither operation may mutate the source candidates or the independent truth fixture.
Test input refusal. Unknown endpoints, repeated candidate pairs, nonfinite scores, thresholds outside the supported range, conflicting reviewed endpoints and missing review evidence must fail visibly. An unknown selected method must not silently fall back to the most permissive matcher. An empty accepted set must retain null precision with the correct recall denominator.
Test row-order invariance. Reversing input candidate order must not change conservative decisions or the declared deterministic greedy demonstration. The greedy method sorts by score and then stable left and right identifiers. Stable tie handling makes the example reproducible, while the article continues to explain that deterministic sorting does not establish identity truth.
16. Evaluate the effect on analysis, not only pair counts
A false link can distort several downstream measures. It may make two unrelated records appear to reconcile, attach a refund to the wrong order or misclassify a source's processing delay. The consequence depends on the analysis and the populations affected. A high overall precision can still conceal important errors in a small decision-critical segment.
Consider a source format that truncates references only at one outlet. An aggregate quality score dominated by easy outlets may look strong while that outlet's report is unreliable. A production evaluation should examine supported segments and difficult-record patterns where the decision warrants it. The synthetic fixture is too small to estimate such segment performance, but its ambiguous components make the concern visible.
Likewise, missed links may not be random. Orders with incomplete references, changed integration paths or unusual timing can be less likely to match. Excluding them can bias a linked analysis even when the accepted links have high precision. Preserve the unmatched population and assess whether the resulting analytical scope remains appropriate.
The government-hosted research chapter on linkage quality discusses quality beyond simple match rates, including the effects of linkage errors on analysis. Its research context supports this caution; it does not supply restaurant-specific accuracy targets or validate the invented case.
Use a sensitivity analysis where suitable. Compare a supported accepted-only result with clearly labelled alternative assumptions about unresolved relationships, while retaining the limitations. Do not manufacture a single definitive business conclusion from uncertain links merely because the final dashboard expects a number in every cell.
17. Plan proportionate review and maintenance
Assign ownership for source contracts, identifier transformations, candidate generation, acceptance rules, review evidence and downstream corrections. One person may perform several tasks, but the decision record should reflect the actual process and appropriate challenge. A row labelled reviewed is not proof that an independent person examined source evidence.
Prioritise review by the actual decision need rather than score alone. A low-score candidate may have strong additional evidence available, while a high-score pair may be dangerous because it competes for a critical endpoint. Review the relevant component and preserve alternatives. The fixture's L5/P5 relationship demonstrates why excluding a lower-scoring true partner can matter after an incorrect competitor consumes P5.
Establish a controlled route for rule changes. New thresholds or features should be evaluated on preserved representative cases, with changes in coverage and error measures explained. A lower unresolved count is not sufficient evidence of improvement. The change may simply accept more false pairs, as the greedy examples show.
Maintain a set of synthetic regression fixtures alongside appropriately handled real validation evidence. Synthetic cases can test exact behaviours such as competition, unknown endpoints, duplicate candidates and review conflicts. They do not establish production error rates. Keeping those purposes separate provides useful technical assurance without overstating statistical knowledge.
Review the model after source or operating changes. A new integration, merged outlet, changed reference format or new split-order process can invalidate old assumptions. Preserve effective versions and re-evaluate the decision scope. A matcher that was suitable for one source contract should not inherit universal approval because its code still runs.
18. Remove a true candidate and challenge the conservative result
The candidate-coverage control creates a separate counterfactual by removing L6/P6 from the candidate table while preserving both accepted source populations and the six-link truth table. This represents a candidate-generation miss, not a disappearance of the underlying order or a revised truth. All other pair scores remain unchanged, and no reviewed evidence is enabled.
At threshold seventy-five, L6/P5 now has only one eligible candidate on each endpoint. L5/P5 still scores sixty-five and is below the selected threshold. The conservative rule therefore accepts L6/P5 along with the two easy pairs. It has three accepted links, two true and one false, giving precision two thirds and recall one third. Three left records remain unresolved, which looks like an improvement in coverage if correctness is ignored.
The rule has implemented its declared unique-candidate test correctly. The business failure arises because uniqueness was established only within an incomplete eligible candidate set. P6 still exists in the right source population, and its true relationship has been omitted from the candidates. This is why candidate-generation evidence and accepted-source evidence must remain separate from automatic acceptance logic.
Compare this result with the full-candidate baseline before changing any threshold. Both runs use the same conservative rule, source records and synthetic truth. The difference is one missing candidate relationship. A reviewer who records only the matcher version would miss the reason quality changed; the candidate-generation version is part of the reproducibility record.
The reviewed-four scenario intentionally cannot proceed against this incomplete candidate table, because its supported L6/P6 review refers to a pair outside the frozen candidate population. The model refuses that combination. A real investigation could add the missing candidate through a controlled new candidate version, retain the evidence and repeat the component-level checks. It should not silently insert the pair while claiming to reproduce the original table.
This extension is a narrow software and reasoning test. It does not estimate the frequency of missing candidates in live exports. Its purpose is to demonstrate that conservative eligibility is conditional, and that even a unique, high-scoring, one-to-one link can be wrong when the true alternative is not available to the decision rule.
19. Complete the linkage workshop
Reconstruct the threshold-seventy-five conservative result by hand. List the seven eligible candidates, identify endpoint competition and explain why only L1/P1 and L2/P2 are accepted. Calculate precision one and recall one third using the six-link synthetic truth table. State that four left records remain unresolved and that a unique candidate can still be wrong outside this constructed case.
Then reproduce the greedy sequence and identify the two false accepted pairs. Lower the threshold to sixty-five and explain why accepting one more cross-link reduces precision to two fifths without improving recall. Compare candidate count, accepted count, used-source coverage and correct-link count rather than treating them as interchangeable measures.
Enable the fictional reviewed evidence and explain why all six true links can now be supported in the exercise. Identify which additional evidence route was used and why the result is not a production validation claim. Finally, write a review note stating the relationship assumption, source population, rule version, accepted pairs, unresolved states, quality scope and next evidence actions.
Use the complete fixture and expected answers to check the exact identifiers as well as the arithmetic. The framework adds value when it helps people resist an attractive unsupported match: preserve the source records, expose the competing relationships, obtain proportionate evidence and let the final linkage conclusion remain as narrow as the facts support.
Research sources and scope
- www.postgresql.org — primary reference ↗Composite unique keys, not-null and foreign-key constraints can enforce explicitly defined row relationships; row CHECK constraints do not establish arbitrary cross-row guarantees.
- www.w3.org — primary reference ↗The PROV family supplies a framework for representing provenance and interchange; the restaurant implementation here is an original teaching design.
Build on the foundations
These introductory resources are already available in the existing website library.
