Harmonic mean — where it appears
Named by 2 essays across one field — each of them below, with the objects they name alongside it.
Also named here as leading zeros, stochastic averaging — the same set of essays touches all of them, so they are one junction rather than several.
A count read off the leading zeros
Hash every key and watch for the longest run of leading zeros. Seeing k of them is evidence of about two to the k distinct keys — an estimator with a variance so large it is worthless, and the two devices that fix it are the whole of what a cardinality sketch is.
The correction that makes it work
HyperLogLog and LogLog read the same registers and differ only in how they average them. The harmonic mean is worth 30% of the error for nothing, and below two and a half registers' worth of keys the estimator both are built on is 137% high and has to be abandoned.
Named alongside it
The objects these essays reach for when they reach for this one.
CardinalityEstimatorHyperLogLogLeading zerosLinear countingRelative errorSketchStochastic averagingClosed formEstimator biasHash functionIdempotence