Sub topic 2
How certain is a completion rate? Confidence intervals for small samples
This chapter assumes you have run a usability test, can compute a mean and a median, and can read simple Python.
Why a completion rate needs a range
A completion rate is the share of participants who finish a task successfully. If 8 of 10 participants succeed, the observed rate is 80%. A second study with 10 different people could easily produce 60% or 95%. A confidence interval gives the plausible range for the true rate.
The simple Wald interval is too narrow for small samples and can fall below 0% or above 100%. The adjusted Wald interval adds a few pseudo-observations to correct this.
import math
def adjusted_wald(successes, n, z=1.96):
"""Approximate 95% confidence interval for a completion rate."""
n_adj = n + z ** 2
p_adj = (successes + z ** 2 / 2) / n_adj
margin = z * math.sqrt(p_adj * (1 - p_adj) / n_adj)
return max(0.0, p_adj - margin), min(1.0, p_adj + margin)
low, high = adjusted_wald(successes=8, n=10)
print(f"observed 80%, 95% CI about {low:.0%} to {high:.0%}")Collecting time on task
Time on task is the number of seconds from a fixed start point to the moment the participant finishes or gives up. Define both points in the task script, and use the same ones for every participant. Record successful and failed attempts separately, because a facilitator often stops a failed attempt early.
Summarizing time data: skew, medians, and geometric means
Task times are usually skewed: most attempts cluster together, and a few slow ones stretch the right tail. The arithmetic mean gets pulled upward by those slow attempts. The median, which is the middle value, is the simplest robust summary. The geometric mean, which averages the logarithms of the times and converts back, is useful when you want a typical value for skewed times.
import math
import statistics
def geometric_mean(times):
return math.exp(statistics.fmean(math.log(t) for t in times))
times = [32, 41, 38, 55, 47, 120, 36, 44] # successful attempts, seconds
print("arithmetic mean:", round(statistics.fmean(times), 1))
print("median:", statistics.median(times))
print("geometric mean:", round(geometric_mean(times), 1))The System Usability Scale: items and administration
The System Usability Scale (SUS) is a 10-item questionnaire. Each item is rated from 1 (Strongly disagree) to 5 (Strongly agree). Items alternate between positive wording (odd-numbered) and negative wording (even-numbered).
Give SUS after the participant finishes the tasks and before any discussion. Use the original item wording, the original order, and the original 5-point scale. Changing any of these makes your scores incomparable with published benchmarks.
Exercise
Exercise
In a study, all 5 of 5 participants complete the task. Should you report that the completion rate is certainly 100%?
Show answer
No. The adjusted Wald interval for 5 of 5 runs from about 51% to 100%, so the true rate could be well below 100%. Report the interval with the rate.