Sub topic 13
Measuring agreement in closed sorts
This chapter assumes you know the difference between open, closed and hybrid sorts, and that you have run or read the results of a closed sort. You should also be comfortable reading percentages and simple Python. Here you will learn how to turn raw placements into agreement numbers, how to read them, and where they mislead.
What a closed sort produces
In a closed sort, participants place each card into categories that you defined in advance. The result is a table with one row per card and one column per category. Each cell holds the number of participants who put that card in that category.
The question a closed sort answers is simple: do people put things where the design expects them? Placement agreement is the measure for that question. For one card, it is the share of participants who chose the category the design team expected.
Suppose four participants sort "Track order" and three choose "Orders". Agreement is 3 of 4, or 75%.
Computing placement agreement
The script below does this for two cards. Each list holds the category chosen by each of four participants. The expected dictionary holds the category your draft structure assigns to each card.
# Closed sort: for each card, the category each participant chose
placements = {
"Track order": ["Orders", "Orders", "Orders", "Help"],
"Gift cards": ["Shop", "Orders", "Help", "Shop"],
}
expected = {"Track order": "Orders", "Gift cards": "Shop"}
for card, choices in placements.items():
agreement = choices.count(expected[card]) / len(choices)
print(f"{card}: {agreement:.0%} placed in '{expected[card]}'")The output is 75% for "Track order" and 50% for "Gift cards". The first card mostly lands where you expected. The second is contested, and the next section explains how to tell what that means.
Looking at the whole distribution
A single agreement number hides where the other participants went. Two cards can both score 50% and mean very different things.
- Card A: 50% in "Shop", 50% in "Help". Participants split between two homes.
- Card B: 50% in "Shop", and the rest spread across four other categories. Participants have no shared idea of where it belongs.
Card A suggests a real overlap between two categories. Card B suggests the card itself is unclear, or that none of your categories fit. You can only see this by reading the full row of counts.
The following script prints the whole distribution for each card, along with the top choice and whether it matches the expected category.
from collections import Counter
placements = {
"Track order": ["Orders", "Orders", "Orders", "Help"],
"Gift cards": ["Shop", "Orders", "Help", "Shop"],
"Returns": ["Help", "Orders", "Help", "Help"],
}
expected = {"Track order": "Orders", "Gift cards": "Shop", "Returns": "Orders"}
for card, choices in placements.items():
counts = Counter(choices)
n = len(choices)
top, top_count = counts.most_common(1)[0]
match = "matches" if top == expected[card] else "DIFFERS from"
print(f"{card}: top choice '{top}' ({top_count / n:.0%}) {match} expected '{expected[card]}'")
for category, count in counts.most_common():
print(f" {category}: {count} ({count / n:.0%})")"Returns" shows a different problem from "Gift cards". Three of four participants chose "Help", while the design expected "Orders". The top choice differs from the plan, and it does so decisively.
Reading the numbers
There is no universal threshold that separates good from bad agreement. Thresholds depend on sample size, on the number of categories, and on how costly a wrong placement is. The ranges below are a starting point for discussion, not a standard.
| Agreement with expected category | Typical reading | Usual action |
|---|---|---|
| 80% or higher | Strong match | Keep the placement |
| 50% to 79% | Moderate match | Check the other choices and comments |
| Below 50%, one rival category leads | Competing home | Consider moving the card, or cross-linking it |
| Below 50%, answers scattered | Unclear card or missing category | Rewrite the card, or revisit the categories |
Chance also sets a floor. With four categories, random guessing would give about 25% agreement. With two categories it would give 50%. An agreement of 50% means much less in a two-category study than in a six-category one, so always compare against 1 divided by the number of categories.
Sample size and uncertainty
With few participants, each person moves the percentage a lot. With 5 participants one person is 20 percentage points. With 30 participants one person is about 3 points. Reporting "60% agreement" from five people gives a false sense of precision.
Report counts next to percentages ("3 of 5", not just "60%"). If you need to say how sure you are, compute a confidence interval for a proportion. The Wilson interval behaves better than the simple normal approximation at small sample sizes.
from math import sqrt
def wilson_interval(successes, n, z=1.96):
"""95% Wilson score interval for a proportion."""
p = successes / n
denom = 1 + z**2 / n
centre = (p + z**2 / (2 * n)) / denom
margin = z * sqrt(p * (1 - p) / n + z**2 / (4 * n**2)) / denom
return centre - margin, centre + margin
for successes, n in [(3, 5), (18, 30)]:
low, high = wilson_interval(successes, n)
print(f"{successes}/{n} = {successes / n:.0%}, 95% interval {low:.0%} to {high:.0%}")Both samples show 60%. With 5 participants the interval is roughly 23% to 88%, which is too wide to support a decision. With 30 participants it is roughly 42% to 75%, which is much tighter. This is a strong argument for recruiting more people for closed sorts than for qualitative open sorts.
Category-level agreement
Card-level scores tell you which cards are troublesome. Category-level views tell you whether a category works.
Two useful category measures:
- Category precision. Of all placements into a category, what share were cards you expected there? Low precision means the category attracts cards that do not belong, so its label may be too broad or too vague.
- Category recall. Of all placements expected in a category, what share actually landed there? Low recall means participants look for its content elsewhere.
from collections import defaultdict
# (card, expected category, category chosen) for every placement
rows = [
("Track order", "Orders", "Orders"), ("Track order", "Orders", "Orders"),
("Track order", "Orders", "Help"), ("Returns", "Orders", "Help"),
("Returns", "Orders", "Help"), ("Returns", "Orders", "Orders"),
("Gift cards", "Shop", "Shop"), ("Gift cards", "Shop", "Orders"),
]
chosen_total = defaultdict(int)
expected_total = defaultdict(int)
hits = defaultdict(int)
for card, exp, chosen in rows:
chosen_total[chosen] += 1
expected_total[exp] += 1
if exp == chosen:
hits[exp] += 1
for category in sorted(set(chosen_total) | set(expected_total)):
precision = hits[category] / chosen_total[category] if chosen_total[category] else 0
recall = hits[category] / expected_total[category] if expected_total[category] else 0
print(f"{category}: precision {precision:.0%}, recall {recall:.0%}")Here "Help" has zero precision because every card placed there was expected elsewhere. "Orders" has low recall because its expected cards leaked into "Help". Together the two numbers point at the same problem: the boundary between "Orders" and "Help" is unclear.
From numbers to decisions
The flow below shows how to move from a card's results to an action.
Treat the numbers as prompts for questions. Before you move a card, read the participants' comments and check the card wording. A low score can come from a poorly written card rather than a poor structure.
Common errors
- Reading agreement as proof the structure is good. Agreement shows that participants can match cards to your labels. It does not show they would find content while doing a real task. Validate with tree testing afterward.
- Ignoring chance. Compare against 1 divided by the number of categories, as described above.
- Reporting percentages without counts. Always show the sample size.
- Leading category labels. If a label repeats the card wording ("Track order" in "Order tracking"), agreement rises for the wrong reason. Keep labels and cards worded independently.
- Averaging across all cards. One overall figure hides weak cards behind strong ones. Report per card first.
- Forcing every card into one place. Some content legitimately belongs in two places. A card split evenly between two categories is a signal for cross-links, not a failure.
Exercises
Exercise
A closed sort with six categories and 20 participants gives the card "Warranty info" 11 placements in "Support", 5 in "Products", and 4 spread over other categories. The design expected "Products". What is the agreement, what does chance look like, and what should you do?
Show answer
Agreement with the expected category is 5 of 20, or 25%. Chance with six categories is about 17%, so 25% is barely above chance. A rival category, "Support", leads clearly at 55% (11 of 20). Move the card to "Support" or cross-link it from "Products", after checking comments for the reasoning.
Exercise
Why can two cards with the same 50% agreement need different fixes?
Show answer
The distribution of the other 50% differs. If it sits in one rival category, participants see two plausible homes and cross-linking or moving the card may help. If it is scattered across many categories, the card is likely unclear or no category fits, so you should rewrite the card or revisit the category set.
Exercise
In a category-level check, "Help" shows 30% precision and 85% recall. What does that tell you about the category?
Show answer
Participants find the cards expected in "Help" there (high recall), but many other cards also land in "Help" (low precision). The category is acting as a catch-all. Its label is probably too broad or vague, so look at which unexpected cards enter it and decide where they belong.