Skip to main content
Entropy logoLink to Entropy
. 2018 Jan 26;20(2):85. doi: 10.3390/e20020085

Is Natural Language a Perigraphic Process? The Theorem about Facts and Words Revisited

Łukasz Dębowski 1
PMCID: PMC7512648  PMID: 33265176

Abstract

As we discuss, a stationary stochastic process is nonergodic when a random persistent topic can be detected in the infinite random text sampled from the process, whereas we call the process strongly nonergodic when an infinite sequence of independent random bits, called probabilistic facts, is needed to describe this topic completely. Replacing probabilistic facts with an algorithmically random sequence of bits, called algorithmic facts, we adapt this property back to ergodic processes. Subsequently, we call a process perigraphic if the number of algorithmic facts which can be inferred from a finite text sampled from the process grows like a power of the text length. We present a simple example of such a process. Moreover, we demonstrate an assertion which we call the theorem about facts and words. This proposition states that the number of probabilistic or algorithmic facts which can be inferred from a text drawn from a process must be roughly smaller than the number of distinct word-like strings detected in this text by means of the Prediction by Partial Matching (PPM) compression algorithm. We also observe that the number of the word-like strings for a sample of plays by Shakespeare follows an empirical stepwise power law, in a stark contrast to Markov processes. Hence, we suppose that natural language considered as a process is not only non-Markov but also perigraphic.

Keywords: stationary processes, PPM code, mutual information, power laws, algorithmic information theory, natural language

MSC: 94A17, 60G10, 94A29, 68Q30, 68T50

1. Introduction

One of the motivating assumptions of information theory [1,2,3] is that communication in natural language can be reasonably modeled as a discrete stationary stochastic process, namely, an infinite sequence of discrete random variables with a well defined time-invariant probability distribution. The same assumption is made in several practical applications of computational linguistics, such as speech recognition [4] or part-of-speech tagging [5]. Whereas state-of-the-art stochastic models of natural language are far from being satisfactory, we may ask a more theoretically oriented question, namely:

What can be some general mathematical properties of natural language treated as a stochastic process, in view of empirical data?

In this paper, we will investigate a question of whether it is reasonable to assume that natural language communication is a perigraphic process.

To recall, a stationary process is called ergodic if the relative frequencies of all finite substrings in the infinite text generated by the process converge in the long run with probability one to some constants—the probabilities of the respective strings. Now, some basic linguistic intuition suggests that natural language does not satisfy this property, cf. ([3], Section 6.4). Namely, we can probably agree that there is a variation of topics of texts in natural language, and these topics can be empirically distinguished by counting relative frequencies of certain substrings called keywords. Hence, we expect that the relative frequencies of keywords in a randomly selected text in natural language are random variables depending on the random text topic. In the limit, for an infinitely long text, we may further suppose that the limits of relative frequencies of keywords persist to be random, and if this is true then natural language is not ergodic, i.e., it is nonergodic.

In this paper, we will entertain first a stronger hypothesis, namely, that natural language communication is strongly nonergodic. Informally speaking, a stationary process will be called strongly nonergodic if its random persistent topic has to be described using an infinite sequence of probabilistically independent binary random variables, called probabilistic facts. Like nonergodicity, strong nonergodicity is not empirically verifiable if we only have a single infinite sequence of data. However, replacing probabilistic facts with an algorithmically random sequence of bits, called algorithmic facts, we can adapt the property of strong nonergodicity back to ergodic processes. Subsequently, we will call a process perigraphic if the number of algorithmic facts which can be inferred from a finite text sampled from the process grows like a power of the text length. It is a general observation that perigraphic processes have uncomputable distributions.

It is interesting to note that perigraphic processes can be singled out by some statistical properties of the texts they generate. We will exhibit a proposition, which we call the theorem about facts and words. Suppose that we have a finite text drawn from a stationary process. The theorem about facts and words says that the number of independent probabilistic or algorithmic facts that can be reasonably inferred from the text must be roughly smaller than the number of distinct word-like strings detected in the text by some standard data compression algorithm called the Prediction by Partial Matching (PPM) code [6,7]. It is important to stress that in this theorem we do not relate the numbers all facts and all word-like strings, which would sound trivial, but we compare only the numbers of independent facts and distinct word-like strings.

Having the theorem about facts and words, we can also discuss some empirical data. Since the number of distinct word-like strings for texts in natural language follows an empirical stepwise power law, in a stark contrast to Markov processes, consequently, we suppose that the number of inferrable random facts for natural language also follows a power law. That is, we suppose that natural language is not only non-Markov but also perigraphic.

Whereas in this paper we fill several important missing gaps and provide an overarching narration, the basic ideas presented in this paper are not so new. The starting point was a corollary of Zipf’s law and a hypothesis by Hilberg. Zipf’s law is an empirical observation that in texts in natural language, the frequencies of words obey a power law decay when we sort the words according to their decreasing frequencies [8,9]. A corollary of this law, called Heaps’ law [10,11,12,13], states that the number of distinct words in a text in natural language grows like a power of the text length. In contrast to these simple empirical observations, Hilberg’s hypothesis is a less known conjecture about natural language that the entropy of a text chunk of an increasing length [14] or the mutual information between two adjacent text chunks [15,16,17,18] obey also a power law growth. In Ref. [19], it was heuristically shown that, if Hilberg’s hypothesis for mutual information is satisfied for an arbitrary stationary stochastic process, then texts drawn from this process satisfy also a kind of Heaps’ law if we detect the words using the grammar-based codes [20,21,22,23]. This result is a historical antecedent of the theorem about facts and words.

Another important step was a discovery of some simple strongly nonergodic processes, satisfying the power law growth of mutual information, called Santa Fe processes, discovered by Dębowski in August 2002, but first reported only in [24]. Subsequently, in Ref. [25], a completely formal proof of the theorem about facts and words for strictly minimal grammar-based codes [23,26] was provided. The respective related theory of natural language was later reviewed in [27,28] and supplemented by a discussion of Santa Fe processes in [29]. A drawback of this theory at that time was that strictly minimal grammar-based codes used in the statement of the theorem about facts and words are not computable in a polynomial time [26]. This precluded an empirical verification of the theory.

To state the relative novelty, in this paper, we are glad to announce a new stronger version of the theorem about facts and words for a somewhat more elegant definition of inferrable facts and the PPM code, which is computable almost in a linear time. For the first time, we also present two cases of the theorem: one for strongly nonergodic processes, applying Shannon information theory, and one for general stationary processes, applying algorithmic information theory. Having these results, we can supplement them finally with a rudimentary discussion of some empirical data.

The organization of this paper is as follows. In Section 2, we discuss some properties of ergodic and nonergodic processes. In Section 3, we define strongly nonergodic processes and we present some examples of them. Analogically, in Section 4, we discuss perigraphic processes. In Section 5, we discuss two versions of the theorem about facts and words. In Section 6, we discuss some empirical data and we suppose that natural language may be a perigraphic process. In Section 7, we offer concluding remarks. Moreover, three appendices follow the body of the paper. In Appendix A, we prove the first part of the theorem about facts and words. In Appendix B, we prove the second part of this theorem. In Appendix C, we show that that the number of inferrable facts for the Santa Fe processes follows a power law.

2. Ergodic and Nonergodic Processes

We assume that the reader is familiar with some probability measure theory [30]. For a real-valued random variable Y on a probability space (Ω,J,P), we denote its expectation

EY:=YdP. (1)

Consider now a discrete stochastic process (Xi)i=1=(X1,X2,), where random variables Xi take values from a set X of countably many distinct symbols, such as letters with which we write down texts in natural language. We denote blocks of consecutive random variables Xjk:=(Xj,,Xk) and symbols xjk:=(xj,,xk). Let us define a binary random variable telling whether some string x1n has occurred in sequence (Xi)i=1 on positions from i to i+n1,

Φi(x1n):=1Xii+n1=x1n, (2)

where

1ϕ=1,ifϕistrue,0,ifϕisfalse. (3)

The expectation of this random variable,

EΦi(x1n)=P(Xii+n1=x1n), (4)

is the probability of the chosen string according to the considered probability measure P, whereas the arithmetic average of consecutive random variables 1mi=1mΦi(x1n) is the relative frequency of the same string in a finite sequence of random symbols X1m+n1.

Process (Xi)i=1 is called stationary (with respect to a probability measure P) if expectations EΦi(x1n) do not depend on position i for any string x1n. In this case, we have the following well known theorem, which establishes that the limiting relative frequencies of strings x1n in infinite sequence (Xi)i=1 exist almost surely, i.e., with probability 1:

Theorem 1

(ergodic theorem, cf. e.g., [31]). For any discrete stationary process (Xi)i=1, there exist limits

Φ(x1n):=limm1mi=1mΦi(x1n)almostsurely, (5)

with expectations EΦ(x1n)=EΦi(x1n).

In general, limits Φ(x1n) are random variables depending on a particular value of infinite sequence (Xi)i=1. It is quite natural, however, to require that the relative frequencies of strings Φ(x1n) are almost surely constants, equal to the expectations EΦi(x1n). Subsequently, process (Xi)i=1 will be called ergodic (with respect to a probability measure P) if limits Φ(x1n) are almost surely constant for any string x1n. The standard definition of an ergodic process is more abstract but is equivalent to this statement ([31], Lemma 7.15).

The following examples of ergodic processes are well known:

  1. Process (Xi)i=1 is called IID (independent identically distributed) if
    P(X1n=x1n)=π(x1)π(xn). (6)

    All IID processes are ergodic.

  2. Process (Xi)i=1 is called Markov (of order 1) if
    P(X1n=x1n)=π(x1)p(x2|x1)p(xn|xn1). (7)
    A Markov process is ergodic in particular if
    p(xi|xi1)>c>0. (8)

    For a sufficient and necessary condition, see ([32], Theorem 7.16).

  3. Process (Xi)i=1 is called hidden Markov if Xi=g(Si) for a certain Markov process (Si)i=1 and a function g. A hidden Markov process is ergodic in particular if the underlying Markov process is ergodic.

Whereas IID and Markov processes are some basic models in probability theory, hidden Markov processes are of practical importance in computational linguistics [4,5]. Hidden Markov processes as considered there usually satisfy condition (8) and therefore they are ergodic.

Let us call a probability measure P stationary or ergodic, respectively, if the process (Xi)i=1 is stationary or ergodic with respect to the measure P. Suppose that we have a stationary measure P that generates some data (Xi)i=1. We can define a new random measure F equal to the relative frequencies of blocks in the data (Xi)i=1. It turns out that the measure F is almost surely ergodic. Formally, we have this proposition.

Theorem 2

(cf. ([33], Theorem 9.10)). Any process (Xi)i=1 with a stationary measure P is almost surely ergodic with respect to the random measure F given by

F(X1n=x1n):=Φ(x1n). (9)

Moreover, from the random measure F, we can obtain the stationary measure P by integration, P(X1n=x1n)=EF(X1n=x1n). The following result asserts that this integral representation of measure P is unique.

Theorem 3

(ergodic decomposition, cf. ([33], Theorem 9.12)). Any stationary probability measure P can be represented as

P(X1n=x1n)=F(X1n=x1n)dν(F), (10)

where ν is a unique measure on stationary ergodic measures.

In other words, stationary ergodic measures are some building blocks from which we can construct any stationary measure. For a stationary probability measure P, the particular values of the random ergodic measure F are called the ergodic components of measure P.

Consider for instance, a Bernoulli(θ) process with measure

Fθ(X1n=x1n)=θi=1nxi(1θ)ni=1nxi, (11)

where xi0,1 and θ[0,1]. This measure will be contrasted with the measure of a mixture Bernoulli process with parameter θ uniformly distributed on interval [0,1],

P(X1n=x1n)=01Fθ(X1n=x1n)dθ=1n+1ni=1nxi1. (12)

Measure (11) is a measure of an IID process and is therefore ergodic, whereas measure (12) is a mixture of ergodic measures and hence it is nonergodic.

3. Strongly Nonergodic Processes

According to our definition, a process is ergodic when the relative frequencies of any strings in a random sample in the long run converge to some constants. Consider now the following thought experiment. Suppose that we select a random book from a library. In [34], it was observed that there is hardly any book that contains both the word lemma and the word love, namely, there are some keywords that are specific to particular topics of texts. We can pursue this idea one little step farther. Counting the relative frequencies of keywords, such as lemma for a text on mathematics and love for a romance, we can effectively recognize the topic of the book. Simply put, the relative frequencies of some keywords will be higher for books concerning some topics, whereas they will be lower for books concerning other topics. Hence, in our thought experiment, we expect that the relative frequencies of keywords are some random variables with values depending on the particular topic of the randomly selected book. Since keywords are just some particular strings, we may conclude that the stochastic process that models natural language should be nonergodic.

The above thought experiment provides another perspective onto nonergodic processes. According to the following theorem, a process is nonergodic when we can effectively distinguish in the limit at least two random topics in it. In the statement, function f:X*0,1,2 assumes values 0 or 1 when we can identify the topic, whereas it takes value 2 when we are not certain which topic a given text is about.

Theorem 4

(cf. [24]). A stationary discrete process (Xi)i=1 is nonergodic if and only if there exists a function f:X*0,1,2 and a binary random variable Z such that 0<P(Z=0)<1 and

limnP(f(Xii+n1)=Z)=1 (13)

for any position iN.

A binary variable Z satisfying condition (13) will be called a probabilistic fact. A probabilistic fact tells which of two topics the infinite text generated by the stationary process is about. It is a kind of a random switch which is preset before we start scanning the infinite text; compare a similar wording in [35]. To keep the proofs simple, here we only give a new elementary proof of the “⇒” statement of Theorem 4. The proof of the “⇐” part applies some measure theory and follows the idea of Theorem 9 from [24] for strongly nonergodic processes, which we will discuss in the next paragraph.

Proof. 

(only ⇒) Suppose that process (Xi)i=1 is nonergodic. Then, there exists a string x1k such that ΦEΦ for Φ:=Φ(x1k) with some positive probability. Hence, there exists a real number y such that P(Φ=y)=0 and

P(Φ>y)=1P(Φ<y)(0,1). (14)

Define Z:=1Φ>y and f(Xii+n1):=Zin:=1Φin>y, where

Φin:=1nk+1j=ii+nkΦj(x1k). (15)

Since limnΦin=Φ almost surely and Φ satisfies (14), convergence limnZin=Z also holds almost surely. Applying the Lebesgue dominated convergence theorem, we obtain

limnP(f(Xii+n1)=Z)=limnEZinZ+(1Zin)(1Z)=EZ2+(1Z)2=1. (16)

 ☐

As for books in the natural language, we may have an intuition that the pool of available book topics is extremely large and contains many more topics than just two. For this reason, we may need not a single probabilistic fact Z but rather a sequence of probabilistic facts Z1,Z2, to specify the topic of a random book completely. Formally, stationary processes requiring an infinite sequence of independent uniformly distributed probabilistic facts to describe the topic of an infinitely long text will be called strongly nonergodic.

Definition 1

(cf. [24,25]). A stationary discrete process (Xi)i=1 is called strongly nonergodic if there exist a function g:N×X*0,1,2 and a binary IID process (Zk)k=1 such that P(Zk=0)=P(Zk=1)=1/2 and

limnP(g(k;Xii+n1)=Zk)=1 (17)

for any position iN and any index kN.

As we have stated above, for a strongly nonergodic process, there is an infinite number of independent probabilistic facts (Zk)k=1 with a uniform distribution on the set 0,1. Formally, these probabilistic facts can be assembled into a single real random variable T=k=12kZk, which is uniformly distributed on the unit interval [0,1]. The value of variable T identifies the topic of a random infinite text generated by the stationary process. Thus, for a strongly nonergodic process, we have a continuum of available topics which can be incrementally identified from any sufficiently long text. Put formally, according to Theorem 9 from [24], a stationary process is strongly nonergodic if and only if its shift-invariant σ-field contains a nonatomic sub-σ-field. We note in passing that in [24] strongly nonergodic processes were called uncountable description processes.

In view of Theorem 9 from [24], the mixture Bernoulli process (12) is some example of a strongly nonergodic process. In this case, the parameter θ plays the role of the random variable T=k=12kZk. Showing that condition (17) is satisfied for this process in an elementary fashion is a tedious exercise. Hence, let us present now a simpler guiding example of a strongly nonergodic process, which we introduced in [24,25] and called the Santa Fe process. Let (Zk)k=1 be a binary IID process with P(Zk=0)=P(Zk=1)=1/2. Let (Ki)i=1 be an IID process with Ki assuming values in natural numbers with a power-law distribution

P(Ki=k)1kα,α>1. (18)

The Santa Fe process with exponent α is a sequence (Xi)i=1, where

Xi=(Ki,ZKi) (19)

are pairs of a random number Ki and the corresponding probabilistic fact ZKi. The Santa Fe process is strongly nonergodic since condition (17) holds for example for

g(k;x1n)=0,ifforall1in,xi=(k,z)xi=(k,0),1,ifforall1in,xi=(k,z)xi=(k,1),2,else. (20)

Simply speaking, function g(k;·) returns 0 or 1 when an unambiguous value of the second constituent can be read off from pairs xi=(k,·) and returns 2 when there is some ambiguity. Condition (17) is satisfied since

P(g(k;Xii+n1)=Zk)=P(Ki=kforsome1in)=1(1P(Ki=k))nn1. (21)

Some salient property of the Santa Fe process is the power law growth of the expected number of probabilistic facts, which can be inferred from a finite text drawn from the process. Consider a strongly nonergodic process (Xi)i=1. The set of initial independent probabilistic facts inferrable from a finite text X1n will be defined as

U(X1n):=lN:g(k;X1n)=Zkforallkl. (22)

In other words, we have U(X1n)=1,2,,l, where l is the largest number such that g(k;X1n)=Zk for all kl. To capture the power-law growth of an arbitrary function s:NR, we will denote the Hilberg exponent defined

hilbns(n):=lim supnlog+s(2n)log2n, (23)

where log+x:=log(x+1) for x0 and log+x:=0 for x<0, cf. [36]. In contrast to Ref. [36], for technical reasons, we define the Hilberg exponent only for an exponentially sparse subsequence of terms s(2n) rather than all terms s(n). Moreover, in [36], the Hilberg exponent was considered only for mutual information s(n)=I(X1n;Xn+12n), defined later in Equation (51). We observe that for the exact power law growth s(n)=nβ with β0 we have hilbns(n)=β. More generally, the Hilberg exponent captures an asymptotic power-law growth of the sequence. As shown in Appendix C, for the Santa Fe process with exponent α, we have the asymptotic power-law growth

hilbnEcardU(X1n)=1/α(0,1). (24)

This property distinguishes the Santa Fe process from the mixture Bernoulli process (12), for which the respective Hilberg exponent is zero, as we discuss in Section 6.

4. Perigraphic Processes

Is it possible to demonstrate by a statistical investigation of texts that natural language is really strongly nonergodic and satisfies a condition similar to (24)? In the thought experiment described in the beginning of the previous section, we have ignored the issue of constructing an infinitely long text. In reality, every book with a well defined topic is finite. If we want to obtain an unbounded collection of texts, we need to assemble a corpus of different books and it depends on our assembling criteria whether the books in the corpus will concern some persistent random topic. Moreover, if we already have a single infinite sequence of books generated by some stationary source and we estimate probabilities as relative frequencies of blocks of symbols in this sequence, then, by Theorem 2, we will obtain an ergodic probability measure almost surely.

In this situation, we may ask whether the idea of the power-law growth of the number of inferrable probabilistic facts can be translated somehow to the case of ergodic measures. Some straightforward method to apply is to replace the sequence of independent uniformly distributed probabilistic facts (Zk)k=1, being random variables, with an algorithmically random sequence of particular binary digits (zk)k=1. Such digits zk will be called algorithmic facts in contrast to variables Zk being called probabilistic facts.

Let us recall some basic concepts. For a discrete random variable X, let P(X) denote the random variable that takes value P(X=x) when X takes value x. We will introduce the pointwise entropy

H(X):=logP(X), (25)

where log stands for the natural logarithm. The prefix-free Kolmogorov complexity K(u) of a string u is the length of the shortest self-delimiting program written in binary digits that prints out string u ([37], Chapter 3). K(u) is the founding concept of the algorithmic information theory and is an analogue of the pointwise entropy. To keep our notation analogical to (25), we will write the algorithmic entropy

Ha(u):=K(u)log2. (26)

If the probability measure is computable, then the algorithmic entropy is close to the pointwise entropy. On the one hand, by the Shannon–Fano coding for a computable probability measure, the algorithmic entropy is less than the pointwise entropy plus a constant which depends on the probability measure and the dimensionality of the distribution ([37], Corollary 4.3.1). Formally,

Ha(X1n)H(X1n)+2logn+CP, (27)

where CP0 is a certain constant depending on the probability measure P. On the other hand, since the prefix-free Kolmogorov complexity is also the length of a prefix-free code, we have

EHa(X1n)EH(X1n). (28)

It is also true that Ha(X1n)H(X1n) for sufficiently large n almost surely ([38], Theorem 3.1). Thus, we have shown that the algorithmic entropy is in some sense close to the pointwise entropy, for a computable probability measure.

Next, we will discuss the difference between probabilistic and algorithmic randomness. Whereas for an IID sequence of random variables (Zk)k=1 with P(Zk=0)=P(Zk=1)=1/2 we have

H(Z1k)=klog2, (29)

similarly an infinite sequence of binary digits (zk)k=1 is called algorithmically random (in the Martin-Löf sense) when there exists a constant C0 such that

Ha(z1k)klog2C (30)

for all kN ([37], Theorem 3.6.1). The probability that the aforementioned sequence of random variables (Zk)k=1 is algorithmically random equals 1—for example by ([38], Theorem 3.1), so algorithmically random sequences are typical realizations of sequence (Zk)k=1.

Let (Xi)i=1 be a stationary process. We observe that generalizing condition (17) in an algorithmic fashion does not make much sense. Namely, condition

limnP(g(k;Xii+n1)=zk)=1 (31)

is trivially satisfied for any stationary process for a certain computable function g:N×X*0,1,2 and an algorithmically random sequence (zk)k=1. It turns out so since there exists a computable function ω:N×N0,1 such that limnω(k;n)=Ωk, where (Ωk)k=1 is the binary expansion of the halting probability Ω=k=12kΩk, which is a lower semi-computable algorithmically random sequence ([37], Section 3.6.2).

In spite of this negative result, the power-law growth of the number of inferrable algorithmic facts corresponds to some nontrivial property. For a computable function g:N×X*0,1,2 and an algorithmically random sequence of binary digits (zk)k=1, which we will call algorithmic facts, the set of initial algorithmic facts inferrable from a finite text X1n will be defined as

Ua(X1n):=lN:g(k;X1n)=zkforallkl. (32)

Subsequently, we will call a process perigraphic if the expected number of algorithmic facts which can be inferred from a finite text sampled from the process grows asymptotically like a power of the text length.

Definition 2.

A stationary discrete process (Xi)i=1 is called perigraphic if

hilbnEcardUa(X1n)>0 (33)

for some computable function g:N×X*0,1,2 and an algorithmically random sequence of binary digits (zk)k=1.

Perigraphic processes can be ergodic. The proof of Theorem A10 from Appendix C can be easily adapted to show that some example of a perigraphic process is the Santa Fe process with sequence (Zk)k=1 replaced by an algorithmically random sequence of binary digits (zk)k=1. To be very concrete, the example of a perigraphic process can be process (Xi)i=1 with

Xi=(Ki,ΩKi) (34)

where (Ωk)k=1 is the binary expansion of the halting probability and (Ki)i=1 is an IID process with Ki assuming values in natural numbers with the power-law distribution (18). This process is not only perigraphic but also IID and hence ergodic.

We can also easily show the following proposition.

Theorem 5.

Any perigraphic process (Xi)i=1 has an uncomputable measure P.

Proof. 

Assume that a perigraphic process (Xi)i=1 has a computable measure P. By inequalities (A25) and (A26) from Appendix A, we have

hilbnEcardUa(X1n)hilbnEHa(X1n)H(X1n). (35)

Since, for a computable measure P, we also have inequality (27), then

hilbnEcardUa(X1n)=0. (36)

Since we have obtained a contradiction with the assumption that the process is perigraphic, measure P cannot be computable. ☐

5. Theorem about Facts and Words

In this section, we will present a result about stationary processes, which we call the theorem about facts and words. This proposition states that the expected number of independent probabilistic or algorithmic facts inferrable from the text drawn from a stationary process must be roughly less than the expected number of distinct word-like strings detectable in the text by a simple procedure involving the PPM compression algorithm. This result states, in particular, that an asymptotic power law growth of the number of inferrable probabilistic or algorithmic facts as a function of the text length produces a statistically measurable effect, namely, an asymptotic power law growth of the number of word-like strings.

To state the theorem about facts and words formally, we need first to discuss the PPM code. The general idea of the PPM code comes from Refs. [6,7], developed independently. This compression scheme was called the PPM code in [7], which stands for “Prediction by Partial Matching” and prevails in the literature, whereas it was called measure R in [6,39]. Whereas Ref. [7] focused on practical applications to data compression and earned most of the fame, in Refs. [6,39], one can find a few results that matter for theoretical considerations. Let us denote strings of symbols xjk:=(xj,,xk), adopting an important convention that xjk is the empty string for k<j. In the following, we consider strings over a finite alphabet, say, xiX=1,,D. We define the frequency of a substring w1k in a string x1n as

N(w1k|x1n):=i=1nk+11xii+k1=w1k. (37)

Now, we will define the PPM probabilities in a way that is closer to the conventions of paper [6,39] than to the conventions of Ref. [7]. In particular, in Equation (38), we consider frequencies of strings xiki and xiki1 in different strings, x1i1 and x1i2, respectively, in the numerator and in the denominator to guarantee the proper normalization according to our definition of N(w1k|x1n).

Definition 3

(cf. [6,7]). For x1nXn and k1,0,1,, we put

PPMk(xi|x1i1):=1D,ik,N(xiki|x1i1)+1N(xiki1|x1i2)+D,i>k. (38)

Quantity PPMk(xi|x1i1) is called the conditional PPM probability of order k of symbol xi given string x1i1. Next, we put

PPMk(x1n):=i=1nPPMk(xi|x1i1). (39)

Quantity PPMk(x1n) is called the PPM probability of order k of string x1n. Finally, we put

PPM(x1n):=6π2k=1PPMk(x1n)(k+2)2. (40)

Quantity PPM(x1n) is called the (total) PPM probability of the string x1n.

Quantity PPMk(x1n) is an incremental approximation of the unknown true probability of the string x1n, assuming that the string has been generated by a Markov process of order k. In contrast, quantity PPM(x1n) is a mixture of such Markov approximations for all finite orders. In general, the PPM probabilities are probability distributions over strings of a fixed length. That is:

  • PPMk(xi|x1i1)>0 and xiXPPMk(xi|x1i1)=1,

  • PPMk(x1n)>0 and x1nXnPPMk(x1n)=1,

  • PPM(x1n)>0 and x1nXnPPM(x1n)=1.

In the following, we define an analogue of the pointwise entropy

HPPM(x1n):=logPPM(x1n). (41)

Quantity HPPM(x1n) will be called the length of the PPM code for the string x1n. By nonnegativity of the Kullback–Leibler divergence, we have for any random block X1n that

EHPPM(X1n)EH(X1n). (42)

The length of the PPM code or the PPM probability, respectively, have two notable properties. First, the PPM probability is a universal probability, i.e., in the limit, the length of the PPM code consistently estimates the entropy rate of a stationary source. Second, the PPM probability can be effectively computed, i.e., the summation in definition (40) can be rewritten as a finite sum. Let us state these two results formally.

Theorem 6

(cf. [39]). The PPM probability is universal in expectation, i.e., we have

limn1nEHPPM(X1n)=limn1nEH(X1n) (43)

for any stationary process (Xi)i=1.

For stationary ergodic processes, the above claim follows by an iterated application of the ergodic theorem as shown, e.g., in Theorem 1.1 from [39] for the measure R, which is a slight modification of the PPM probability. To generalize the claim for nonergodic processes, one can use the ergodic decomposition theorem, but the exact proof requires too large of a theoretical overload to be presented within the framework of this paper.

Theorem 7.

The PPM probability can be effectively computed, i.e., we have

PPM(x1n)=6π2k=0L(x1n)PPMk(x1n)(k+2)2+16π2k=0L(x1n)1(k+2)2Dn, (44)

where

L(x1n)=maxk:N(w1k|x1n)>1forsomew1k (45)

is the maximal repetition of string x1n.

Proof. 

We have N(xiki1|x1i2)=0 for k>L(x1i). Hence, PPMk(x1n)=Dn for k>L(x1n) and, in view of this, we obtain the claim. ☐

Maximal repetition as a function of a string was studied, e.g., in [40,41]. Since the PPM probability is a computable probability distribution, then, by (27) for a certain constant CPPM, we have

Ha(X1n)HPPM(X1n)+2logn+CPPM. (46)

Let us denote the length of the PPM code of order k,

HPPMk(x1n):=logPPMk(x1n). (47)

As we can easily see, the code length HPPM(x1n) is approximately equal to the minimal code length HPPMk(x1n) where the minimization goes over k1,0,1,. Thus, it is meaningful to consider this definition of the PPM order of an arbitrary string.

Definition 4.

The PPM order GPPM(x1n) is the smallest G such that

HPPMG(x1n)HPPMk(x1n)forallk1. (48)

Theorem 8.

We have GPPM(x1n)L(x1n).

Proof. 

It follows by PPMk(x1n)=Dn=PPM1(x1n) for k>L(x1n). ☐

Let us divert for a short while from the PPM code definition. The set of distinct substrings of length m in string x1n is

V(m|x1n):=y1m:xt+1t+m=y1mforsome0tnm. (49)

The cardinality of set V(m|x1n) as a function of substring length m is called the subword complexity of string x1n [40]. Now let us apply the concept of the PPM order to define some special set of substrings of an arbitrary string x1n. The set of distinct PPM words detected in x1n will be defined as the set V(m|x1n) for m=GPPM(x1n), i.e.,

VPPM(x1n):=V(GPPM(X1n)|x1n). (50)

Let us define the pointwise mutual information

I(X;Y):=H(X)+H(Y)H(X,Y) (51)

and the algorithmic mutual information

Ia(u;v):=Ha(u)+Ha(v)Ha(u,v). (52)

Now, we may write down the theorem about facts and words. The theorem states that the Hilberg exponent for the expected number of initial independent inferrable facts is less than the Hilberg exponent for the expected mutual information and this is less than the Hilberg exponent for the expected number of distinct detected PPM words plus the PPM order. (The PPM order is usually much less than the number of distinct PPM words.)

Theorem 9

(facts and words I, cf. [25]). Let (Xi)i=1 be a stationary strongly nonergodic process over a finite alphabet. We have inequalities

hilbnEcardU(X1n)hilbnEI(X1n;Xn+12n)hilbnEGPPM(X1n)+cardVPPM(X1n). (53)

Proof. 

The claim follows by conjunction of Theorem A2 from Appendix A and Theorem A8 from Appendix B. ☐

Theorem 9 also has an algorithmic version, for ergodic processes in particular.

Theorem 10

(facts and words II). Let (Xi)i=1 be a stationary process over a finite alphabet. We have inequalities

hilbnEcardUa(X1n)hilbnEIa(X1n;Xn+12n)hilbnEGPPM(X1n)+cardVPPM(X1n). (54)

Proof. 

The claim follows by conjunction of Theorem A3 from Appendix A and Theorem A8 from Appendix B. ☐

The theorem about facts and words previously proven in [25] differs from Theorem 9 in three aspects. First of all, the theorem in [25] did not apply the concept of the Hilberg exponent and compared lim infn with lim supn rather than lim supn with lim supn. Second, the number of inferrable facts was defined as a functional of the process distribution rather than a random variable depending on a particular text. Third, the number of words was defined using a minimal grammar-based code rather than the concept of the PPM order. Minimal grammar-based codes are not computable in a polynomial time in contrast to the PPM order. Thus, we may claim that Theorem 9 is stronger than the theorem about facts and words previously proven in [25]. Moreover, applying Kolmogorov complexity and algorithmic randomness to formulate and prove Theorem 10 is a new idea.

It is an interesting question whether we have an almost sure version of Theorems 9 and 10, namely, whether

hilbncardU(X1n)hilbnI(X1n;Xn+12n)hilbnGPPM(X1n)+cardVPPM(X1n)almostsurely (55)

for strongly nonergodic processes, or

hilbncardUa(X1n)hilbnIa(X1n;Xn+12n)hilbnGPPM(X1n)+cardVPPM(X1n)almostsurely (56)

for general stationary processes. We leave this question as an open problem.

6. Hilberg Exponents and Empirical Data

It is advisable to show that the Hilberg exponents considered in Theorem 9 can assume any value in range [0,1] and the difference between them can be arbitrarily large. We adopt a convention that the set of inferrable probabilistic facts is empty for ergodic processes, U(X1n)=. With this remark in mind, let us inspect some examples of processes.

First of all, for Markov processes and their strongly nonergodic mixtures, of any order k, but, over a finite alphabet, we have

hilbnEcardU(X1n)=hilbnEI(X1n;Xn+12n)=0. (57)

This happens to be so since the sufficient statistic of text X1n for predicting text Xn+12n is the maximum likelihood estimate of the transition matrix, the elements of which can assume at most (n+1) distinct values. Hence, EI(X1n;Xn+12n)Dk+1log(n+1), where D is the cardinality of the alphabet and k is the Markov order of the process. Similarly, it can be shown for these processes that the PPM order satisfies limnGPPM(X1n)k. Hence, the number of PPM words, which satisfies inequality cardVPPM(X1n)DGPPM(X1n), is also bounded above. In consequence, for Markov processes and their strongly nonergodic mixtures, of any order but over a finite alphabet, we obtain

hilbnGPPM(X1n)+cardVPPM(X1n)=0almostsurely. (58)

In contrast, Santa Fe processes are strongly nonergodic mixtures of some IID processes over an infinite alphabet. Being mixtures of IID processes over an infinite alphabet, they need not satisfy condition (58). In fact, as shown in [25,29] and Appendix C, for the Santa Fe process with exponent α, we have the asymptotic power-law growth

hilbnEcardU(X1n)=hilbnEI(X1n;Xn+12n)=1/α(0,1). (59)

The same equality for the number of inferrable probabilistic facts and the mutual information is also satisfied by a stationary coding of the Santa Fe process into a finite alphabet (see [29]).

Let us also note that, whereas the theorem about facts and words provides an inequality of Hilberg exponents, this inequality can be strict. To provide some substance, in [29], we have constructed a modification of the Santa Fe process that is ergodic and over a finite alphabet. For this modification, we have only the power-law growth of mutual information

hilbnEI(X1n;Xn+12n)=1/α(0,1). (60)

Since, in this case, hilbnEcardU(X1n)=0, then the difference between the Hilberg exponents for the number of inferrable probabilistic facts and the number of PPM words can be an arbitrary number in range (0,1).

Now, we are in a position to discuss some empirical data. In this case, we cannot directly measure the number of facts and the mutual information, but we can compute the PPM order and count the number of PPM words. In Figure 1, we have presented data for a collection of 35 plays by William Shakespeare (downloaded from the Project Gutenberg, https://www.gutenberg.org/) and a random permutation of characters appearing in this collection of texts. The random permutation of characters is an IID process over a finite alphabet, so, in this case, we obtain

hilbncardVPPM(x1n)=0. (61)

Figure 1.

Figure 1

The PPM order GPPM(x1n) and the cardinality of the PPM vocabulary cardVPPM(x1n) versus the input length n for William Shakespeare’s First Folio/35 Plays and a random permutation of the text’s characters.

In contrast, for the plays of Shakespeare, we seem to have a stepwise power law growth of the number of distinct PPM words. Thus, we may suppose that, for natural language, we have more generally

hilbncardVPPM(x1n)>0. (62)

If relationship (62) holds true, then natural language cannot be a Markov process of any order. Moreover, in view of the striking difference between observations (61) and (62), we may suppose that the number of inferrable probabilistic or algorithmic facts for texts in natural language also obeys a power-law growth. Formally speaking, this condition would translate to natural language being strongly nonergodic or perigraphic. We note that this hypothesis arises only as a form of a weak inductive inference since formally we cannot deduce condition (33) from mere condition (62), regardless of the amount of data supporting condition (62).

7. Conclusions

In this article, a stationary process has been called strongly nonergodic if some persistent random topic can be detected in the process and an infinite number of independent binary random variables, called probabilistic facts, is needed to describe this topic completely. Replacing probabilistic facts with an algorithmically random sequence of bits, called algorithmic facts, we have adapted this property back to ergodic processes. Subsequently, we have called a process perigraphic if the number of algorithmic facts which can be inferred from a finite text sampled from the process grows like a power of the text length.

We have demonstrated an assertion, which we call the theorem about facts and words. This proposition states that the number of independent probabilistic or algorithmic facts which can be inferred from a text drawn from a process must be roughly smaller than the number of distinct word-like strings detected in this text by means of the PPM compression algorithm. We have exhibited two versions of this theorem: one for strongly nonergodic processes, applying the Shannon information theory, and one for ergodic processes, applying the algorithmic information theory.

Subsequently, we have exhibited an empirical observation that the number of distinct word-like strings grows like a stepwise power law for a collection of plays by William Shakespeare, in stark contrast to Markov processes. This observation does not rule out that the number of probabilistic or algorithmic facts inferrable from texts in natural language also grows like a power law. Hence, we have supposed that natural language is a perigraphic process.

We suppose that the path of the future related research should lead through a further analysis of the theorem about facts and words, and demonstrating an almost sure version of this statement. It is also an important, still unresolved question whether theoretical analysis of effective universal coding algorithms and their rates of convergence to the entropy rate can contribute to some definite statements about natural language treated as a stochastic process. We realize that the results of this paper as far as the linguistic theory is concerned may be still too inconclusive. As we see it, the main merit of this paper lies in linking some concepts in the Shannon information theory and the algorithmic information theory and providing some linguistic interpretations of them.

Acknowledgments

We wish to thank Jacek Koronacki, Jan Mielniczuk, Vladimir Vovk, and Boris Ryabko for helpful comments.

Abbreviations

The following abbreviations are used in this manuscript:

IID independent identically distributed
PPM prediction by partial matching

Appendix A. Facts and Mutual Information

In the appendices, we will make use of several kinds of information measures.

  1. First, there are four pointwise Shannon information measures:
    • entropy
      H(X)=logP(X),
    • conditional entropy
      H(X|Z):=logP(X|Z),
    • mutual information
      I(X;Y):=H(X)+H(Y)H(X,Y),
    • conditional mutual information
      I(X;Y|Z):=H(X|Z)+H(Y|Z)H(X,Y|Z),
    where P(X) is the probability of a random variable X and P(X|Z) is the conditional probability of a random variable X given a random variable Z. The above definitions make sense for discrete-valued random variables X and Y and an arbitrary random variable Z. If Z is a discrete-valued random variable, then also H(X,Z)H(Z)=H(X|Z) and I(X;Z)=H(X)H(X|Z).
  2. Moreover, we will use four algorithmic information measures:
    • entropy
      Ha(x)=K(x)log2,
    • conditional entropy
      Ha(x|z):=K(x|z)log2,
    • mutual information
      Ia(x;y):=Ha(x)+Ha(y)Ha(x,y),
    • conditional mutual information
      Ia(x;y|z):=Ha(x|z)+Ha(y|z)Ha(x,y|z),
    where K(x) is the prefix-free Kolmogorov complexity of an object x and K(x|z) is the prefix-free Kolmogorov complexity of an object x given an object z. In the above definitions, x and y must be finite objects (finite texts), whereas z can be also an infinite object (an infinite sequence). If z is a finite object, then Ha(x,z)Ha(z)=+Ha(x|z,K(z)) rather than being equal to Ha(x|z), where =+, <+, and >+ are the equality and the inequalities up to an additive constant ([37], Theorem 3.9.1). Hence,
    Ha(x)Ha(x|z)+Ha(K(z))>+Ia(x;z)=+Ha(x)Ha(x|z,K(z))>+Ha(x)Ha(x|z). (A1)

In the following, we will prove a result for Hilberg exponents.

Theorem A1.

For a function G:NR, define J(n):=2G(n)G(2n). If the limit limnG(n)/n=g exists and is finite, then

hilbnG(n)nghilbnJ(n), (A2)

with an equality if J(2n)>+0 for all but finitely many n.

Proof. 

The proof makes use of the telescope sum

k=0J(2k+n)2k+1=G(2n)2ng. (A3)

Denote δ:=hilbnJ(n). Since hilbnG(n)ng1, it is sufficient to prove inequality (A2) for δ<1. In this case, J(2n)2(δ+ϵ)n for all but finitely many n for any ϵ>0. Then, for ϵ<1δ, by the telescope sum (A3), we obtain for sufficiently large n that

G(2n)2ngk=02(δ+ϵ)(k+n)2k+12(δ+ϵ)nk=02(δ+ϵ1)k1=2(δ+ϵ)n2(12δ+ϵ1). (A4)

Since ϵ can be taken arbitrarily small, we obtain (A2).

Now assume that J(2n)>+0 for all but finitely many n. By the telescope sum (A3), we have J(2n)/2<+G(2n)2ng for sufficiently large n. Hence,

δhilbnG(n)ng (A5)

Combining this with (A2), we obtain hilbnG(n)ng=δ. ☐

For any stationary process (Xi)i=1 over a finite alphabet, there exists a limit

h:=limnEH(X1n)n=EH(X1|X2), (A6)

called the entropy rate of process (Xi)i=1 [3]. By (28), (43), and (46), we also have

h=limnEHa(X1n)n. (A7)

Moreover, for a stationary process, the mutual information satisfies

EI(X1n;Xn+12n)=2EH(X1n)EH(X12n)0, (A8)
EIa(X1n;Xn+12n)=2EHa(X1n)EHa(X12n)>+0. (A9)

Hence, by Theorem A1, we obtain

hilbnEH(X1n)hn=hilbnEI(X1n;Xn+12n), (A10)
hilbnEHa(X1n)hn=hilbnEIa(X1n;Xn+12n). (A13)

Subsequently, we will prove the initial parts of Theorems 9 and 10, i.e., the two versions of the theorem about facts and words. The probabilistic statement for strongly nonergodic processes goes first.

Theorem A2

(facts and mutual information I). Let (Xi)i=1 be a stationary strongly nonergodic process over a finite alphabet. We have inequality

hilbnEcardU(X1n)hilbnEI(X1n;Xn+12n). (A12)

Proof. 

Let us write Sn:=cardU(X1n). Observe that

EH(Z1Sn|Sn)=s,wP(Sn=s,Z1s=w)logP(Z1s=w|Sn=s)s,wP(Sn=s,Z1s=w)logP(Z1s=w)P(Sn=s)=s,wP(Sn=s,Z1s=w)log2sP(Sn=s)=(log2)ESnEH(Sn), (A13)
EH(Sn)(ESn+1)log(ESn+1)ESnlogESn=log(ESn+1)+ESnlogESn+1ESnlog(ESn+1)+1, (A14)

where the second row of inequalities follows by the maximum entropy bound from ([3], Lemma 13.5.4). Hence, by the inequality

EH(X|Y)EH(X|f(Y)) (A15)

for a measurable function f, we obtain that

EH(X1n)EH(X1n|Z1)EH(X1n|Sn)EH(X1n|Z1,Sn)EH(Sn)EH(X1n|Sn)EH(X1n|Z1Sn,Sn)EH(Sn)=EI(X1n;Z1Sn|Sn)EH(Sn)EH(Z1Sn|Sn)EH(Z1Sn|X1n,Sn)EH(Sn)=EH(Z1Sn|Sn)EH(Sn)(log2)ESn2EH(Sn)(log2)ESn2log(ESn+1)+1. (A16)

Now, we observe that

EH(X1n|Z1)EH(X1n|Xn+1)=hn (A17)

since the sequence of random variables Z1 is a measurable function of the sequence of random variables Xn+1, as shown in [24,25]. Hence, we have

EH(X1n)EH(X1n|Z1)EH(X1n)hn. (A18)

By inequalities (A17) and (A18) and equality (A10), we obtain inequality (A12). ☐

The algorithmic version of the theorem about facts and words follows roughly the same idea, with some necessary adjustments.

Theorem A3

(facts and mutual information II). Let (Xi)i=1 be a stationary process over a finite alphabet. We have inequality

hilbnEcardUa(X1n)hilbnEIa(X1n;Xn+12n). (A19)

Proof. 

Let us write Sn:=cardUa(X1n). Observe that

Ha(z1Sn|Sn)>+Ha(z1Sn)Ha(Sn)=+(log2)SnCHa(Sn), (A20)
Ha(Sn)<+2log(Sn+1), (A21)
Ha(K(z1Sn))<+2log(K(z1Sn)+1)<+2log(Sn+1), (A22)

where the first row of inequalities follows by the algorithmic randomness of z1, whereas the second and the third row of inequalities follow by the bounds K(n)<+2log2(n+1) for n0 and K(z1k)<+2k. Moreover, for any a computable function f, there exists a constant Cf0 such that

Ha(x|y)<+Ha(x|f(y))+Cf. (A23)

Hence, we obtain that

Ha(X1n)Ha(X1n|z1)>+Ha(X1n|Sn)Ha(X1n|z1,Sn)Ha(Sn)>+Ha(X1n|Sn)Ha(X1n|z1Sn,Sn)Ha(Sn)>+Ia(X1n;z1Sn|Sn)Ha(K(z1Sn))Ha(Sn)>+Ha(z1Sn|Sn)Ha(z1Sn|X1n,K(X1n),Sn)Ha(K(z1Sn))Ha(Sn)>+Ha(z1Sn|Sn)CgHa(K(z1Sn))Ha(Sn)>+(log2)SnCCgHa(K(z1Sn))2Ha(Sn)>+(log2)Sn6log(Sn+1)CCg. (A24)

Since Elog(Sn+1)log(ESn+1) by the Jensen inequality, then

EHa(X1n)EHa(X1n|z1)>+(log2)ESn6log(ESn+1)CCg. (A25)

Now, we observe that

EHa(X1n|z1)EH(X1n)hn (A26)

since the conditional prefix-free Kolmogorov complexity with the second argument fixed is the length of a prefix-free code. Hence, we have

EHa(X1n)EHa(X1n|z1)EHa(X1n)hn. (A27)

By inequalities (A25) and (A27) and equality (A11), we obtain inequality (A19). ☐

Appendix B. Mutual Information and PPM Words

In this appendix, we will investigate some algebraic properties of the length of the PPM code to be used for proving the second part of the theorem about facts and words. First of all, it can be seen that

HPPMk(x1n)=nlogD,k=1,klogD+uXklog(N(u|x1n1)+D1)!(D1)!a=1DN(ua|x1n)!,k0. (A28)

Expression (A28) can be further rewritten using notation

log*n:=0,n=0,logn!nlogn+n,n1, (A29)
H(n1,,nl):=i=1:ni>0lnilogj=1lnjni,ifnj>0exists,0,else, (A30)
K(n1,,nl):=i=1llog*nilog*i=1lni. (A31)

Then, for k0, we define

HPPMk0(x1n):=uXkHN(u1|x1n),,N(uD|x1n), (A32)
HPPMk1(x1n):=uXkHN(u|x1n1),D1uXkKN(u1|x1n),,N(uD|x1n),D1. (A33)

As a result for k0, we obtain

HPPMk(x1n)=klogD+HPPMk0(x1n)+HPPMk1(x1n). (A34)

In the following, we will analyze the terms on the right-hand side of (A34).

Theorem A4.

For k0 and n1, we have

D˜cardV(k|x1n1)HPPMk1(x1n)<DcardV(k|x1n1)2+logn, (A35)

where D˜:=DlogD1!>0.

Proof. 

Observe that H(0,D1)=K(0,,0,D1)=0. Hence, the summation in HPPMk1(x1n) can be restricted to uXk such that N(u|x1n1)1. Consider such a u and write N=N(u|x1n1) and Na=N(ua|x1n).

Since H(n1,,nl)0 and K(n1,,nl)0 (the second inequality follows by subadditivity of log*n), we obtain first

HN,D1KN1,,ND,D1HN,D1=Nlog1+D1N+(D1)log1+ND1N·D1N+(D1)log1+ND1=(D1)1+log1+ND1<D2+logn, (A36)

where we use log(1+x)x and N<n. On the other hand, function log*n is concave so by a=1DNa=N and the Jensen inequality for log*n, we obtain

HN,D1KN1,,ND,D1FN,D:=Nlog1+D1N+(D1)log1+ND1+log*(N+D1)log*(D1)Dlog*N/D=log(N+D1)!log(D1)!DlogN/D!NlogD=log(N+D1)!(D1)!N/D!DDN0, (A37)

since

N/D!DDN=ND(ND)D(N2D)DDD(N+D1)(N+D2)D=(N+D1)!(D1)!. (A38)

Moreover, function FN,D is growing in argument N. Hence,

FN,DF1,D=DlogD1!. (A39)

Summing inequalities (A36) and (A39) over uXk such that N(u|x1n)1, we obtain the claim. ☐

The mutual information is defined as a difference of entropies. Replacing the entropy with an arbitrary function HQ(u), we obtain this quantity:

Definition A1.

The Q pointwise mutual information is defined as

IQ(u;v):=HQ(u)+HQ(v)HQ(uv). (A40)

We will show that the PPMk0 pointwise mutual information cannot be positive.

Theorem A5.

For ni=j=1lnij, where nij0, we have

H(n1,,nk)j=1lH(n1j,,nkj). (A41)

Proof. 

Write N:=i=1kj=1lnij, pij:=nij/N, qi:=j=1lpij, and rj:=i=1kpij. We observe that

H(n1,,nk)j=1lH(n1j,,nkj)=Ni=1kj=1lpijlogpijqirj, (A42)

which is N times the Kullback–Leibler divergence between distributions pij and qirj and thus is nonnegative. ☐

Theorem A6.

For k0, we have

IPPMk0(x1n;xn+1n+m)0. (A43)

Proof. 

Consider k0. For uXk and aX, we have

N(ua|x1n+m)=N(ua|x1n)+N(ua|xnkn+k)+N(ua|xn+1n+m). (A44)

Thus, using Theorem A5, we obtain

HN(u1|x1n+m),,N(uD|x1n+m)HN(u1|x1n),,N(uD|x1n)+HN(u1|xnkn+k),,N(uD|xnkn+k)+HN(u1|xn+1n+m),,N(uD|xn+1n+m). (A45)

Since the second term on the right-hand side is greater than or equal zero, we may omit it and summing the remaining terms over all uXk we obtain the claim. ☐

Now, we will show that the PPM pointwise mutual information between two parts of a string is roughly bounded above by the cardinality of the PPM vocabulary of the string multiplied by the logarithm of the string length.

Theorem A7.

We have

IPPM(x1n;xn+1n+m)1+4logGPPM(x1n+m)+2+GPPM(x1n+m)+1logD+2DcardVPPM(x1n+m)2+log(n+m). (A46)

Proof. 

Consider k0. By Theorems A4 and A6, we obtain

IPPMk(x1n;xn+1n+m)=klogD+IPPMk0(x1n;xn+1n+m)+IPPMk1(x1n;xn+1n+m)klogD+DcardV(k|x1n)2+logn+DcardV(k|xn+1n+m)2+logmklogD+2DcardV(k|x1n+m)2+log(n+m). (A47)

In contrast, IPPM1(x1n;xn+1n+m)=0. Now, let G=GPPM(x1n+m). Since

HPPM(x1n+m)HPPMG(x1n+m) (A48)

and

HPPM(u)HPPMk(u)+1/2+2log(k+2) (A49)

for any uX* and k1, we obtain

IPPM(x1n;xn+1n+m)IPPMG(x1n;xn+1n+m)+1+4log(G+2)1+4log(G+2)+(G+1)logD+2DcardV(G|x1n+m)2+log(n+m). (A50)

Hence, the claim follows. ☐

Consequently, we may prove the second part of Theorems 9 and 10, i.e., the theorems about facts and words.

Theorem A8

(mutual information and words). Let (Xi)i=1 be a stationary process over a finite alphabet. We have inequalities

hilbnEI(X1n;Xn+12n)hilbnEIa(X1n;Xn+12n)hilbnEGPPM(X1n)+cardVPPM(X1n). (A51)

Proof. 

By Theorem A7, we obtain

hilbnEIPPM(X1n;Xn+12n)hilbnEGPPM(X1n)+cardVPPM(X1n). (A52)

In contrast, Theorems 6 and A1 and inequalities (28) and (46) yield

hilbnEH(X1n)hnhilbnEHa(X1n)hnhilbnEHPPM(X1n)hnhilbnEIPPM(X1n;Xn+12n). (A53)

Hence, by equalities (A10) and (A11), we obtain inequality (A51). ☐

Appendix C. Hilberg Exponents for Santa Fe Processes

We begin with a general observation for Hilberg exponents. In [36], this result was discussed only for the Hilberg exponent of mutual information.

Theorem A9

(cf. [36]). For a sequence of random variables Yn0, we have

hilbnYnhilbnEYnalmostsurely. (A54)

Proof. 

Denote δ:=hilbnEYn. From the Markov inequality, we have

k=1PY2k2k(δ+ϵ)1k=1EY2k2k(δ+ϵ)A+k=12k(δ+ϵ/2)2k(δ+ϵ)<, (A55)

where A<. Hence, by the Borel–Cantelli lemma, we have Y2k<2k(δ+ϵ) for all but finitely many n almost surely. Since we can choose ϵ arbitrarily small, in particular, we obtain inequality (A54). ☐

In [29,36], it was shown that the Santa Fe process with exponent α satisfies equalities

hilbnI(Xn+10;X1n)=1/αalmostsurely, (A56)
hilbnEI(Xn+10;X1n)=1/α. (A57)

We will now show a similar result for the number of probabilistic facts inferrable from the Santa Fe process almost surely and in expectation. Since Santa Fe processes are processes over an infinite alphabet, we cannot apply the theorem about facts and words.

Theorem A10.

For the Santa Fe process with exponent α, we have

hilbncardU(X1n)=1/αalmostsurely, (A58)
hilbnEcardU(X1n)=1/α. (A59)

Proof. 

First, we obtain

P(cardU(X1n)mn)k=1mnP(g(k;X1n)Zk)=k=1mn1P(Ki=k)nmn1mnαζ(α)nmnexpnmnα/ζ(α), (A60)

where ζ(α):=k=1kα is the zeta function. Put now mn=n1/αϵ for an ϵ>0. It is easy to observe that n=1P(cardU(X1n)mn)<. Hence, by the Borel–Cantelli lemma, we have inequality cardU(X1n)>mn for all but finitely many n almost surely.

Second, we obtain

P(cardU(X1n)Mn)n!(nMn)!k=1MnP(Ki=k)=n!(nMn)!(Mn!)α[ζ(α)]Mn. (A61)

Recalling from Appendix B that logn!=n(logn1)+log*n, where log*nlog(n+2) is subadditive, we obtain

logP(cardU(X1n)Mn)n(logn1)(nMn)log(nMn)1αMn(logMn1)+log*MnMnlogζ(α)Mnlognα(logMn1)logζ(α)+log*Mn (A62)

by lognlog(nMn)+Mnn. Put now Mn=Cn1/α for a C>e[ζ(α)]1/α. We obtain

P(cardU(X1n)Mn)(Cn1/α+2)exp(δn1/α), (A63)

where δ>0 so n=1P(cardU(X1n)Mn)<. Hence, by the Borel–Cantelli lemma, we have inequality cardU(X1n)<Mn for all but finitely many n almost surely. Combining this result with the previous result yields equality (A58).

To obtain equality (A59), we invoke Theorem A9 for the lower bound, whereas, for the upper bound, we observe that

EcardU(X1n)Mn+nP(cardU(X1n)Mn), (A64)

where the last term decays according to the stretched exponential bound (A63) for Mn=Cn1/α. ☐

Conflicts of Interest

The author declares no conflict of interest.

References

  • 1.Shannon C. A mathematical theory of communication. Bell Syst. Tech. J. 1948;30:379–423, 623–656. doi: 10.1002/j.1538-7305.1948.tb01338.x. [DOI] [Google Scholar]
  • 2.Shannon C. Prediction and entropy of printed English. Bell Syst. Tech. J. 1951;30:50–64. doi: 10.1002/j.1538-7305.1951.tb01366.x. [DOI] [Google Scholar]
  • 3.Cover T.M., Thomas J.A. Elements of Information Theory. 2nd ed. Wiley; Hoboken, NJ, USA: 2006. [Google Scholar]
  • 4.Jelinek F. Statistical Methods for Speech Recognition. The MIT Press; Cambridge, MA, USA: 1997. [Google Scholar]
  • 5.Manning C.D., Schütze H. Foundations of Statistical Natural Language Processing. The MIT Press; Cambridge, MA, USA: 1999. [Google Scholar]
  • 6.Ryabko B. Twice-universal coding. Probl. Inf. Transm. 1984;20:173–177. [Google Scholar]
  • 7.Cleary J.G., Witten I.H. Data compression using adaptive coding and partial string matching. IEEE Trans. Commun. 1984;32:396–402. doi: 10.1109/TCOM.1984.1096090. [DOI] [Google Scholar]
  • 8.Zipf G.K. The Psycho-Biology of Language: An Introduction to Dynamic Philology. 2nd ed. The MIT Press; Cambridge, MA, USA: 1965. [Google Scholar]
  • 9.Mandelbrot B. Structure formelle des textes et communication. Word. 1954;10:1–27. doi: 10.1080/00437956.1954.11659509. [DOI] [Google Scholar]
  • 10.Kuraszkiewicz W., Łukaszewicz J. The number of different words as a function of text length. Pamięt. Lit. 1951;42:168–182. (In Polish) [Google Scholar]
  • 11.Guiraud P. Les Caractères Statistiques du Vocabulaire. Presses Universitaires de France; Paris, France: 1954. [Google Scholar]
  • 12.Herdan G. Quantitative Linguistics. Butterworths; London, UK: 1964. [Google Scholar]
  • 13.Heaps H.S. Information Retrieval—Computational and Theoretical Aspects. Academic Press; Cambridge, MA, USA: 1978. [Google Scholar]
  • 14.Hilberg W. Der bekannte Grenzwert der redundanzfreien Information in Texten—Eine Fehlinterpretation der Shannonschen Experimente? Frequenz. 1990;44:243–248. doi: 10.1515/FREQ.1990.44.9-10.243. [DOI] [Google Scholar]
  • 15.Ebeling W., Nicolis G. Entropy of Symbolic Sequences: The Role of Correlations. Europhys. Lett. 1991;14:191–196. doi: 10.1209/0295-5075/14/3/001. [DOI] [Google Scholar]
  • 16.Ebeling W., Pöschel T. Entropy and long-range correlations in literary English. Europhys. Lett. 1994;26:241–246. doi: 10.1209/0295-5075/26/4/001. [DOI] [Google Scholar]
  • 17.Bialek W., Nemenman I., Tishby N. Complexity through nonextensivity. Physica A. 2001;302:89–99. doi: 10.1016/S0378-4371(01)00444-7. [DOI] [Google Scholar]
  • 18.Crutchfield J.P., Feldman D.P. Regularities unseen, randomness observed: The entropy convergence hierarchy. Chaos. 2003;15:25–54. doi: 10.1063/1.1530990. [DOI] [PubMed] [Google Scholar]
  • 19.Dębowski Ł. On Hilberg’s law and its links with Guiraud’s law. J. Quant. Linguist. 2006;13:81–109. [Google Scholar]
  • 20.Wolff J.G. Language acquisition and the discovery of phrase structure. Lang. Speech. 1980;23:255–269. doi: 10.1177/002383098002300303. [DOI] [PubMed] [Google Scholar]
  • 21.De Marcken C.G. Ph.D. Thesis. Massachussetts Institute of Technology; Cambridge, MA, USA: 1996. Unsupervised Language Acquisition. [Google Scholar]
  • 22.Kit C., Wilks Y. Unsupervised Learning of Word Boundary with Description Length Gain. In: Osborne M., Sang E.T.K., editors. Proceedings of the Computational Natural Language Learning ACL Workshop, Bergen. The Association for Computational Linguistics; Stroudsburg, PA, USA: 1999. pp. 1–6. [Google Scholar]
  • 23.Kieffer J.C., Yang E. Grammar-based codes: A new class of universal lossless source codes. IEEE Trans. Inf. Theory. 2000;46:737–754. doi: 10.1109/18.841160. [DOI] [Google Scholar]
  • 24.Dębowski Ł. A general definition of conditional information and its application to ergodic decomposition. Statist. Probab. Lett. 2009;79:1260–1268. [Google Scholar]
  • 25.Dębowski Ł. On the Vocabulary of Grammar-Based Codes and the Logical Consistency of Texts. IEEE Trans. Inf. Theory. 2011;57:4589–4599. [Google Scholar]
  • 26.Charikar M., Lehman E., Lehman A., Liu D., Panigrahy R., Prabhakaran M., Sahai A., Shelat A. The Smallest Grammar Problem. IEEE Trans. Inf. Theory. 2005;51:2554–2576. doi: 10.1109/TIT.2005.850116. [DOI] [Google Scholar]
  • 27.Dębowski Ł. Excess entropy in natural language: present state and perspectives. Chaos. 2011;21:037105. doi: 10.1063/1.3630929. [DOI] [PubMed] [Google Scholar]
  • 28.Dębowski Ł. The Relaxed Hilberg Conjecture: A Review and New Experimental Support. J. Quantit. Linguist. 2015;22:311–337. [Google Scholar]
  • 29.Dębowski Ł. Mixing, Ergodic, and Nonergodic Processes with Rapidly Growing Information between Blocks. IEEE Trans. Inf. Theory. 2012;58:3392–3401. [Google Scholar]
  • 30.Billingsley P. Probability and Measure. Wiley; Hoboken, NJ, USA: 1979. [Google Scholar]
  • 31.Gray R.M. Probability, Random Processes, and Ergodic Properties. Springer; Berlin/Heidelberg, Germany: 2009. [Google Scholar]
  • 32.Breiman L. Probability. SIAM; Philadephia, PA, USA: 1992. [Google Scholar]
  • 33.Kallenberg O. Foundations of Modern Probability. Springer; Berlin/Heidelberg, Germany: 1997. [Google Scholar]
  • 34.Yaglom A.M., Yaglom I.M. Theory and Decision Library. Springer; Berlin/Heidelberg, Germany: 1983. Probability and Information. [Google Scholar]
  • 35.Gray R.M., Davisson L.D. The ergodic decomposition of stationary discrete random processses. IEEE Trans. Inf. Theory. 1974;20:625–636. doi: 10.1109/TIT.1974.1055287. [DOI] [Google Scholar]
  • 36.Dębowski Ł. Hilberg Exponents: New Measures of Long Memory in the Process. IEEE Trans. Inf. Theory. 2015;61:5716–5726. [Google Scholar]
  • 37.Li M., Vitányi P.M.B. An Introduction to Kolmogorov Complexity and Its Applications. 3rd ed. Springer; Berlin/Heidelberg, Germany: 2008. [Google Scholar]
  • 38.Barron A.R. Ph.D. Thesis. Stanford University; Stanford, CA, USA: 1985. Logically Smooth Density Estimation. [Google Scholar]
  • 39.Ryabko B. Applications of Universal Source Coding to Statistical Analysis of Time Series. In: Woungang I., Misra S., Misra S.C., editors. Selected Topics in Information and Coding Theory. World Scientific Publishing; Singapore: 2010. (Series on Coding and Cryptology). [Google Scholar]
  • 40.De Luca A. On the combinatorics of finite words. Theor. Comput. Sci. 1999;218:13–39. doi: 10.1016/S0304-3975(98)00248-5. [DOI] [Google Scholar]
  • 41.Dębowski Ł. Maximal Repetitions in Written Texts: Finite Energy Hypothesis vs. Strong Hilberg Conjecture. Entropy. 2015;17:5903–5919. [Google Scholar]

Articles from Entropy are provided here courtesy of Multidisciplinary Digital Publishing Institute (MDPI)

RESOURCES