Sub topic 15
Validating the structure with tree testing
This chapter assumes you have a draft navigation structure from a card sort, as described in the previous chapter. It also assumes you can read success rates and percentages. Tree testing checks that draft before you design or build anything on top of it.
Why a card sort result still needs checking
Card sorting shows how people group content. It does not show whether people can find content in the structure you built from those groups. You made judgment calls when you merged clusters, named categories and chose depth. A tree test checks those calls.
A tree test, sometimes called a reverse card sort, gives participants a text-only version of your hierarchy. They get a task such as "Find out how much delivery costs", and they click through the labels until they choose the place where they would look. There is no visual design, search box or page content. Because only the labels and the hierarchy are left, a failure points to the structure.
| Method | Question it answers | Input | Output |
|---|---|---|---|
| Open card sort | How do people group this content? | Cards | Groups and names |
| Closed card sort | Do people agree with these categories? | Cards and categories | Placement agreement |
| Tree test | Can people find items in this structure? | Hierarchy and tasks | Success, directness, paths |
Where tree testing fits
You can run a tree test on a first draft, on an existing site's structure, or on two competing drafts. Testing the current structure before redesigning gives you a baseline to beat.
Preparing the tree
Build the tree as plain nested text, using the same labels you would put in the navigation.
- Include every level a user would pass through, down to the leaf pages. A shallow tree makes tasks easy and hides problems.
- Include the full set of top-level sections, even those you are not testing. Distractor branches are what make wrong answers possible.
- Keep labels exactly as they will appear. Changing wording after the test invalidates the results.
- Leave out search, links to other sections ("See also"), and any explanatory text.
For a large site, test the parts that matter most. A tree of about 50 to 150 leaf items is easier for participants to scan than one of several hundred.
Writing tasks
Each task asks the participant to find one item. Cover your most important content first, then the items that were hard to place in the card sort.
- Write the task as a goal, not a label. "You want to know whether you can send back a jumper you bought last week" is better than "Find Returns". If the task contains the label, participants match words instead of reasoning about the structure.
- Avoid words that appear in your category names, or the task gives the answer away.
- Give each task one correct answer, or a short list of correct locations if the item really belongs in two places. Decide this before you collect data.
- Use 8 to 10 tasks per participant. Fatigue after that point lowers the quality of the later answers.
- Randomize task order so the early tasks do not take all the learning effects.
Participants and sample size
Recruit people from the same audience you used for the card sort, but not the same individuals if you can avoid it. People who sorted the cards have already seen the content and may remember your groupings. Tree tests run well unmoderated and online. A common guideline is 30 or more participants per tree for quantitative results, and more if you want to compare audience segments. With fewer than 20 participants, treat percentages as rough indicators.
The metrics
Tree testing tools usually report four measures for each task.
- Success rate. The share of participants who ended on a correct node.
- Directness. The share who reached the answer without backtracking. A participant can succeed after going up and down several branches, which suggests the path was not obvious.
- First click. The top-level section chosen first. A wrong first click usually means the top-level labels are the problem.
- Time taken. Useful as a secondary signal, but slow answers can also come from careful reading.
You can also look at the paths participants took. A path table shows where wrong answers cluster, which tells you whether to rename a label, move an item, or add a cross-reference.
Computing the metrics yourself
Most tools export raw results. The script below calculates success, directness and first-click rates for each task, and adds a 95% Wilson interval around the success rate so you can see how uncertain a small sample is. It runs as written with Python 3.
from math import sqrt
correct = {
"Track a parcel": "Orders > Track order",
"Find delivery costs": "Delivery > Shipping rates",
}
correct_first = {task: path.split(" > ")[0] for task, path in correct.items()}
results = [
{"task": "Track a parcel", "first_click": "Orders", "answer": "Orders > Track order", "backtracked": False},
{"task": "Track a parcel", "first_click": "Orders", "answer": "Orders > Track order", "backtracked": True},
{"task": "Track a parcel", "first_click": "Help", "answer": "Help > Returns", "backtracked": True},
{"task": "Track a parcel", "first_click": "Orders", "answer": "Orders > Track order", "backtracked": False},
{"task": "Track a parcel", "first_click": "Orders", "answer": "Orders > Track order", "backtracked": False},
{"task": "Find delivery costs", "first_click": "Delivery", "answer": "Delivery > Shipping rates", "backtracked": False},
{"task": "Find delivery costs", "first_click": "Help", "answer": "Help > Returns", "backtracked": True},
{"task": "Find delivery costs", "first_click": "Orders", "answer": "Orders > Track order", "backtracked": True},
{"task": "Find delivery costs", "first_click": "Delivery", "answer": "Delivery > Shipping rates", "backtracked": False},
{"task": "Find delivery costs", "first_click": "Orders", "answer": "Delivery > Shipping rates", "backtracked": True},
]
def wilson(successes, n, z=1.96):
p = successes / n
denom = 1 + z**2 / n
centre = (p + z**2 / (2 * n)) / denom
half = z * sqrt(p * (1 - p) / n + z**2 / (4 * n**2)) / denom
return centre - half, centre + half
for task, expected in correct.items():
rows = [r for r in results if r["task"] == task]
n = len(rows)
success = [r for r in rows if r["answer"] == expected]
direct = [r for r in success if not r["backtracked"]]
first = [r for r in rows if r["first_click"] == correct_first[task]]
low, high = wilson(len(success), n)
print(f"{task} (n={n})")
print(f" success: {len(success) / n:.0%} (95% interval {low:.0%} to {high:.0%})")
print(f" direct: {len(direct) / n:.0%}")
print(f" first click: {len(first) / n:.0%}")Directness here counts only successful answers without backtracking. Some tools define it differently, for example as a share of all participants, so check your tool's definition before comparing numbers across studies.
Reading the results
Look at the pattern, not just the number.
- Low success, wrong first click. Participants went to the wrong top-level section. Check whether two top-level labels overlap, or whether the item fits a different category better.
- Low success, right first click. The top level worked but a deeper label failed. Look at the sub-level the wrong answers share.
- Success but low directness. People find the item but doubt their path. Rename or reorder labels, or add the item under a second parent.
- Wrong answers spread across many nodes. There is no clear competing location, so the item's own label may be unclear.
- Many people choose the same wrong node. That node is a strong candidate for where the item belongs. Compare it with your card sort similarity data before moving anything.
There is no universal pass mark. Many teams treat roughly 60 to 70% success as the line below which a task needs attention, and expect core tasks to do better. Set your targets before you run the test, tied to how important each task is.
Iterating without overfitting
After you revise the tree, run a new test with fresh participants and, where possible, the same tasks so the rounds are comparable. If you add new tasks that target your changes, you will see success rise on those tasks even if the whole tree has not improved. Keep a set of tasks unchanged between rounds, and add new ones next to them.
Two or three rounds are usually enough. Stop when the core tasks meet their targets, or when changes only move failures from one task to another.
What tree testing cannot tell you
A tree test does not measure how people find content with search, visual layout, or page content. It also tests recognition of labels in a clean setting, so real-world performance is often lower. Treat the result as a check on the structure, not a forecast of site usability. The next chapter covers these limits and other common biases.
Exercise
A tree test of a navigation draft shows that for the task "Find out whether you can pay in instalments", 25% of participants succeeded and 60% first clicked "Shop". The correct answer is under "Payments > Instalments". What should you check first, and what change would you consider?
Show answer
The wrong first click suggests the top-level labels are the problem, not the deeper levels. Check the task wording for ambiguity, then see which wrong answers under "Shop" participants chose. If many picked the same node, that node is a candidate location, so consider moving or duplicating "Instalments" there or renaming "Payments" so it is clearer. Then re-run the test with new participants and the same task.
Exercise
Why should a tree test task say "You want to send back a jumper you bought last week" rather than "Find Returns"?
Show answer
A task that contains the label lets participants match words instead of using their own expectations about where content lives. A goal-based task tests whether the structure supports that goal, which is what the tree test is meant to measure.