8/13
Part 5 of 7 · At scaleLearn

Quantile sketches

For medians and percentiles, Greenwald and Khanna defined an ε-approximate quantile summary: one that answers any quantile within εN ranks. Karnin, Lang and Liberty's KLL sketch is mergeable, a property they call extremely important because large datasets are often distributed across many machines. DataSketches' KLL default of K = 200 gives about 1.65% rank error. The t-digest is built to be most accurate near the tails, and Dunning and Ertl note that t-digests from disjoint partitions can be formed independently and then combined, which makes parallel processing simple.

Predict

A sketch promises 1% rank error. For the median of a billion orders, how far off can the answer's rank be?

Pick an answer above to see the rest
Predict

You store each day's median order value. Can 30 daily medians give the month's median?

Pick an answer above to see the rest