Skip to content
About
Main content
Model

Count-min sketch guarantee

The error is a fraction of the total number of events in the stream, not of the item's own count.

Error fraction
error as a fraction of N
Failure probability
chance the bound is exceeded
Events
the total number of events in the stream
Table shape
counters per row and rows

Trade-off: Exactness vs. approximation

How it behaves

One input on the horizontal axis, the others held fixed.

Data table
Counters needed by error fraction (δ = 1%), whatever the stream size
Error fraction εCounters (w × d)
01.36M
01.21M
01.08M
0962K
0858K
0764K
0681K
0607K
0541K
0482K
0430K
0383K
0341K
0304K
0271K
0242K
0215K
0192K
0171K
0153K
0136K
0121K
0108K
096.2K
085.8K
076.4K
068.1K
060.7K
054.1K
048.2K
043K
038.3K
034.1K
030.4K
0.00127.1K
0.00124.2K
0.00121.5K
0.00119.2K
0.00117.1K
0.00115.3K
0.00113.6K
0.00112.1K
0.00110.8K
0.0019.63K
0.0028.58K
0.0027.64K
0.0026.82K
0.0026.08K
0.0035.42K
0.0034.83K
0.0034.3K
0.0043.83K
0.0043.42K
0.0043.04K
0.0052.71K
0.0062.42K
0.0062.15K
0.0071.92K
0.0081.72K
0.0091.52K
0.011.36K
0.0111.22K
0.0131.08K
0.014965
0.016860
0.018765
0.02685
0.022610
0.025545
0.028485
0.032430
0.036385
0.04345
0.045305
0.05275
0.056245
0.063220
0.071195
0.079175
0.089155
0.1140

Worked examples, recomputed

Every number the mechanisms quote for this relationship is recomputed from it, so none of them disagrees with it.

Where it appears

Each mechanism states it in its own names. The general symbol each name stands for is shown with it.