# Is the Mean Really Useless?

DevFeed: [Is the Mean Really Useless?](<https://devfeed.tech/articles/is-the-mean-really-useless-12480.md>)

Original publisher: [Read original article](<http://brooker.co.za/blog/2017/12/28/mean.html>)

Author: Marc Brooker

Published: 2017-12-28T00:00:00Z

Content type: article

Language: en

Sources: [Marc Brooker's](<https://devfeed.tech/sources/marc-brooker-s-blog.md>)

Topics: [Electrical engineering and computer science (EECS)](<https://devfeed.tech/topics/electrical-engineering-and-computer-science-eecs.md>)

Tags: [1-7](<https://devfeed.tech/tags/1-7.md>), [2](<https://devfeed.tech/tags/2.md>), [allows](<https://devfeed.tech/tags/allows.md>), [aws-lambda](<https://devfeed.tech/tags/aws-lambda.md>), [capacity](<https://devfeed.tech/tags/capacity.md>), [capacity-planning](<https://devfeed.tech/tags/capacity-planning.md>), [computer](<https://devfeed.tech/tags/computer.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [cron](<https://devfeed.tech/tags/cron.md>), [graphs](<https://devfeed.tech/tags/graphs.md>), [jitter](<https://devfeed.tech/tags/jitter.md>), [monitoring](<https://devfeed.tech/tags/monitoring.md>), [outliers](<https://devfeed.tech/tags/outliers.md>), [sampling](<https://devfeed.tech/tags/sampling.md>), [statistics](<https://devfeed.tech/tags/statistics.md>), [systems](<https://devfeed.tech/tags/systems.md>), [wall-clock-time](<https://devfeed.tech/tags/wall-clock-time.md>)

## AI overview

The mean can conceal outliers and time-dependent behavior, so it cannot by itself describe system performance. The text illustrates how wall-clock-aligned sampling can report either 100% or 0% CPU for a once-per-minute job; per-minute summaries (mean 1.7%, median 0%, 99th percentile 100%) still obscure the pattern. Yet means support capacity reasoning: in a serial system, throughput is the inverse of mean latency, and Little's Law (L = λW) links long-term average concurrency, arrival rate, and time in the system. Mean request or packet size also helps estimate total resource use because multiplying the mean by the count recovers the sum. Percentiles, medians, maxima, graphs, and other statistics reveal different aspects, but no single summary is sufficient; choose the measure for the operational question.

## Source excerpt

Is the Mean Really Useless? Don't be too mean to the mean. "The mean is useless" is a commonly-repeated statement in the systems observation and monitoring world. As people correctly point out, the mean (or average1) tends to hide information about outliers, tends to be optimistic for many metrics, and can even be wildly misleading in presence of large outliers. That doesn't mean that the average is useless, just that you need to be careful of how you interpret it, and what you use it for. All descriptive statistics are misleading All descriptive statistics are misleading, and potentially dangerous. The most prosaic reason for that is that they are summaries: by their nature they don't capture the entire reality of the data they are summarizing. There is no way for a single number to capture everything you need to know about a large set of numbers. Anscombe's quartet is the most famous illustration of this problem: four data sets that have very different graphs, but the same mean and variance in 𝑥 and 𝑦, and the same linear trend. Thanks to Albert Cairo and Autodesk, there's an even more fun example: the datasaurus dozen2. There are other, more subtle, reasons that descriptive statistics are misleading too. One is that statistics in real-world computer systems change with time, and you can get very different results depending on how those changes in time align with when you sample and how long you average for. Point-in-time sampling can lead to completely missing some detail, especially when the sampling time is aligned to wall-clock time with no jitter. In this example, we've got a machine that runs a periodic job (like a cron job) every minute, and it uses all the CPU on the box for a second. If we sample periodically, aligned to the minute boundary, we'll think the box has 100% CPU usage. Instead, if we sample periodically aligned to any other second, we'll think it completely idle. If, instead, we sample every second and emit a per-minute summary we'll get a mea