by jsweojtj · 6y ago · 0 comments
I wrote: > The leading digits of a uniform distribution does not follow Benford's law.
And @EGreg wrote: > I’m sorry to tell you this, but you inadvertently misled people with that empirical test. This just goes to show that we have to check our assumptions, as scientists or mathematicians trying to prove a statement. (Even with empirical tests :)
So, what specific range of the uniform distribution yields leading digits that follows Benford's law?
For example 0-300
One third of numbers are evenly distributed: 0-100
One third starts with 1: 100-200
One third starts with 2: 200-300
Do you understand?
There is a distribution of leading digits that looks like:
d P(d)
1 30.1%
2 17.6%
3 12.5%
4 9.7%
5 7.9%
6 6.7%
7 5.8%
8 5.1%
9 4.6%
As wikipedia says, "It has been shown that this result applies to a wide variety of data sets, including electricity bills, street addresses, stock prices, house prices, population numbers, death rates, lengths of rivers, physical and mathematical constants."Neat! For each of those data sets you get the same distribution. Now, someone (I won't say who), says that it also is true for the uniform distribution.
But it isn't.
It simply isn't.
And I said as much when I said, "The leading digits of a uniform distribution does not follow Benford's law."
And your counter example is if you take a uniform distribution from 0-300, the leading digits go to something like:
d P(d)
1 36.7%
2 36.7%
3 3.7%
4 3.7%
5 3.7%
6 3.7%
7 3.7%
8 3.7%
9 3.7%
Great, so I don't know how we can disagree at this point. The above distribution is not Benford's Law.> "The leading digits of a uniform distribution does not follow Benford's law." -- me
And you, directly disagreeing with that correct statement:
> This just goes to show that we have to check our assumptions, as scientists or mathematicians trying to prove a statement. -- EGreg
Indeed.
Bensford's law is 1:30.1%, 2:17.6% 3:12.5% etc.
When the max is uniformly distributed then Benford’s law emerges. I mean, all you have to do is read the link - where I derive it.
What exactly is the law — please don’t handwave. If the law is those exact point values mentioned in the article then I just showed you how we arrived at them.
What does "max is uniformly distributed" even mean? If you think that the Benford's law holds good for a set of uniformly distributed numbers, why not simply provide that set? It would be so easy to prove your claim if you just provide an example set of numbers that obeys Benford's law.
All sets of numbers you have presented so far (0-300, 0-30000, 0-300000000000000000000000) do not follow Benford's law. It is very simple to show. In all these sets, the probability of first digit as 1 is equal to the probability of first digit as 2 which contradicts Benford's law.
Benford’s law appears when the max of your range is uniformly distributed
If we are going to argue like this, I might as well present a set of two numbers S = {1, 2} and claim that when we choose numbers from uniform distribution, the probability of 3 occurring as the first digit is 0. Other commenters are not assuming weird distributions like this because this kind of discussion does not provide any new insights and is just a waste of time.