Sub topic 10
Clustering Observations Bottom-Up
This chapter assumes you can already write atomic observations, give each one an ID and a participant, and apply open codes to them. If those steps are new to you, review them first. Here you will take a set of coded observations and group them into clusters without deciding the categories in advance.
What bottom-up clustering means
Bottom-up clustering builds groups from the observations themselves. You read one observation, find another that is similar in meaning, and put them together. You add a third, and so on. The group's label comes after the group exists.
The opposite is top-down sorting. You start with a list of categories, such as "onboarding", "search", and "sharing", and drop each note into one of them. Top-down sorting is faster. It also finds only what you already expected. Bottom-up clustering lets patterns you did not expect appear, which is why it is the default for exploratory research.
Two ideas matter here:
- Similarity of meaning. Notes belong together because they say related things about the user's experience. Sharing a keyword is not enough.
- Deferred naming. You hold off on labels until a cluster is stable. Early labels bias what you add to the cluster next.
Where codes fit
Open codes are a useful starting aid. Grouping note IDs by code gives you a first view of which observations could sit together. The script below does this.
from collections import defaultdict
notes = [
{"id": "n1", "participant": "P1", "text": "Skipped the setup tour because it felt long.", "codes": ["setup_friction"]},
{"id": "n2", "participant": "P2", "text": "Could not find where to import old data.", "codes": ["setup_friction", "navigation_confusion"]},
{"id": "n3", "participant": "P2", "text": "Asked a coworker how to share a board.", "codes": ["sharing_unclear"]},
{"id": "n4", "participant": "P3", "text": "Gave up looking for the export button.", "codes": ["navigation_confusion"]},
]
by_code = defaultdict(list)
for note in notes:
for code in note["codes"]:
by_code[code].append(note["id"])
for code, ids in sorted(by_code.items()):
print(code, ids)The output is:
navigation_confusion ['n2', 'n4']
setup_friction ['n1', 'n2']
sharing_unclear ['n3']Note that n2 appears under two codes. That overlap is a signal. It suggests setup_friction and navigation_confusion may be related, and a cluster might contain both.
A code is not a cluster. A code names one narrow idea. A cluster is a group of observations that together point to a broader pattern, and it can span several codes. Treat code groupings as a starting suggestion, and let the observations themselves override them.
The clustering procedure
You can do this on a wall with sticky notes or in a digital whiteboard. The steps are the same.
- Lay out all observations. Show every observation as a card with its ID visible. Do not hide any in a "to do later" pile.
- Pick a card and read it aloud. Choose one at random, not the one you find most interesting.
- Find a neighbor. Search for a card that expresses something related. Place the two close together.
- Add cards one at a time. For each new card, ask whether it belongs with an existing group, forms a pair with another loose card, or stands alone for now.
- Move cards freely. Moving a card is cheap. A card that fit early may fit better elsewhere once the group grows.
- Pause at a stable point. When few cards are still moving, stop placing and start reviewing.
Deciding what "similar" means
Similarity is the hard part. Two notes can share words and mean different things. Two notes can share no words and describe the same problem.
Compare these three observations:
- "Gave up looking for the export button."
- "Could not find where to import old data."
- "Found the export button but said the file format was useless."
The first two describe the participant being unable to locate something. The third mentions the same button, but the participant found it. The problem is about output quality. A keyword search for "export" would group the first and third. A reading for meaning groups the first and second.
Useful questions to ask when two cards are candidates for the same cluster:
- Is the participant trying to do the same thing in both?
- Is the obstacle, reaction, or workaround the same?
- Would a designer fix both with the same kind of change?
If the answers are mostly yes, the cards belong together. If they are mixed, keep them apart and revisit once more cards arrive.
Handling cards that do not fit
Some cards will not join a group. That is normal.
- Singletons. A card that stands alone may be noise, or it may be the first sign of a pattern you have not seen yet. Park it in a visible "unplaced" area. Do not force it into a cluster to tidy the wall.
- Cards that fit two groups. A card can describe more than one thing. If a note really contains two observations, go back and split it into two atomic notes. If it truly describes one event that belongs to two patterns, place it in the better fit and mark the link to the other, for instance with a colored dot.
- Very large groups. A cluster of thirty cards is usually several patterns joined by a loose similarity. Look for sub-groups. The next chapter covers splitting and merging.
Keeping evidence attached
Every card must keep its note ID and participant label throughout. Without them, you cannot later count how many different people stand behind a cluster, and you cannot check a claim against its source. The next script shows the kind of check you will want to run. For each group of codes, it lists the supporting notes and the number of distinct participants.
from collections import defaultdict
notes = [
{"id": "n1", "participant": "P1", "codes": ["setup_friction"]},
{"id": "n2", "participant": "P2", "codes": ["setup_friction", "navigation_confusion"]},
{"id": "n3", "participant": "P2", "codes": ["sharing_unclear"]},
{"id": "n4", "participant": "P3", "codes": ["navigation_confusion"]},
]
themes = {
"Getting started takes more effort than people expect": ["setup_friction", "navigation_confusion"],
"Collaboration features are hard to discover": ["sharing_unclear"],
}
for theme, codes in themes.items():
evidence = [n for n in notes if set(n["codes"]) & set(codes)]
participants = {n["participant"] for n in evidence}
print(theme, "| notes:", [n["id"] for n in evidence], "| participants:", len(participants))The first group has three notes from three participants. The second has one note from one participant. Both are still working groupings at this stage. The counts tell you where evidence is thin before you invest in naming.
Common errors
| Error | What it looks like | Fix |
|---|---|---|
| Early labeling | Writing a heading on the wall before the group has five cards | Wait until the group is stable, then label |
| Keyword matching | Grouping by shared words rather than shared meaning | Read each card aloud and ask what the participant was trying to do |
| One loud participant | A large cluster built mostly from one person's notes | Check distinct participants per cluster |
| Forcing singletons | Putting every card into some group | Keep an unplaced area |
| Losing IDs | Retyping notes without their source | Copy the ID and participant with every card |
| Stopping too soon | Accepting the first arrangement | Do a second pass after a break |
A second pass
After the first arrangement, step away, then return and walk the wall as if seeing it for the first time. Read each cluster's cards in order. Look for cards that feel out of place, for two clusters that seem to say the same thing, and for unplaced cards that now have a home. Expect to move ten to twenty percent of cards on this pass. A wall that needs no changes on a second look usually means the first pass was too cautious or too literal.
Exercise
You are clustering notes from six sessions. After your first pass, one cluster holds twelve cards, and nine of them come from participant P4. What should you do before labeling it, and why?
Show answer
Count the distinct participants behind the cluster and check whether the cards really share a meaning. Nine of twelve cards from one person suggests the cluster reflects one participant's experience or one long session, not a pattern across users. Re-read the cards for meaning, look for sub-groups, and see whether the other three cards fit better elsewhere. Keep the cluster as a tentative group, and do not present it as a pattern until more participants support it. Do not delete P4's cards, because they may still be valid observations.
Exercise
Why should you delay naming a cluster until it has stabilized, and what is the risk of naming it after the first two cards?
Show answer
An early label becomes a filter. You start adding cards that match the label and overlook cards that fit the pattern but use different words. The cluster then reflects your first guess rather than the data. Waiting until few cards are moving lets the group's meaning emerge from its members.