ApiaryActiveLive
Try: pause · settings · learn · wipe
← Community / Reading Room
OT
applied-measurement · 24 min read

Only the Changed Calls Compare Two Checks on the Same Items

A workshop wants to compare two ways of checking paper patterns. Each check produces a simple call on every pattern: positive if it flags the paper for…

A workshop wants to compare two ways of checking paper patterns. Each check produces a simple call on every pattern: positive if it flags the paper for review, negative if it does not. A summary says the first check flagged seven patterns and the second flagged eleven. That’s enough to say the second check gave four more positive calls in this batch. It does not tell the workshop how many labels changed, which direction each change went, or whether the second check did a better job recognizing a genuine issue. Those questions require a record of which calls belong to the same patterns and, for correctness, something more.

Same paper templates examined at two simple unlabeled workstations. (generated editorial illustration; not documentary evidence)
Same paper templates examined at two simple unlabeled workstations. (generated editorial illustration; not documentary evidence)

The missing information is the overlap. The first check’s seven flags might all appear among the second check’s eleven, in which case there are four newly flagged patterns and no reversals in the other direction. Or the two checks might flag wholly different sets, with eighteen patterns changing their labels despite a net difference of just four. The total for each method stays the same in both stories. The experience of someone following the flags, and the information available for an inference about the two methods, do not.

In this article every value described for the paper workshop is fictional. Nothing in the worked example should be used to choose a real review method. The statsmodels documentation for McNemar’s test explains a method for comparing the marginal distributions of two paired binary calls, including exact and large-sample approaches. The scikit-learn confusion matrix documentation illustrates a convention for orienting two-label tables when one axis names known labels and the other predictions. It helps demonstrate why axis labels matter, but the joint table below puts two peer checks on its axes. It gives neither the status of known truth.

Start by making the joined pair visible

Picture a shallow tray of twenty patterns. Every pattern has a stable identifier, and each has been looked at once under each of two checks. The comparison unit is one pattern, not one recorded call. Forty calls went into the example, but they describe twenty paired units. Calling them forty independent observations would treat the two responses to a particular paper as if they had nothing in common. A fold, stain, or ambiguous printed line can affect both checks on that paper. That shared exposure is part of the design rather than a nuisance to ignore.

Begin with the complete joint table. Reading from the row label to the column label identifies the transition in a fixed direction. A positive call in the first check followed by a negative call in the second has the same two words as the reverse transition; the row and column tell which check made each decision. A transposed table can preserve both agreement counts and still reverse the story. Reserve language such as “first” and “second” for the table orientation or for actual chronological order if it matters, and be explicit about which meaning is intended.

First checkSecond positiveSecond negativeRow total
Positive527
Negative6713
Column total11920

Five patterns are positive under both checks. Seven are negative under both. Two are positive only under the first check, and six only under the second. A reader can reconcile each marginal count with the table: five plus two yields seven first positives; five plus six yields eleven second positives. The four positive calls of net difference do not correspond to all changed patterns. Eight changed: six went negative to positive and two positive to negative. The net difference of four is the directional balance of those changes.

There are several useful denominators, and they do not mean the same thing. Of all twenty paired patterns, eight changed their call, two fifths. Of those eight changed patterns, six went toward a positive call under the second check, three quarters. As a difference in positive shares among all patterns, eleven twentieths minus seven twentieths is four twentieths, or twenty percentage points. This is not a twenty percent relative increase. These are descriptive summaries of the invented records. None establishes accuracy, a causal improvement, or a result that would generalize beyond the described batch.

The diagonal matters even though it does not supply the directional imbalance. The eleven and seven positive counts both contain the five agreed positives, so that contribution cancels when the counts are subtracted. The seven agreed negatives contribute to neither positive margin. These twelve agreements do answer a practical question about how often the two checks produced the same output on this batch. A report about how disruptive a new check would be should not throw away agreements simply because the paired test uses different cells. Different summaries can use different parts of one table without making the excluded cells worthless.

Discordant cells in a fictional paired review

The chart and table below are illustrative. The bars select the two off-diagonal counts from the invented joint table. They count patterns that changed in the stated directions. They do not count all reviewed patterns, defective items, errors, or results from either cited documentation site. The chart uses the same first-to-second orientation as the matrix.

Paired transitionIllustrative patterns
Only first check positive2
Only second check positive6

The bar labeled “Only first check positive” starts from a first positive and ends with a second negative. The other bar starts from a first negative and ends with a second positive. These are mutually exclusive groups, so adding the values gives eight changed patterns. The two bars alone do not show the extent of agreement in the batch. Include twenty as the full matched count and the joint table nearby if readers need to reconstruct the net rate or assess how much of the working inventory changed.

Why separate totals lose the evidence that a paired comparison needs

The workshop could publish the two positive percentages and say nothing about which patterns changed. A second analyst might have the original item-level calls but join them on order of arrival rather than identifier. Both approaches can manufacture the same problem. The first has deliberately discarded the matching; the second appears to retain it while connecting the wrong items. A credible comparison should show that the calls are paired on a unit whose identity survived both checks. This is a design requirement, not something that can be reconstructed from the margins after the fact.

The fictional alternatives in the opening make the stakes concrete. If all seven of the first positives are also among the eleven second positives, the full table would contain seven agreed positives, zero first-only positives, four second-only positives, and nine agreed negatives. Four of twenty patterns would change, and all of the changes would run the same way. If no positive flags overlap, the table would contain zero agreed positives, seven first-only positives, eleven second-only positives, and two agreed negatives. Eighteen patterns would change even though the margin difference remained four. The actual toy table is neither of these. Retaining its eight discordances is what identifies which case the reader is looking at.

Pairing usually reflects a substantive reason. A particular paper may be inherently hard to classify because its boundary is rubbed off. Both checks may therefore be more likely to flag that particular paper independently of any systematic difference between methods. Comparing each record with its specific partner preserves the common exposure. It does not require the two procedures to be physically performed at adjacent workstations, nor does it assert that the paired calls are causally independent. It means they belong to the same unit as specified by the study design.

By contrast, different patterns reviewed by two teams would not become paired merely because the teams looked at the same number of them. Pairing by category might be designed in advance using a genuine matching rationale, but that is a different unit and design. An error arises when someone takes the first row from each list and creates a pair without evidence of shared subject or deliberate matching. Pair membership should be understood before choosing a method. The row count and column count cannot compensate for missing identity information.

An unpaired comparison can be appropriate in a design with separate items, if the analytical assumptions are justified. Its relevance here is as a contrast, not a rival result we should compute for the toy. An independent proportions analysis would use a model that does not retain the joint outcomes of individual patterns. That is why it cannot distinguish the extreme examples above when their margins are identical. For a genuine paired review, that loss is decisive even though the average difference remains the same arithmetic quantity.

What McNemar’s test asks in a genuine study

The null in the standard paired binary McNemar comparison concerns the marginal distributions. In this two-label case, it asks whether the two probabilities of being positive are equal. Subtract one probability from the other and the probability of being positive under both cancels. The remaining difference is the probability of second-only positive minus the probability of first-only positive. Under an equality null those two joint probabilities are equal. This relationship explains why the test uses the directions of discordance: it is not a judgment that agreed records have no practical value.

The exact version treats the number in one direction among discordant pairs through a binomial distribution under the null, conditional on the number of pairs that disagreed and given the relevant assumptions. Equality makes either direction equally likely within the discordant set in that model. The comparison concerns whether the observed split between those two categories is compatible with such balance under the design. A large-sample version uses an approximation, with a choice about a continuity correction in the statsmodels interface. Its documentation distinguishes which distribution and statistic the exact and approximate options use. statsmodels McNemar documentation.

A practical reader should not infer that a total of twenty automatically makes the approximate version adequate. The evidence for directional imbalance is carried by the discordant pairs, so the relevant information for that approximation is not indicated solely by the overall number of calls. Even a large collection can have a small number of changed labels. The analysis plan should document the version selected and why it fits the design before the test output is interpreted. An “exact” calculation refers to the chosen mathematical reference distribution; it does not guarantee that the application to a particular workshop was exactly right.

Direction is another decision. A two-sided question treats an imbalance in either direction as relevant. A one-sided question, where appropriate and supported by the planned analysis, has a specified direction. Reversing the axes can leave a symmetric comparison unchanged while reversing the substantive interpretation. Do not let invariance of a number become an excuse for careless headings. If the report claims that the second system flags more, the rows must really be the first system and the columns the second. In the toy table the six are second-only and the two first-only. This article does not calculate a test result or declare a decision from those invented counts.

A p-value from a genuine study would not tell the workshop the size of a useful operational change. Nor is it the probability that equal positive rates are true. It addresses a statistical question under a model and design. A release decision may also require direction and magnitude estimates, uncertainty intervals, agreement summaries, workload, and an understanding of what genuine defects were involved. It can be reasonable to show the full joint table even when a preregistered inferential test is the headline result. Readers can then reconstruct the descriptive consequences instead of learning only which side of a threshold the output fell on.

The test is also not an equivalence check. A result that is not strong evidence of a difference does not establish the two methods interchangeable. A study seeking practical equivalence needs a defined tolerance and an appropriate design and analysis for that question. Likewise, rejecting equality of marginal positive rates does not establish poor agreement in every practical sense. It can signal a directional difference with many joint agreements. Ship the conclusion with its target. The same binary table can inform several questions without making the most familiar test the answer to all of them.

Similar agreement can hide different use consequences

Imagine two fictional checks agree for twelve patterns out of twenty, just as in the example. If four disagree each way, the positive totals are equal even though a visitor would receive a different answer for eight papers depending on which check they used. If all eight disagree in the same direction, the agreement fraction still stays at twelve of twenty, but the new workflow could send many more patterns for review. These are distinct operational stories. Directional symmetry and stability of individual decisions should be described separately.

The same point becomes concrete when mistakes have unequal costs. A positive call may send a pattern to a careful second look, while a negative call may let it pass immediately. Sending more patterns for review is not inherently good or bad. It can mean staff spend more time on cases that turn out fine, or it can capture cases previously missed. A tally of disagreement directions tells us how the queue changes, not which of those stories is true. The workshop needs some independent basis for judging the need for review before rewarding either direction as improvement.

This is an important limit of language such as “false positive.” The first check is not the truth simply because it appears first in the table. The second is not the improved one simply because it was installed later. The scikit-learn documentation names its axes in a different setting, where one is a supplied true label and the other a predicted label. A joint table of two peer checks can use the same rectangular layout without using those roles. Use labels such as “First negative, second positive,” not “true negative” or “false positive,” unless an appropriate reference was established for that separate analysis. scikit-learn confusion matrix documentation.

Ask separately what happened to correctness

To determine accuracy, the workshop needs a reference that can be applied to the same patterns and is defensible for the kind of marks or defects that matter. A second reader is not automatically that reference merely because their decision is later or because they have more experience. One option could be a separately documented adjudication based on the underlying template requirement. It might appropriately retain uncertain judgments rather than promising that every ambiguous pattern can be assigned a simple true label. What matters is to pass clear evidence of correctness to the analysis rather than treating disagreement as its own explanation.

Suppose both workshop checks miss a faint defect on the same pattern. The pair is negative under both checks and counts as an agreement. A correctness evaluation can still regard both outcomes as errors if the reference justifies that result. Similarly, two positive calls on a clear pattern could be two unnecessary flags. A successful agreement metric does not tell you whether the common answer was good. A directional paired comparison also misses a defect in which both systems err in the same way, because it was designed to compare the rates of positive calls, not establish truth.

A third possibility is that the second method reduces errors on both sides. It might remove unnecessary positive calls on clean patterns and add correct positive calls on flawed ones in roughly equal numbers. Its overall positive rate could barely change. In that case a paired directional analysis of flag rates would have little to say about improvements in correctness. A separately defined analysis could compare correct-versus-incorrect outcomes on matched patterns using the reference. The response labels and population have changed, even if the analysis family can be similar. State that difference clearly in both the caption and the data contract.

This distinction can be expressed as a simple decision tree in prose. First decide whether the question is about positive workload, consistency, or correctness. If the question is workload, calculate the related changes in counts or rates among comparable items. If it is consistency, examine agreement and disagreement at the individual level. If it is correctness, bring an appropriate reference and consider what its limitations imply. The three can inform a joint decision, but none should be used with a label borrowed from another. Business users should never have to reverse engineer whether “better” means “more flags” or “more justified flags.”

Before trusting a pair, check how it came into existence

A unit key might seem uncontroversial until the pattern enters a second station. One workstation could stamp a sleeve and another read the identifier from the page inside. If sleeves are reused, some rows that look matched might refer to different patterns. A record can be correct about the existence of a first and second call while wrong about the object that received them. Before interpreting the table, check that the identity contract is explicit and investigate duplicate or changing keys. The resulting estimate is only as paired as the underlying relationship.

Record differences between the conditions of the checks. If the second station always sees a crease introduced by the first, the comparison is of ordered workflows, not necessarily of methods under identical conditions. If checkers see the first result before producing the second, agreement might partly reflect knowledge of the earlier call. If call instructions intentionally require that the second reviewer consider the first reviewer’s note, that can be appropriate for a particular business question. Do not describe the result as an independent assessment of method behavior unless the design supports that interpretation.

Confounding between method and reviewer can create a similar problem. Suppose one expert always runs the first check and a new trainee always runs the second. Differences can come from those people, from the method, from different lighting, or from some combination. McNemar’s test does not identify the responsible mechanism. It answers a question about the paired binary outputs under the stated conditions. An experimental design that aims to separate reviewer and method would have to plan for those distinct sources of variation. A summary of a fixed workflow may have a narrower aim and should say so.

Date and batch can matter too. A day of checking many paper patterns can share printing conditions, a template version, or an operator. Items can be paired correctly within each unit and still not be independent across units. The usual simple exact comparison relies on assumptions about discordance directions across pairs; making each row a distinct identifier is not a substitute for an appropriate dependence model or design. Use batch-aware thinking when evaluating a real study. The toy table contains no batching information and cannot adjudicate any such choice.

A repeated assessment of one pattern is not necessarily a fresh independent example. A workshop may review it many times to learn whether a call is stable. That answers a useful repeatability question. If repeated calls are put into a set of twenty records as though each record came from a different pattern, the count can exaggerate diversity and apparent precision. Decide whether each pattern contributes one case under a prespecified rule or whether the study explicitly models repeated ratings. Label the unit clearly enough that two analysts would form the same table.

Treat missing and unclassifiable calls as a separate state

In a real archive, the first station may issue a call while the other station has no usable image or record. Missing does not mean negative. The second station neither rejected nor cleared the item in a way the simple table can represent. A table that codes absence as negative adds artificial reversals to the first-only category and can create a directional result out of record handling. Preserve reasons for missing calls and report the number of complete pairs used for the comparison instead of forcing every intended unit into a two-by-two table.

Selecting complete pairs can itself change the population under study. If the second check cannot produce a label for particularly difficult items, the retained pairs may describe only the easier part of the workload. An apparent comparison among cleanly classified patterns cannot establish behavior for all items submitted. Show how many entered the workflow, how many were eligible for pairing, and where the rest went. Those counts belong beside the analysis because they qualify the denominator. In the fictional example all twenty have valid paired decisions, but that convenience should not be copied into real reporting.

An “uncertain” response can be meaningful rather than a defect in collection. If a workflow can decline to make a positive or negative decision, define how that third response is studied. It might be reported in a larger joint table, or a particular planned binary question might combine categories explicitly. Do not silently decide after seeing how many reversals occurred. The operational effect of declining is not necessarily equivalent to clearing a pattern. A clear record retains that distinction so the reader can judge whether the binary analysis answers the intended question.

The same care applies when a record is revised. Retain the intended analysis timestamp for both calls. A pattern given an initial negative and corrected later is different from a pattern always known to be positive. If one column represents initial decisions and the other final decisions, the paired contrast addresses revision as well as any difference in method. A final table can be valid for one purpose and uninformative for another. Decide first whether you want initial comparison, agreement after adjudication, or consequences of a reversible workflow, and then extract consistent fields.

Reporting decisions should survive a second reading of the chart

An analyst can present a simple paired results section without assuming every reader wants the test details. Open with the unit and comparison: the same twenty fictional paper patterns received a binary call under each check. Follow with the full table, showing the convention for which check sits on which axis. Then highlight the directional difference and define its denominator. A clear sequence protects a reader from inferring a new claim from a production-oriented caption such as “the upgraded method caught more.” What the toy establishes is a difference in flagging, not detection of a flaw.

Show rates only for explicit purposes. The four-pattern net shift can help a manager estimate the direction of workload change within the example. The eight changed decisions are relevant to how much person-by-person follow-up could be affected. The agreement total is useful for checking how many patterns would see no different action if the workshop changes methods. The ratios do not compete for a single slot labeled “impact.” A short table of definitions can be clearer than a set of large percentages where the audience has to remember which fraction used eight and which used twenty.

An uncertainty statement in a real study should match the design and target. A question about the difference of positive probabilities needs evidence appropriate to paired binary data, not an interval constructed from two independent calls per pattern. A question about stability during different runs may need a model or sample spanning the conditions of those runs. A test designed for one item-level endpoint does not automatically establish a batch-level decision. The toy deliberately has no uncertainty result: it tells readers what information a paired analysis would use, not how a real collection behaves.

Prose should also make clear whether the labels are sequential or merely ordered for presentation. If a reader thinks every “first” occurred earlier in the day, they may infer a time effect that the setup never introduced. A well-designed balanced review might vary order across patterns, while naming the methods First and Second in the matrix for convenience. If sequential order was fixed and forms part of the study, record that and explain why. The joint table should orient the comparison without smuggling a chronology into the conclusions.

A useful technical crosscheck is to have two reviewers independently rebuild the four counts from a small comparison set with known expected answers. Choose at least one one-way reversal in each direction, an agreed positive, an agreed negative, and an incomplete example that should not be in the joint table. Compare the displayed marginal totals to the row-level records, then compare the chart bars to the off-diagonal cells. This tests more than summing the four values to twenty. A swapped pair of axes would also sum correctly. Include the labels in the proof, not only the arithmetic.

Before publishing a result elsewhere, inspect whether the compact copy preserves the polarity convention. A summary such as “six improved and two worsened” is unsupported if a positive label means a review was requested and no truth reference was assessed. “Six gained a flag and two lost a flag” states the observable transition. If describing another proof where a flag means clearance instead, change the language accordingly. Names like positive and negative are not inherently good or bad. They are categories whose practical role is defined by the workflow.

What changes when several questions share a table

A workshop may be tempted to ask an array of questions after seeing the results: whether a new method flags more, whether it agrees with staff, whether performance improved on heavily marked stock, or whether the method should be adopted. The joint record is a valuable starting point for that investigation. It does not make all comparisons the same analysis. Which groups were predetermined, how many observations support them, how multiple questions affect inference, and whether a reference exists can all matter in a real evaluation. A figure need not do every job to be useful.

Patterns may also come in distinct classes. A new check could increase flags for one type and reduce them for another. Combining everything can cancel the effects, but looking at small groups after the fact can overinterpret noise. Keep enough context to identify important application differences, and distinguish exploratory descriptions from formal planned comparisons. It is possible to report a pattern worth checking later without turning it into a claim established by the initial study. The sample uses a single batch and deliberately makes no claim about such categories.

Comparing more than two checks changes the information structure. A pattern can carry three or more calls, with disagreement relationships that cannot be described exhaustively in one two-by-two table. Pairwise summaries may help an editor explain particular transitions, but an evaluation with several preplanned comparisons can require a broader design or an appropriate method accounting for them. The existence of one named test for paired binary data is not a reason to squeeze a more complicated workflow into whichever two methods happened to disagree the most. Let the question determine the relevant unit and comparison.

In a real deployment, a change can affect what staff do with a flag, not just how many flags appear. A cautious trial might keep the first and second calls separately and track what happened at a documented review desk. That could distinguish workloads from mistakes and create a defensible history of decisions. This article’s toy labels cannot show whether following a particular flag helped. A report can still show where decisions changed and explain which additional observations would be needed before choosing a different review process.

Decide what the disagreement list will be used for

In an operational trial, reviewers may want a short list of patterns whose decisions would change if a new check replaced the old one. That list can answer a narrower practical question than the statistical test. Each of the six patterns newly marked positive would enter the review queue under the second check. Each of the two newly marked negative would leave it. Looking at the underlying paired records can show whether the work assigned to these changes is comparable. Some patterns might need a quick glance, while others require a long reinspection. A net increase of four flags need not translate into a fixed number of staff minutes.

Good follow-up distinguishes asking why a particular flag changed from proving one check more accurate over the whole inventory. An analysis that sends only the eight changed calls for adjudication can illuminate causes of disagreement. It will not see any pattern both methods missed. If the aim includes shared errors, reserve a separate look at agreements, with a clear rule for how considered patterns were selected. Otherwise investigators may conclude that all meaningful mistakes were in the group they explicitly chose to inspect. The eight are a useful lead, not a complete truth set.

A decision memo can organize findings by type of support. The paired matrix gives observed flag transitions for the matched units. Follow-up review can describe reasons for some of those transitions. A defensible statistical comparison of positive probabilities requires the design and assumptions discussed above. A staffing estimate also has to reflect time per review. Put limits on each claim rather than asking the flag tally to answer four questions in one sentence. This makes it easier to see what new evidence would actually change the recommendation in a real trial.

Suppose a supervisor wants only a list of patterns that have newly entered a review queue. It may be reasonable to send those six under the fictional setup, but an accompanying note should say what was selected. A downstream reader could otherwise infer the absent items were passed by both systems. The list excludes agreed positives, agreed negatives, and first-only positives by deliberate rule. Traceable selection criteria matter even when the report is not intended as a statistical summary.

Keep the role of the evidence stable across revisions

Late corrections create a practical versioning issue. Say an analyst discovers after drafting the chart that two pattern identities were swapped during import. The marginal positive totals might remain seven and eleven, yet the joint cells and discordant counts can change. A project that verifies only overall rates will not catch the need to rebuild the chart. An appropriate correction should identify the faulty matching step, recompute the paired table, and validate the axis order again. If descriptive counts or conclusions change in a real report, list those changes rather than claiming that unchanged margins made the correction inconsequential.

Another revision might redefine the positive label after the workshop changes the procedure. That is not an error in the prior label; it is a shift in what response is being measured. Preserve the earlier definition for old tables, including how staff handled uncertain cases. A chart with conditional labels like “newly flagged” should travel with this information if the site compares editions. Otherwise the same pair of numbers could be described as an increase in rejected stock one month and an increase in review referrals the next, although those actions are not equivalent.

In any revision, retain a way to recover the complete pair counts from published summaries when that is appropriate for the audience and available data. A chart of off-diagonal totals is useful because it directs attention to change. The four-cell table and the sample definition provide the context that prevents a better-looking summary from losing meaning.

Return to the tray and its two workstations. The repeated checks created pairs, not twice as many items. Their agreements describe stability, while two and six identify the directions of change in the illustrative batch. The difference in marginals is a useful summary as long as it does not erase how the changes were distributed. And without a separate basis for correctness, the new flags are new decisions, not proven discoveries. A transparent paired comparison keeps each of those distinctions visible when the table leaves the workshop.

Frequently asked
What is Only the Changed Calls Compare Two Checks on the Same Items about?
A workshop wants to compare two ways of checking paper patterns. Each check produces a simple call on every pattern: positive if it flags the paper for…
What should you know about start by making the joined pair visible?
Picture a shallow tray of twenty patterns. Every pattern has a stable identifier, and each has been looked at once under each of two checks. The comparison unit is one pattern, not one recorded call. Forty calls went into the example, but they describe twenty paired units. Calling them forty independent observations…
What should you know about discordant cells in a fictional paired review?
The chart and table below are illustrative. The bars select the two off-diagonal counts from the invented joint table. They count patterns that changed in the stated directions. They do not count all reviewed patterns, defective items, errors, or results from either cited documentation site. The chart uses the same…
What should you know about why separate totals lose the evidence that a paired comparison needs?
The workshop could publish the two positive percentages and say nothing about which patterns changed. A second analyst might have the original item-level calls but join them on order of arrival rather than identifier. Both approaches can manufacture the same problem. The first has deliberately discarded the matching;…
What should you know about what McNemar’s test asks in a genuine study?
The null in the standard paired binary McNemar comparison concerns the marginal distributions. In this two-label case, it asks whether the two probabilities of being positive are equal. Subtract one probability from the other and the probability of being positive under both cancels. The remaining difference is the…
References & sources
  1. Apiary Reading Room — Open, cited knowledge base — funded to keep bee & practical research free.
From the Apiary Reading Room. Opinion & editorial — not financial advice. We don't overclaim.
More from the Reading Room