Random texts do not exhibit the real Zipf's law-like rank distribution.
BACKGROUND
Zipf's law states that the relationship between the frequency of a word in a text and its rank (the most frequent word has rank , the 2nd most frequent word has rank ,...) is approximately linear when plotted on a double logarithmic scale. It has been argued that the law is not a relevant or useful property of language because simple random texts - constructed by concatenating random characters including blanks behaving as word delimiters - exhibit a Zipf's law-like word rank distribution.


RESULTS
In this article, we examine the flaws of such putative good fits of random texts. We demonstrate - by means of three different statistical tests - that ranks derived from random texts and ranks derived from real texts are statistically inconsistent with the parameters employed to argue for such a good fit, even when the parameters are inferred from the target real text. Our findings are valid for both the simplest random texts composed of equally likely characters as well as more elaborate and realistic versions where character probabilities are borrowed from a real text.


CONCLUSIONS
The good fit of random texts to real Zipf's law-like rank distributions has not yet been established. Therefore, we suggest that Zipf's law might in fact be a fundamental law in natural languages.
Departament de Llenguatges i Sistemes Informàtics, Universitat Politècnica de Catalunya, Barcelona, Catalonia, Spain. rferrericancho@lsi.upc.edu
Ramon
R
Ferrer-I-Cancho
Brita
B
Elvevåg
D000465:Algorithms; D003201:Computers; D006801:Humans; D007802:Language; D015233:Models, Statistical; D008962:Models, Theoretical; D011336:Probability; D012660:Semantics; D012984:Software