Sub topic 7
Summarizing Time Data: Skew, Medians, and Geometric Means
This chapter assumes you know the basics of usability testing, including how to define a task and record whether a participant succeeds. You should also know what a mean, median, and percentage are. The Python example is optional and assumes basic Python reading.
Why time data are often skewed
Time on task is the elapsed time from a defined start event to a defined end event. It measures efficiency, one part of usability alongside effectiveness and satisfaction.
Time data are often right-skewed. This means most participants finish within a fairly narrow range, but one or two participants take much longer. A participant might misunderstand the task, recover from an error, or get interrupted.
For example, these task times are in seconds:
- 32, 41, 38, 55, 47, 120, 36, 44
The 120-second attempt is much larger than the others. It raises the arithmetic mean, which is calculated by adding all values and dividing by the number of values. The median, the middle value after sorting, is less affected by that unusually slow attempt.
| Summary | What it tells you | Effect of a very slow attempt |
|---|---|---|
| Arithmetic mean | Overall average time | Strongly affected |
| Median | Typical middle attempt | Less affected |
| Geometric mean | Multiplicative average | Moderately affected |
Choose the summary deliberately
Use the median when you want to describe a typical participant and the data contain outliers or a clear right tail. Report the first and third quartiles as well when possible. They show where the middle half of observations falls.
Use the arithmetic mean when every observation should contribute equally to an additive average, or when the distribution is reasonably balanced. It can still be useful as a secondary value, but explain its sensitivity to extreme times.
The geometric mean is calculated by multiplying values and taking the root based on the number of values. In practice, it is usually calculated by averaging the logarithms and then converting back. It works well for positive measurements that vary by ratios. For example, 60 seconds is twice 30 seconds.
Do not calculate a geometric mean for zero or negative values. Decide how to handle failed tasks before analysis. A failure does not necessarily mean a very long successful task. You might report completion time for successful attempts and report failures separately.
import math
import statistics
def geometric_mean(times):
"""Return the geometric mean of positive task times."""
if not times or any(t <= 0 for t in times):
raise ValueError("times must contain positive values")
return math.exp(statistics.fmean(math.log(t) for t in times))
times = [32, 41, 38, 55, 47, 120, 36, 44]
print("arithmetic mean:", round(statistics.fmean(times), 1))
print("median:", statistics.median(times))
print("geometric mean:", round(geometric_mean(times), 1))The arithmetic mean is about 51.6 seconds, while the median is 42.5 seconds. The median better represents the cluster of ordinary attempts. The geometric mean falls between them because it reduces the influence of the largest value without ignoring it.
Make time measurements consistent
Before collecting data, write down:
- The exact start event, such as “the task prompt appears.”
- The exact end event, such as “the confirmation message appears.”
- Whether time spent asking for help counts.
- How you record interruptions, technical failures, and abandoned attempts.
- Whether you analyze successful and failed attempts separately.
A participant who fails after four minutes should not be silently excluded. Excluding failures can make the design appear faster and easier than it is. Report the completion rate with the timing summary so readers can see both outcomes.
Report the result with context
A useful report includes the number of participants, the success rate, the timing rule, and the summary statistic. For example:
“Eight of ten participants completed the task. Among successful attempts, the median time was 42.5 seconds, with times ranging from 32 to 120 seconds. One unusually slow attempt affected the arithmetic mean.”
This statement is more informative than “the average time was 51.6 seconds.” It tells readers how many people succeeded, which attempts were timed, and why the chosen summary fits the data.
Exercise
Ten successful attempts have a median time of 40 seconds. One additional attempt takes 300 seconds. Which summary should you emphasize if you want to describe a typical successful participant, and why?
Show answer
Emphasize the median. The 300-second attempt is an outlier that can pull the arithmetic mean upward, while the median is less sensitive to extreme values. Report the outlier and the sample size as context.