by stdbrouw · 10y ago · 0 comments
E.g. estimating the P99 from 200 data points each will give you a large variation. In this case averaging will be wrong. This gets worse if you experience bunching. E.g. a server will have a high ping on several packets when the load is high; after that it will have a low ping for thousands of packets when the load is low. Here, it just doesn't work.
Instead, you can get a better result by adding the (estimated) histograms and resampling the quantiles from the combined distribution function.
Here I've written how that works with a live demonstration: http://www.siegfried-kettlitz.de/blog/posts/2015/11/28/linlo...
The problem you talk about is one of granularity: you don't want to know how bad things are in general, you want to know how bad things are when they are actually bad. That's perfectly legitimate, but it's a different metric altogether that just happens to also be based off of the 99th percentile. It depends on your definition of "the distribution".
This probably sounds like nitpicking, but people should know what they're talking about when they call out others for being wrong.
Are you sure about this?
x <- rnorm(1000, mean=50, sd=10)
quantile(x, 0.99)
mean(sapply(1:20, function(i) {
i <- i * 50
quantile(x[i-49:i], 0.99)
}))