By Austin Little

Forty readers each inspect a sample under two lamp layouts. Each person gives a yes or no answer to the same legibility question in both layouts. Twenty readers say yes both times. Twelve say no both times. Seven say no under the first layout and yes under the second; one switches in the other direction. The two layouts agree for most readers. The difference in the number of yes answers comes entirely from the eight people who changed their answers.
That is not a contradiction. Agreement asks how often a reader gave the same answer twice. A paired directional comparison asks whether one type of switch was more common than the other. A lamp layout can produce highly consistent answers for many readers while still prompting a meaningful net change among a smaller group. Conversely, a design can prompt many changes without increasing the overall yes rate if those changes are balanced between directions.
The pairing is the important feature. There are forty people, each assessed twice, not eighty independent readers. The result of interest is the change within the same reader when the layout changes. Retaining each pair protects that information. If an analyst saves only two yes totals, the difference in the totals survives but the mechanism behind it does not. A matched test needs to know how many readers switched and which way they switched.
Begin with the two responses for each reader
Call the layouts A and B and keep that order in the data and in the prose. For each participant, preserve the response under each layout and keep the order of presentation in a separate field. The A label is the layout identity; it does not need to mean the lamp the participant saw first. If some readers saw B first to investigate order effects, their layout responses still go into the A and B columns, and the sequence goes somewhere else.
The study question should specify what yes means. It might mean that the reader judged a test card legible without help from another light, under a defined procedure. A yes for identifying a heading from afar is not necessarily comparable with a yes for reading a small footnote. Keep the question and task consistent across layouts, or document any deliberately varied material. Otherwise the differences in the answers need not be about the lamps.
A matched pair consists of two usable observations linked to one identity. A record with no valid B response is not a no under B. A person who submitted the same condition twice does not supply a full pair merely because two rows exist. Confirm that the two observations refer to the intended session and task. If repeated trials are part of the design, decide at what unit and with what rule the observations will enter the analysis.
It is practical to keep one row per completed pair for the simplest analysis. A raw log can use separate rows for each assessment with a participant key, task key, layout identifier, response, and relevant timing. Preserve the raw lines, then make a paired table under an explicit matching rule. A badly chosen join can pair the wrong answers while leaving the marginal totals unchanged, which makes the resulting error difficult to catch from a bar chart alone.
Do not encode yes and no as a numerical legibility scale without defining its meaning. The binary question records a decision, not how much the printing improved or how fast the person read. A person who says yes both times may still find one layout more comfortable. A person who says no both times might nonetheless perceive an improvement that does not cross the binary threshold. The paired table answers the specified yes-or-no question, not every question the pilot might raise.
Read the illustrative chart as four kinds of paired record
The following values are invented for a pilot interpretation exercise. The count on each row refers to readers, not separate observations. The two directional labels describe the move from layout A to layout B, regardless of which light was presented first.
Paired responses to two lamp layouts
| Paired response | readers |
|---|---|
| Yes both | 20 |
| No both | 12 |
| No to yes | 7 |
| Yes to no | 1 |
Illustrative only. Invented values, not taken from a source dataset or an official target. The R documentation supports the method, not the counts.
Twenty plus twelve gives thirty-two agreements out of forty readers, or eighty percent. Seven plus one gives eight discordant pairs, or twenty percent. Here a discordant pair means that the two binary responses differ. Among those eight, seven favor B according to the declared yes criterion, and one favors A. The net change in the number of yes responses is six in favor of B.
In this same paired sample, twenty-one readers say yes under A: twenty yes under both plus the one who later says no under B. Twenty-seven say yes under B: twenty yes under both plus the seven who say no under A. Those are 52.5 and 67.5 percent, respectively. The observed paired difference in the yes share is fifteen percentage points, computed as six divided by forty. That percentage-point difference is a description of the whole completed sample, whereas seven of eight is a description conditional on switching.
Keep the denominators visible. It would be wrong to say that only eight readers were included in the study or that seven out of forty expresses the net change. Likewise, saying that seven of eight switched toward B is not equivalent to saying that 87.5 percent of all readers preferred B. Most readers did not change their yes-or-no answer. The conditional and whole-sample descriptions are both useful if they are labeled.
The word “favor” also needs a scope. A no-to-yes switch favors B on the recorded binary criterion. It does not establish which layout the reader would choose for long sessions, whether either layout meets a formal standard, or whether the switch was caused by the lighting rather than another difference in the presentation. The invented numbers are best used to learn how the matched comparison works, not to recommend buying a particular lamp.
Why the two same-answer cells cancel
Write the difference in yes totals as yes under B minus yes under A. Every reader who says yes under both contributes one to each total, so their contribution to the difference is zero. A reader who says no under both contributes zero to each total. A reader who moves from no to yes contributes plus one to the difference. A reader who moves from yes to no contributes minus one. The sum of all contributions is therefore seven minus one.
This cancellation explains why the discordant cells identify the direction of the change. It does not make the concordant cells disposable. They determine how widely the changes are distributed through the whole group and contribute to the denominators for agreement and absolute difference in rates. They can also reveal where other investigations may be worthwhile. Twelve people failing under both layouts can be a practical concern even if it does not decide the paired direction.
For another example, imagine the same eight directional switches among eighty readers instead of forty, with the remaining readers agreeing with themselves. The relative split of seven against one among switchers would be unchanged. The observed net change in yes percentages would be smaller because the same six extra yes answers are divided by more readers. A report that presents both viewpoints is clearer than one that uses either the matched test or overall rate difference to tell the entire story.
Conversely, holding the difference in yes totals fixed does not fix the uncertainty in a matched comparison. A difference of six can arise from seven switches in one direction and one in the other, or from thirteen in one direction and seven in the other. In both cases the change in the marginal count is six. The split among discordant pairs is different. That difference in paired structure matters to a directional test and cannot be recovered from margins alone.
High agreement is possible when one answer is simply common under both conditions. Agreement in that sense is not a direct measure of good performance. A table could contain almost all no-no responses, which yields excellent raw agreement and poor legibility on the task. Conversely a worthwhile improvement can reduce agreement because more participants change from no to yes. Decide whether the question is repeatability, improved yes rates, or the performance level under either condition before choosing which statistic should lead the report.
Put the data in a cross-tab with labeled axes
The R documentation for cross-tabulation shows how to construct a contingency table from categorical records, or from records containing counts. For this pilot, the two categorical axes should refer to the same readers under the different layouts. Choose and document the level order. If rows represent A and columns represent B, a row no and column yes is a no-to-yes switch. Inverting the axes changes which cell gets that label, even though the two-sided symmetry test is unchanged.
The ordering is easy to verify without calculating a test. The A yes row must total twenty-one. The B yes column must total twenty-seven. The B no column contains twelve no-no readers and one yes-to-no reader, so it totals thirteen. Summing all four cells returns forty. These checks catch a swapped axis, duplicate entry, or omitted group before those mistakes end up in the prose.
A convenient data pipeline should not rely on an automatic factor order from the current data. If no one moved in a given direction, a zero cell is still part of a two-level design. Explicit levels and a checked two-by-two shape keep the table interpretable. Preserve an actual zero as a count, but do not fill a category with zero because a file was missing. Distinguish “we looked and saw none” from “the relevant pairs were not available.”
When feeding R a matrix of four numbers, verify how entries were arranged. A row-wise human transcription and a column-wise constructor can produce a transposed table when defaults are misunderstood. Named dimensions and a checked printout are essential. Include the count table with the analysis rather than saving only the p-value. Anyone reviewing directional conclusions should be able to point to the actual no-to-yes cell and see which label was used.
The analysis can be reproduced from an aggregate table, but a real study also needs rules for constructing the input records. Which session counts if one participant tried the task twice? Did all participants see the exact same question? Was a no response logged before a later correction? A defensible table reflects a known policy about these situations. The mathematical test cannot resolve ambiguous inputs merely because the table has four cells.
What McNemar's test asks
The R documentation for McNemar's test describes a symmetry test for paired classification counts. In this two-by-two pilot, the null hypothesis says that the probability of a no-to-yes pair equals the probability of a yes-to-no pair. It does not require the probabilities of yes-yes and no-no to match. Nor does it assert that a reader's responses under the two lights were independent. Dependence within the reader is precisely why the pairing is preserved.
Under the null and suitable assumptions about the independent units, consider the eight discordant pairs. Conditional on a pair being discordant, the two directions are equally likely. A simple exact two-sided calculation compares the observed seven in one direction with splits at least as uneven in either direction, using a binomial distribution with eight trials and probability one half. The comparison is between directions of switching, not between the two tallies of yes taken as independent outcomes.
With eight discordant pairs, an outcome of seven or eight in favor of B occupies nine of the 256 equally likely direction patterns under this model. The mirror outcomes of one or zero occupy another nine. Together these give eighteen of 256, or about 0.0703, for the stated exact two-sided calculation. This is an illustration of the specified conditional calculation, not the result of the default R chi-squared implementation. It also is not the probability that the lamps are equally legible.
R's documented function uses a chi-squared approach and defaults to a continuity correction in the two-by-two case. Here the corrected statistic is the square of five divided by eight, or 3.125, with an approximate p-value near 0.077. Without the correction, the squared difference is thirty-six and the statistic is 4.5, for an approximate p-value near 0.034. The contrast is useful in a toy exercise because only eight switches provide directional information. It is not an invitation to use whichever calculation supports a desired headline.
Choose the analysis method before looking at outcomes in a real study where possible. State whether the inference is exact or approximate, which correction or choice of tail was used, and why. A deliberately small pilot can honestly lead with all four counts and the observed rate difference while treating inferential calculations as exploratory. The purpose is to learn about the task and what a stronger follow-up would need, not to win a contest between p-values.
A directional one-sided question is also different from deciding afterward that only one direction matters. If a study's intended question and analysis support a prespecified one-sided comparison, it can be labeled as such. The two-sided result above remains a two-direction calculation. A reviewer should not halve it after inspecting which layout had the higher yes count and then call the analysis confirmatory. The data say which way the observed changes ran; the design says what inference was intended.
There is no evidence of a direction in a table with no switching pairs. In that case the conditional comparison has no observed directions to contrast. Strong concordance might be exactly what a repeatability study hopes to see, but it does not establish that the layouts would always be equivalent in a broader population. An analysis plan can name what to report for that special case without forcing a numerical statistic that the data do not inform.
Why two independent proportions miss the target
An independent two-proportion comparison treats the yes and no counts under A as coming from one set of people and the counts under B as coming from another unrelated set. That is not how this pilot was structured. The same reader can bring visual ability, familiarity, and individual judgment tendencies into both responses. The pairing captures how the two responses co-occur. Pretending each condition was sampled independently treats a major part of the design as irrelevant.
The point estimate of the difference in yes proportions can look identical under either presentation of the data because subtracting the marginal rates is the same arithmetic. The problem is how the analysis estimates uncertainty and what comparison it is designed to test. In the matched design, the dependence between responses and number of switches matter. The independent method cannot recover them from the two margins. Comparing only point estimates can therefore conceal an inappropriate inference.
A simple counterexample keeps the yes margins of twenty-one and twenty-seven while changing the paired structure. Ten readers could say yes both times; two could say no both times; seventeen could switch from no to yes; eleven could switch from yes to no. Both sets still give forty participants and the same margins. Their agreement and discordance are very different. An independent calculation sees the same input totals in both cases, while a paired analysis can distinguish them.
Independence between readers can still matter. If family members collaborate on their answers or the same person submits several supposedly independent pairs, the simple inference may be inappropriate even though responses within pairs were properly labeled. A pilot can identify its actual units and state whether readings occurred in clusters, sessions, or repeated measurements. Match the analysis to the dependence at both levels: within each pair, and across the units that contribute pairs.
Check what might have caused a switch
The matched design automatically keeps many features of a reader the same across conditions. It does not automatically isolate the effect of the lamp. If everyone saw A before B, recognizing the text from the first attempt might have made the second question easier regardless of lighting. Fatigue might instead make it harder. A change in the card position or background might also matter. These are design questions rather than corrections to the final p-value.
A stronger follow-up can plan the order of the layouts and record what was actually presented. Balancing or randomizing order may help separate systematic order effects when the associated assumptions and procedure are suitable. Comparable cards or tasks may be necessary if readers would otherwise recall the answer. Whatever the design, preserve layout labels separately from chronology. A response under the second presentation is not synonymous with the B condition.
Define standardized conditions where they matter. Let the pilot reader know what is being judged, but avoid changing instructions between layouts. Keep notes on circumstances such as glare from another source or a participant needing to pause. The material itself can be documented without defending every decision as the sole proper design. The key is to make plausible alternative explanations visible before treating changes as evidence of a general effect.
Supplemental descriptive data can be useful when the yes or no answer is coarse. Ask whether the person noticed glare, whether they could read part of the card, or whether they had difficulty at a particular location. Keep this supplemental information distinct from the primary response and its analysis. Do not retroactively reclassify some no answers as yes to make the primary table agree with qualitative remarks. A pilot is supposed to reveal where an outcome measure was insufficient.
If the team examines many subgroups, many tasks, or multiple definitions of yes, give those explorations an honest status. Patterns may help plan follow-up, but a set of data-driven comparisons is not the same as one prespecified question. A tiny subgroup can contain very few switches, which means its apparent direction may be unusually unstable. Report enough counts to make that visible and resist attaching precise broad conclusions to small exploratory slices.
Decide what to do about incomplete pairs before tabulating
R's McNemar documentation indicates that when vector inputs contain incomplete cases, those cases are removed before the contingency table is computed. This is a software behavior, not a study policy. If circumstances make some pairs incomplete, the analysis should report how many, how they became incomplete where known, and why the retained pairs are appropriate for the stated question. A missing answer cannot become no merely because a binary table requires two levels.
Missingness can affect interpretation. A person who found A unusually difficult may choose not to continue. A participant who loses interest under B can leave a different pattern. If incomplete pairs are routinely removed without recording their layout and circumstances, the remaining participants may not represent even the original pilot group. Describe the outcome as applying to completed pairs unless a separate, defensible method supports a broader target.
Suppose five additional people complete A but not B. The paired table of forty stays the same if none can be matched, but the reader needs to know that forty-five started under the relevant recruitment definition. The five should not be assigned to the no-no cell. The study can report their available observations separately and decide whether sensitivity to incomplete outcomes is important. Accurate denominators are often more informative than an extra decimal place in an estimate.
Coding rules deserve review as well. A skipped item, an unclear response, and a recorded no are three different statuses. A spreadsheet export that uses blanks for two of them should still carry enough information to distinguish them where possible. If the application reads strings, confirm that variations in capitalization or spacing map correctly and that unsupported values are flagged. The result should depend on scientific definitions, not on what happened to sort first.
Run checks on identity safety as well as missingness. A simple count of unique participant keys can identify unexpected duplicates. Verify that layout assignments are both present when intended and that repeated submissions follow the predeclared policy. Use restricted or deidentified records in any public audit materials as appropriate. A complete methodological explanation does not require reproducing people's names or unrelated individual details.
Explain what the p-value and observed effect can each carry
The fifteen percentage-point observed difference describes the complete pilot pairs. It is easy to communicate and relevant for planning. It does not alone provide an uncertainty interval or prove a result would repeat in a larger population. A proper interval for a paired proportion difference should account for the matched design. An interval for the fraction of switches going toward B describes a different estimand. Do not put the wrong uncertainty measure beside the right number.
A p-value under a declared symmetry model addresses how unusual a discrepancy in switch directions would be under that model and analysis. It is not the size of the advantage and does not directly answer whether a practical improvement is large enough to justify a redesign. With a modest number of discordant pairs, a directional pattern can be noteworthy and still uncertain. Conversely, in a very large study a small directional difference can be statistically detectable and practically unimportant.
Do not generalize from the fictional results. No real reader was observed for this chart and no actual lamp was evaluated. Even in a real pilot with these counts, the label would only cover the tested material, readers, and conditions. A representative follow-up would need a design that addresses its intended users and context. The pilot figures are an excellent explanation of why the paired question differs from a comparison of independent proportions, but they are not purchasing or accessibility guidance.
A useful planning discussion considers how common discordance might be. The number of readers who switch, not merely the total sample size, determines how many binary directions are available for the conditional comparison. This does not justify recruiting until a preferred p-value appears. It can help design a follow-up with an appropriate sample plan, target effect, and decision criteria, all defined before seeing its outcomes. A pilot is information for planning; it is not automatically the confirmatory study.
Avoid using “no evidence of a difference” as shorthand for equivalence. Failure to show a compelling directional imbalance under one procedure does not establish that the layouts are sufficiently alike. Equivalence and related questions require a meaningful margin and an appropriate design. A companion descriptive note can say what changes were observed and where uncertainty remains. That is more useful than interpreting a threshold as a switch from “different” to “same.”
Read the four counts before looking at the test result
A concise pilot summary can put the counts first. State that twenty readers answered yes under both, twelve no under both, seven switched no to yes, and one switched yes to no. Add the observed fifteen-point difference and distinguish the eighty percent agreement. Then, if a directional test is included, explain that it compares the seven and one among the eight switching pairs. This order helps readers understand the result even when they do not know the test by name.
In graphical form, consider pairing the bar chart with a table explicitly naming which axis is A and which is B. If a version displays two marginal yes bars, also make the transitions visible. Marginal bars alone can invite an independent-group interpretation. Conversely, presenting only two discordant bars can hide the prevalence of agreement. The figures work together when labels and denominators travel with each display.
Decide whether the viewer needs a summary of the participants who did not benefit by the yes criterion. The twelve no-no readers may be especially important in a study intended to identify accessibility barriers or usability problems. Their responses are not evidence about the direction of switching, but they are evidence about a different, equally practical question. An action plan can distinguish improving for more readers from identifying which layout produced more yes responses in this pilot.
A review should keep causal language proportionate. If a pilot was not designed to isolate order, card differences, or other conditions, describe the response patterns under the layouts rather than making a definitive claim about why they changed. Observations can inform decisions without pretending the study answered every alternative explanation. A sentence that says “we observed more switches to yes under B” is often strong enough for a study summary.
Add a compact example of the audit path
A technical notebook can start with four cells rather than immediate software output. Write out the names and counts, then recalculate the margins and total. Once the table is checked, run the selected method and record its settings. Preserve enough information for someone else to recompute the exact conditional comparison without the original application. This exercise is especially easy here because there are only eight discordant pairs and the null probabilities are simple.
For a practical review, make a second version of the table by swapping the layout names. The no-to-yes and yes-to-no cells exchange places; the two same-answer cells stay the same. The estimated difference reverses sign and the two-sided symmetry result is unchanged. If the software or narrative reacts differently, inspect the labels and which tails were used. This consistency check catches directional wording errors without requiring new field data.
Make a separate version with no switches. Keep all responses recorded as concordant rather than deleting those readers from the table. The raw agreement is then complete, the net difference is zero, and there are no observed switch directions to analyze. This example helps explain what it means for the individual switches to supply the directional information. It also keeps reviewers from expecting a test statistic to carry practical judgments that the matched design did not ask.
Another version can keep the observed agreement rate while balancing the switches equally. Four no-to-yes and four yes-to-no pairs would still give twenty percent discordance among forty readers, but would give no net change in yes totals. This reinforces the difference between seeing how often people changed and asking whether one direction predominated. A usable report does not describe balanced switching as evidence that no individual was affected.
It is also useful to test an apparent change of opinion that really reflects data entry. Suppose one analyst codes the first presentation as A and another codes the lamp hardware as A. A person who saw the second lamp first might have their row reversed in one dataset. The resulting two by two table may still contain forty rows while shifting evidence between discordant directions. Explicit variable definitions and a sample check against raw records catch a problem that arithmetic alone cannot identify.
Keep the reader, not the table, as the unit of interpretation
If there are several cards per reader under each layout, a simple table can no longer be assembled by copying every paired card into a list and assuming independence. Those repeated pairs share a reader, and some may share similar material or a common session. A real analysis can choose a single prespecified response per person, a meaningful person-level summary, or a method that appropriately accounts for the repeated observations. Each choice changes the exact question answered. The four-cell illustration concerns only one valid binary pair per person.
Imagine a participant who can read a bold heading under both lamps but changes from no to yes for small text. A combined yes indicator depends on whether success was defined by both tasks, either task, or a designated primary card. None of these definitions is naturally implied by two observations. Record the rule before tabulation so a later reviewer sees precisely what the label means. If new information suggests a better outcome for the next study, log that as a design change rather than quietly altering the original outcome.
The next study may need to consider decisions that the pilot cannot make. An organization might care whether a design helps across different contexts or whether it introduces discomfort despite helping legibility on one card. A paired binary pilot can identify useful signals and tradeoffs, but it answers only the stated yes-or-no task. Preserve the qualitative notes and collect measures aligned to other outcomes if those outcomes matter. The scope limit protects the study and the people who might rely on it.
At signoff, ask a reviewer to use only the table and caption to explain all three conclusions. They should find that thirty-two readers agreed with their earlier response, that seven of eight switches ran toward yes under B, and that the whole sample had six more yes answers under B. If they cannot get those conclusions without assumptions about which responses are paired, put the missing definitions in the figure or nearby text. Accessibility of the explanation is itself worth testing.
Watch the difference between a change score and a preference ballot
A reader can say yes under both lamps and still prefer one. Another person can answer no twice because neither arrangement gives sufficient contrast, while explaining that one had less glare. Those differences matter for a practical redesign, but they are not captured in the binary change. An analyst should not infer a preference ballot from the paired table or assign silent preferences to the concordant cells. A direct preference question deserves its own wording and its own treatment of ties or no response.
Similarly, the no-to-yes reader is a directional success on this one task. If the investigator wants to describe a change in reading errors or a threshold for sustained comprehension, the yes response is not interchangeable with those measurements. A change score needs a clearly defined input and outcome. Keeping the outcome definition narrow here is what allows the calculation to be simple. Expanding its meaning after collection makes the analysis appear stronger while reducing what readers can actually verify.
A useful figure caption can name that scope in plain language: the people were asked the same binary question under A and B, and the chart depicts their outcomes by transition. It should also say whether labels denote conditions rather than sequence and whether incomplete pairs were excluded. Readers often encounter the chart without the methods section. A short explanation helps them correctly see one set of people rather than infer two bar-chart groups sampled independently.
Ask an operations stakeholder to identify what the table would make them do differently. They may choose to investigate why the twelve no-no readers struggled, compare order effects in a follow-up, or collect a direct preference response. None needs a blanket conclusion that B is better for everyone. Design the handoff so people can use the observed directional pattern without forgetting the pilot's other signals.
A more complete future report can place the raw table alongside qualitative findings, margins, paired difference, and uncertainty. Order these outputs by the question they answer and retain the unit of readers throughout. Avoid combining all those observations into a single score unless the scoring rule was chosen and justified independently. A simple well-labeled table is more useful than a multidimensional result collapsed into a number no one can reconstruct.
End with the observed counts, not a universal verdict: twenty yes both, twelve no both, seven no to yes, and one yes to no in this invented group. The same readers supplied both judgments, so only the switching cells reveal the direction of change. The agreeing cells describe the stability and overall level of responses. Reporting them together tells readers what happened and, just as importantly, which questions the pilot never attempted to settle.