Search

Search papers and lessons

Power Law

Level 2 · 10 min read

A power law says one quantity is a fixed multiple of another quantity raised to a fixed exponent, so doubling the input multiplies the output by the same factor everywhere.

On this page

  • Colour = topic mix
  • Discrete math
  • Sign in to see your progress

TL;DR

A power law relates two quantities by y=c xay = c\,x^{a}, where cc is a fixed scale, xx is the input, and aa is a fixed exponent. The defining feature is that the relationship looks the same at every scale: multiplying xx by any factor kk multiplies yy by kak^{a}, whatever value xx started from. Plotted on logarithmic axes, a power law is a straight line whose slope is the exponent.

Where you'll see it: in the sizes of cities, in the frequencies of words in a language, in the energy released by earthquakes, in the spread of incomes, and in how neural network test error falls as models grow.

Intuition

Same shape at every scale

Suppose the area of a square tile is x2x^2 when its side is xx. Double the side and the area goes up by 4. Double it again and it goes up by 4 again, whether the side started at 1 metre or at 1000. An exponent that never changes is what gives this scale-free behaviour. An Exponential Function, by contrast, multiplies by a fixed factor for each added unit of input (say, each extra metre), not for each doubling of the input.

Why does this matter? Many natural and social systems have no typical size. A few cities are huge, many are small, and the ratio between the biggest and the tenth-biggest is about the same as the ratio between the tenth and the hundredth. A power law describes that pattern in one line.

00.511.522.533.54051015xy = x^a
  • exponent 2
  • exponent 1
  • exponent 1/2
Three power laws with the same scale c = 1. The marked points lie on the exponent-2 curve. Every curve passes through (1, 1), because 1 raised to any power is 1.

Why a straight line on log axes

Take the Logarithm of both sides of y=c xay = c\,x^{a}. The logarithm turns products into sums and powers into multiples, so log⁡y=log⁡c+alog⁡x\log y = \log c + a \log x. This has the form of a straight line in the variables log⁡x\log x and log⁡y\log y, with intercept log⁡c\log c and slope aa. So if you plot data on log-log axes and see a straight line, a power law is a good candidate, and its slope tells you the exponent. Scientists use this as a first diagnostic, although, as the tradeoffs section explains, it is easy to fool.

The math

Definition

Definition: Power law

A relationship y=c xay = c\,x^{a}, where c>0c \gt 0 is a constant scale, aa is a constant exponent (any real number), and x>0x \gt 0 is the input. Here xx is the independent variable and yy is the quantity it determines.

The exponent can be positive (growth), negative (decay), or fractional (a root). A negative exponent such as a=−1a = -1 describes something that falls as the input grows: double xx and yy halves. The restriction x>0x \gt 0 is needed so that xax^{a} is defined for non-integer aa.

Scaling property

Substitute kxkx for xx:

c (kx)a=c kaxa=ka y.c\,(kx)^{a} = c\,k^{a} x^{a} = k^{a}\,y.

This is the whole point. The output ratio y(kx)/y(x)=kay(kx)/y(x) = k^{a} does not depend on xx. For k=2k = 2 the ratio is 2a2^{a}, so the outputs at xx, 2x2x and 4x4x form a geometric pattern with a fixed multiplier, no matter where you start. An exponential function, y=c bxy = c\,b^{x}, has a fixed ratio for each unit step of xx instead, and the ratio depends on the step size. That is the key contrast with exponential growth.

The log-log test

Taking logs gives

log⁡y=alog⁡x+log⁡c.\log y = a \log x + \log c.

If two measurements (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2) come from a power law, then the slope between their logs is

a=log⁡y2−log⁡y1log⁡x2−log⁡x1.a = \frac{\log y_2 - \log y_1}{\log x_2 - \log x_1}.

Use any base for the logarithm, as long as it is the same for xx and yy. The result is the exponent, independent of the base, because the base cancels in the ratio.

Tails and the Pareto form

A common form for heavy-tailed data is the survival function (the chance of exceeding a value). For the Pareto distribution with minimum xm>0x_m \gt 0 and shape α>0\alpha \gt 0,

P(X>x)=(xmx)α,x≥xm.P(X \gt x) = \left(\frac{x_m}{x}\right)^{\alpha}, \qquad x \ge x_m.

This is a power law in xx with exponent −α-\alpha. Doubling xx multiplies the chance of exceeding it by 2−α2^{-\alpha}. Smaller α\alpha means a heavier tail: the mean of the distribution is infinite when α≤1\alpha \le 1.

Worked examples

Example
Recover the exponent from two points

Suppose measurements give y=8y = 8 at x=2x = 2 and y=32y = 32 at x=4x = 4. Assume a power law.

  1. Compute the ratio of outputs: 32/8=432 / 8 = 4.
  2. Compute the ratio of inputs: 4/2=24 / 2 = 2.
  3. Use the scaling property. Doubling xx multiplied yy by 4, so 2a=42^{a} = 4.
  4. Solve: a=2a = 2.
  5. Find the scale: c=y/x2=8/4=2c = y / x^{2} = 8 / 4 = 2.
  6. Check with logs, using base 2. The point (1,2)(1, 2) on the fitted law and the point (2,8)(2, 8) give log⁡2x\log_2 x of 00 and 11 and log⁡2y\log_2 y of 11 and 33. The slope is (3−1)/(1−0)=2(3 - 1) / (1 - 0) = 2, matching a=2a = 2.

Interpretation: the quantity behaves like twice the square of the input. Any other value of xx can now be predicted, for example y(10)=2⋅100=200y(10) = 2 \cdot 100 = 200.

Example
Word frequencies (Zipf-style)

In a large English text, the most frequent word appears about 60,000 times. A simple model says the frequency of the word with rank kk is f(k)=60000/kf(k) = 60000 / k. This is a power law with c=60000c = 60000 and exponent a=−1a = -1.

  1. Rank 1: f(1)=60000f(1) = 60000.
  2. Rank 2: f(2)=30000f(2) = 30000. Doubling the rank halves the frequency.
  3. Rank 10: f(10)=6000f(10) = 6000.
  4. Rank 100: f(100)=600f(100) = 600. From rank 10 to rank 100 is a factor of ten in rank, and the frequency also drops by a factor of ten.

Interpretation: a handful of words account for most of the text, and a long tail of rare words makes up the rest. Real corpora deviate from a=−1a = -1 at the extremes, but the straight-line pattern on log-log axes holds well across the middle ranks. That is the practical lesson: a single exponent describes a very wide range of ranks.

Tradeoffs and failure modes

Power laws are easy to describe and surprisingly easy to misidentify. The main risks are listed below.

SituationProblemBetter choice
A straight line on log-log axesLognormal, exponential and other curves can look nearly straight over one or two decadesCompare against several candidate distributions with a likelihood ratio test
Fitting a line to log-transformed data by least squaresLarge values are noisy on a log scale and the fit is biasedMaximum likelihood estimation of the exponent
Using the power law far outside the observed rangeReal systems have cutoffs; the tail is often thinner than the model saysState the range over which the law was checked
Tail exponent α≤1\alpha \le 1 or ≤2\le 2The mean or variance is infinite, so averages and standard errors are misleadingUse medians, quantiles, or a robust summary
Assuming the law is causalA power law says nothing about the mechanism that produced itTest a generative story (preferential attachment, for example) separately

The rule of thumb is that a power law needs evidence across many orders of magnitude before you accept it, and a plot alone does not provide that.

History

Vilfredo Pareto studied the distribution of income in the late 1890s and reported that a large share of wealth belonged to a small share of people, with the tail following a power law. The distribution now bears his name. The idea became influential well beyond economics.

George Kingsley Zipf studied word frequencies and city sizes in the 1930s and 1940s, and his 1949 book argued that many rank-ordered quantities follow a similar law. The pattern is now called Zipf's law, and it is the most cited example of a power law in language.

In seismology, Beno Gutenberg and Charles Richter showed in the 1940s that the number of earthquakes above a given magnitude falls off roughly as a power of the energy released, a law that holds across many decades of energy. Later work on the rigorous statistical testing of power laws, by Aaron Clauset, Cosma Shalizi and Mark Newman, showed how often claims of power laws were overstated, and it set the standard for the careful checks described above.

Check yourself

QuestionA quantity follows y=5x3y = 5x^{3}. By what factor does yy change when xx is multiplied by 4?Show answer

The factor is 43=644^{3} = 64. The scaling property says the ratio is kak^{a} with k=4k = 4 and a=3a = 3. Check directly: if x=1x = 1, then y=5y = 5; if x=4x = 4, then y=5⋅64=320y = 5 \cdot 64 = 320, and 320/5=64320 / 5 = 64.

QuestionTwo points on a power law are (1,3)(1, 3) and (10,0.3)(10, 0.3). What is the exponent?Show answer

Use the slope formula with logs of any fixed base. The exponent is a=(log⁡0.3−log⁡3)/(log⁡10−log⁡1)a = (\log 0.3 - \log 3) / (\log 10 - \log 1). Taking base 10: log⁡100.3=−0.5229\log_{10} 0.3 = -0.5229 and log⁡103=0.4771\log_{10} 3 = 0.4771, so the numerator is −1-1. The denominator is log⁡1010−log⁡101=1\log_{10} 10 - \log_{10} 1 = 1. So a=−1a = -1. The output falls by a factor of 10 when the input grows by a factor of 10.

QuestionWhy does a power law look like a straight line on log-log axes?Show answer

Taking logs gives log⁡y=alog⁡x+log⁡c\log y = a \log x + \log c, which has the form of a line in log⁡x\log x and log⁡y\log y, with slope aa and intercept log⁡c\log c. Logarithms turn the power into a multiple, which is linear.

QuestionWhy is a straight line on a log-log plot not enough evidence for a power law by itself?Show answer

Several other distributions, such as the lognormal, can look nearly straight over a limited range of values. A straight line over one or two orders of magnitude is weak evidence. A convincing claim needs the fit to hold across a much wider range and to beat rival models in a formal comparison.

QuestionA model of city sizes has a tail with Pareto shape α=0.8\alpha = 0.8. What goes wrong if you compute the average city size from a finite sample?Show answer

With α≤1\alpha \le 1 the mean of the underlying distribution is infinite. The sample average keeps growing as you add larger cities, so it does not settle to a stable value. A median or a quantile is a better summary here, because it stays stable as the sample grows.

Sources