Skip to content
About
Main content
Recurring principle

Power laws and skew

What it is

Assume Zipf: the item of rank i gets frequency proportional to i^(−α). The cumulative share of traffic carried by the top C of N items falls into three different regimes. The border between them is a genuine phase transition (a sharp change of behavior), not a matter of degree.

α = 1. The harmonic sum (1 + 1/2 + 1/3 + …) grows like a logarithm, so h ≈ ln C / ln N and C ≈ N^h. Each point of hit rate costs a constant multiplicative factor in cache size. For N = 10⁹, ten points cost about 8× the cache, at every point on the curve: 50%→60% and 85%→95% cost the same multiple.

α < 1 (flatter). This is typical of web objects (0.6–0.8) and of query shapes in analytics, even where table popularity is steeper. The sum grows like C^(1−α), so .

At α = 0.8, h ≈ (C/N)^0.2.

  • For h = 50%: C/N = 0.5^(1/0.2) = 0.5⁵ = 0.03125, about 3% of the corpus.
  • For h = 90%: C/N = 0.9⁵ ≈ 59% of the corpus.

At that point you are no longer caching. You are replicating.

α > 1. The infinite sum of i^(−α) converges to a finite number. Therefore the number of items needed for a given hit rate depends only on h and α, not on N at all. The cache does not need to grow when your data grows.

From Caching › The popularity exponent

Every family hides a power-law distribution: Zipfian terms in text, power-law vertex degree in graphs, clustered spatial density in maps, hot series labels in metrics. So variance, not volume, sets each one's worst case.

From Specialized Processing Models › Earning its own system

Where it appears

In 8 mechanisms. Each says what the mechanism is about, then how this principle shows up there, in its own words.

Made on the same pages most often.