Benford's law, also known as the Newcomb-Benford law or the first digit law, states that in sets of numbers from many real-life sources of data, the first digits follow a logarithmic distribution. More specifically, the probability that the first digit is \(n\) is given by $$\log_{10}\left( 1 + \frac{1}{n} \right).$$ Such distributions can arise for different reasons, including exponential growth processes, or as properties of finite sets of rational numbers representing results of physical measurements.
Here we focus on exponential growth. In the application below, you can define a sequence of numbers by giving initial value(s) and a rule. The diagram on the left shows the distribution of first digits in the sequence. The Benford distribution is shown in the background. The diagram on the right shows a plot of the sequence. The dark areas correspond to numbers starting with 1.
Click Run to see the distribution of first digits evolve. Observe how, as the exponential curve gets steeper and steeper, it spends more time in lower first-digit areas than in higher first-digit areas, at any order of magnitude.
Some sequences to try:
| Initial value(s): \(f(0), f(1), \dots\) | |
| Rule: \(f(n) =\) | |
| \(f(\)\()=\) | |