Sub topic 11
Counting How Often Cards Are Grouped Together
Prerequisites and purpose
Assume you know how an open card sort works: participants place content cards into groups and may name those groups themselves. This chapter focuses on the first quantitative step after the sessions. You will count how often each pair of cards appeared in the same group.
This count shows which cards participants treated as related. It does not prove that the cards belong in one navigation section. Use it with category names, comments, and later validation.
From groupings to pair counts
For every participant, inspect each group and list all pairs of cards inside it. If a group contains three cards, it contributes three pairs:
- Card A with Card B
- Card A with Card C
- Card B with Card C
Then add the counts across all participants. A pair placed together by 8 of 10 participants has a similarity score of 80%.
from itertools import combinations
from collections import Counter
sorts = [
{
"Delivery": ["Shipping rates", "Track order"],
"Help": ["Returns"],
"Other": ["Gift cards"],
},
{
"Orders": ["Track order", "Returns", "Shipping rates"],
"Extras": ["Gift cards"],
},
{
"Shipping": ["Shipping rates", "Track order"],
"Returns and gifts": ["Returns", "Gift cards"],
},
]
pair_counts = Counter()
for sort in sorts:
for group in sort.values():
for card_a, card_b in combinations(sorted(group), 2):
pair_counts[(card_a, card_b)] += 1
participant_count = len(sorts)
for (card_a, card_b), count in sorted(
pair_counts.items(), key=lambda item: -item[1]
):
similarity = count / participant_count
print(
f"{card_a} + {card_b}: "
f"{count}/{participant_count} ({similarity:.0%})"
)The denominator is the number of participants, not the number of groups. A pair with a count of zero means no participant placed those two cards together. It does not mean that the cards are unrelated in every context.
Building a similarity matrix
A similarity matrix displays every card against every other card. Each cell contains the share of participants who grouped the row card and column card together.
The matrix is symmetrical. The value for “Track order” and “Returns” is the same as the value for “Returns” and “Track order.” The diagonal is usually 1.00 because each card is treated as being grouped with itself.
| Row | Shipping rates | Track order | Returns | Gift cards |
|---|---|---|---|---|
| Shipping rates | 1.00 | 1.00 | 0.67 | 0.00 |
| Track order | 1.00 | 1.00 | 0.67 | 0.00 |
| Returns | 0.67 | 0.67 | 1.00 | 0.33 |
| Gift cards | 0.00 | 0.00 | 0.33 | 1.00 |
In this example, “Shipping rates” and “Track order” were grouped together by every participant. “Returns” and “Gift cards” were grouped together by one participant out of three.
Use the matrix to find strong relationships, but inspect medium-strength relationships too. A 60% pairing may reveal an important split in users’ mental models. A high score can also result from vague cards or a study with too few participants.
Exercise
Six participants complete a sort. Four place “Billing” and “Invoices” in the same group. What is the similarity score for that pair?
Show answer
4 ÷ 6 = 0.667, or about 67%.