Next Article in Journal
A Novel Multi-Exposure Image Fusion Method Based on Adaptive Patch Structure
Next Article in Special Issue
AD or Non-AD: A Deep Learning Approach to Detect Advertisements from Magazines
Previous Article in Journal / Special Issue
Entropy and Mutability for the q-State Clock Model in Small Systems
Article Menu
Issue 12 (December) cover image

Export Article

Entropy 2018, 20(12), 934; https://doi.org/10.3390/e20120934

Article
An Informational Test for Random Finite Strings
†,‡ and *,†,‡
Department of Computer Science, University of Verona, 37134 Verona, Italy
*
Correspondence: [email protected]; Tel.: +39-045-802-7981
Current address: Strada le Grazie 15, 37134 Verona, Italy.
These authors contributed equally to this work.
Received: 9 November 2018 / Accepted: 3 December 2018 / Published: 6 December 2018

Abstract

:
In this paper, by extending some results of informational genomics, we present a new randomness test based on the empirical entropy of strings and some properties of the repeatability and unrepeatability of substrings of certain lengths. We give the theoretical motivations of our method and some experimental results of its application to a wide class of strings: decimal representations of real numbers, roulette outcomes, logistic maps, linear congruential generators, quantum measurements, natural language texts, and genomes. It will be evident that the evaluation of randomness resulting from our tests does not distinguish among the different sources of randomness (natural, or pseudo-casual).
Keywords:
algorithmic information theory; incompressibility; typicality; randomness test; pseudo-random generators; k-mer multiplicity; k-entropy; informational indexes

1. Introduction

The notion of randomness has been studied since the beginning of probability theory (“Ars Conjectandi sive Stochastice” is the title of the famous treatise of Bernoulli). In time, many connections with scientific concepts were discovered, and random structures have become crucial in many fields, from randomized algorithms to encryption methods. However, very often, the lines of investigation about randomness appeared not to be clearly related and integrated. In the following, we outline a synthesis of the main topics and problems addressed in the scientific analysis of randomness, for a better understanding of the approach presented in the paper.

1.1. Mathematical Definitions of Randomness

The attempts to provide mathematical definitions agreeing with the intuitive meaning of this concept have a very long and complex history [1,2]. According to algorithmic information theory [3,4,5,6,7,8,9] a finite string is random if it is incompressible, that is, the length of any program generating it is always longer than the length of the string (decreased by an additive constant independent of the length of the string). This definition opens a wide spectrum of analyses relating randomness to computation and complexity. Algorithmic information theory puts in evidence a strong link relating computation with randomness. This link was also a key point of Martin-Löf’s approach to randomness for infinite strings [10]. In particular, a theoretical notion of the statistical test was developed by him in terms of computability theory. A sequence is defined as random when it passes all recursively-enumerable tests by escaping from fulfilling any computable “peculiar” property of strings. In this sense, a random string has to be typical, or amorphous, or generic. Already, Shannon, in his famous booklet [11] founding information theory, used typicality in the proof of his second theorem, by finding that when the string lengths increase, the number of non-typical sequences vanishes. Just the lack of any peculiarity of typical sequences is responsible for their incompressibility. However, though, incompressibility and typicality represent significant achievements toward the logical analysis of randomness, they suffer in their applicability to real cases. In fact, incompressibility and typicality are not computable properties.
In 1872, Ludwig Boltzmann in the analysis of thermodynamic concepts inaugurated a probabilistic perspective that was the beginning of a new course, changing radically the way of considering physical systems. The following theory of quanta developed by Max Plank [12] can be considered in the same line of thought, and quantum theory as it was defined in the years 1925–1940 [13] and in more recent developments [14] confirms the crucial role of probabilistic and entropic concepts in the analysis of physical reality. According to quantum theory, what is essential in physical observations are the probabilities of obtaining some values when physical variables are measured, that is, physical measurements are random variables, or information sources with peculiar probability distributions, because measurements are random processes. This short mention of quantum mechanics is to stress the importance that randomness plays in physics and in the whole of science and, consequently, the relevance of randomness characterizations for the analysis of physical theories. In this paper, we will show that Shannon entropy, related to Boltzmann’s H function [15], is a key concept in the development of an new approach to the randomness of finite strings.

1.2. True Randomness

“True randomness” concerns the more intuitive notion of a random process as it emerges from nature or from games, such as coin tosses, urn extractions, dice, playing cards, and so on. In physics, many phenomena have been discovered, such as Brownian motions of colloidal particles or measurements in quantum systems, where physical parameters are generated without any apparent rule and with a lack of any pattern. The properties of these phenomena are considered random for their total unpredictability or for their chaotic behavior.
For example, let us consider a Bernoulli process [16] generated by extractions from an urn containing the same number of white and black balls that are completely indistinguishable in their physical properties, apart from the color, which has no relevance in the extractions from the urn (blind extractions). If we represent a sequence of extractions from the urn (by inserting again the extracted ball in the urn) by means of a 0/1 sequence where 1 stands for white (success) and 0 for black (failure), then we can say that the Boolean sequence generated in a Bernoulli process is a true random sequence. In fact, the unpredictability of this process is based on the assumption that at any extraction zero of one has the same probability of occurring. For analogous arguments, Brownian motions or quantum systems exploit mathematical models that exhibit analogous kinds of statistical homogeneity. The more appropriate term for both such kinds of randomness is “stochasticity” (from the Greek root with the original meaning of guess). A process where we can only guess events implies the lack of any underlying rule, and only ignorance or uncertainty about this rule, which we do not know because it is secret or because it is too complex to be managed in a reliable way. This is probably the original intuition about randomness.
In stochastic processes, we can define random variables (variables assuming values according to a probability distribution) that follow normal distributions or other distributions related to the normal one. For example, the probability of having k times one in a Bernoulli sequence of length n is given by a distribution that, for n very large, approximates to a normal distribution. Many actual randomness tests are based on an agreement with statistical distributions [17].

1.3. Pseudo-Randomness and Deterministic Chaos

A line of research, very important from the applicative point of view, is the theory of pseudo-random generators that is aimed at providing deterministic algorithms generating sequences appearing as true random sequences [17,18], with applications going from bank transaction protocols, to Monte Carlo algorithms, or to cryptography. In [17], a detailed and updated historical account of random number generators was given. Surprisingly, the most part of investigations about the mathematical characterization of randomness (incompressibility and typicality) are unrelated to the practical methods for producing or testing randomness.
In the second part of the 20th Century, within the theory of chaos, another important class of random processes of a deterministic nature was discovered, where, despite determinism, an intrinsic kind of chaos was inherent in their dynamics [19]. Deterministic algorithms were found generating sequences that were hardly distinguishable from true random processes. Today, many classes of deterministic chaotic algorithms are well known and applied in many different contexts. Chaotic dynamics easily transforms into random strings. In fact, numbers are generated according to some number representation; therefore, there are many ways of extracting strings from these dynamics.

1.4. Empirical Randomness

In conclusion, we have mathematical randomness (incompressibility, typicality, and more technical specializations of them), true or stochastic randomness, and pseudo-randomness. However, how can we judge, in a safe way, when a given string is random according to the considered definitions? In the line of research inaugurated in [20], there are now a great number of randomness tests [17,18,21,22,23]. Almost all of them are of statistical in nature and implicitly assume the probabilistic nature of true randomness. Therefore, a string is empirically random when it passes a given set of randomness tests. In this case, randomness can be assessed along a spectrum of possibilities related to the number of passed tests and on the specific measures of randomness assigned by each test. Of course, tests show a good level of credibility only if they judge random what the other criteria qualify accordingly.
In the discussion developed so far, we encountered many properties that seem to be related to the intuition of randomness (the etymology of “random” is the Latin root for an asymmetric object for hitting in a very irregular and uncontrolled way). Many other notions and subtle differences could be considered. One of them, individuated by a pioneer in the mathematical analysis of random sequences [17,24], is the periodicity/aperiodicity, or more generally, the repeatability/unrepeatability of proper parts. This aspect is the key point of the analysis that we will develop in the next sections. A sequence of m digits is k-distributed if any of the m k possible k-mers appears with the same frequency in the long run. We say it is -distributed if it is k-distributed for any k > 1 . Borel [24] called normal to base m a real number whose expansion in base m is -distributed. He proved that almost all real numbers (with respect to the uniform measure) are normal to any base. Normality implies that any possible substring occurs infinitely, but in an aperiodic way; therefore, normal numbers are irrational.
Many are the randomness tests that are based on repetitiveness phenomena [17]. However, in this paper, we show that certain precise relationships hold between the length of strings and the lengths of k-mers that present some specific properties of repeatability and unrepeatability. In this regard, the values log m n and 2 log m n play a critical role, which can be used for evaluating the randomness of strings of length n. Moreover, 2 log m n has a natural interpretation in terms of Shannon’s entropy based on the distributions of k-mers.
The search for efficient and reliable methods of string randomness evaluation is crucial in computational genomics. Namely, the “divergence” of biological strings from random strings of the same length has resulted in being a powerful method for discovering specific aspects selected by the evolutionary processes of life [25,26,27].

2. Informational Indexes of Strings

Given a string α over an alphabet A of m symbols, then we denote by D ( α ) the set of all substrings of α and by D k ( α ) the set of k-mers of α , that is, the strings of D ( α ) of length k. The function m u l t α ( β ) gives the number of occurrences of substring β in α . Two important classes of k-mers are repeats and hapaxes. The k-mer β is a repeat of α if m u l t α ( β ) > 1 , whereas β is a hapax of α if m u l t α ( β ) = 1 (the word hapax comes from the Greek root meaning once). In other words, hapaxes are unrepeatable substrings of α .
If β is a repeat of α , then every substring of β is a repeat of α as well. Analogously, if β is a hapax of α , then every string including β as a substring is a hapax of α as well.
In terms of repeats and hapaxes, we can define the following indexes that we call informational indexes because they are associated with a string viewed as the information source in the sense of Shannon’s information theory. These indexes are very useful in understanding the internal structure of strings.
The index:
m r l ( α ) = max k ( w D k ( α ) : m u l t α ( w ) > 1 )
(maximum repeat length) is the length of the longest repeats occurring in α , while:
m h l ( α ) = min k ( w D k ( α ) : m u l t α ( w ) = 1 )
(minimum hapax length) is the length of the shortest hapaxes occurring in α . Moreover,
m c l ( α ) = max k ( D k ( α ) = Γ k )
(maximum complete length) is the maximum length k such that all possible k-mers occur in α . A straightforward, but inefficient computation of such indexes can be performed in accordance with their mathematical formulation, but more sophisticated manners were implemented in [28] by exploiting suitable indexing data structures.
Indexes L G and 2 L G , called logarithmic length and double logarithmic length, are defined by the following equations, where | α | denotes the length of string α (m is the number of different symbols occurring in α ):
L G ( α ) = log m ( | α | )
2 L G ( α ) = 2 log m ( | α | ) .
When α is given by the context, we simply write: m c l , m h l , m r l , L G , 2 L G , instead of m c l ( α ) , m h l ( α ) , m r l ( α ) , L G ( α ) , 2 L G ( α ) , respectively. The following propositions follow immediately from the definitions above.
Proposition 1.
For k > m r l , all k-mer of α are hapaxes.
Proposition 2.
For k < m h l , all k-mer of α are repeats.
Proposition 3.
For any string α, m h l m c l .
Proposition 4.
For any string α of length n: D k ( α ) n k + 1 , and if D k ( α ) = n k + 1 , then all the elements of D k ( α ) are hapaxes of α.
Proposition 5.
In any string, the following inequality holds:
m c l L G .
The notation L G refers to the ceiling function, namely the smallest integer following the value L G .
By using m u l t , we can define probability distributions over D k ( α ) , by setting p ( β ) = m u l t α ( β ) / ( | α | k + 1 ) . The empirical k-entropy of the string α is given by Shannon’s entropy with respect to the distribution p of k-mers occurring in α (we use the logarithm in base m for uniformity with the following discussion):
E k ( α ) = w D k ( α ) p ( w ) log m p ( w ) .
It is well known [11] that entropy reaches its maximum for uniform probability distributions. Therefore, when all the k-mers of a string α of length n occur with the uniform probability 1 / ( n k + 1 ) , this means that the following proposition holds.
Proposition 6.
If all k-mers of α are hapaxes, then E k ( α ) reaches its maximum value in the set of probability distributions over D k ( α ) .

3. A “Positive” Notion of a Random String

It is not easy to tell when a string is a random string, but it is easy to decide when a given string is not a true random string. A “negative” approach to string randomness could be based on a number of conditions C 1 , C 2 , , each of which implies non-randomness. In this way, when a string does not satisfy any such conditions, we have a good guarantee of its randomness. In a sense, mathematical characterizations of randomness are “negative” definitions based on infinite sets of conditions. Therefore, even if these sets are recursively enumerable, randomness cannot be effectively stated.
Now, we formulate a principle that is a sort of Borel normality principle for finite strings. It expresses a general aspect of any reasonable definition of randomness. In informal terms, this principle says that any substring has the same probability of occurring in a random string, and for the substring under a given length, the knowledge of any prefix of a random string does not give any information about their occurrence in the remaining part of the string. In this sense, a random string is a global structure where no partial knowledge is informative about the whole structure.
Principle 1 (Random Log Normality Principle (RLNP)).
In any finite random string α, of length n over m symbols, for any value of k n , all possible k-mers have the same a priori probability 1 / m k of occurring at each position i, for 1 i n k + 1 . Moreover, let us define the a posteriori probability that a k-mer occurs at position i as the conditional probability of occurring when the prefix of α [ 1 , i 1 ] is given. Then, for any k < 2 L G , at each position i of α, for 1 i n k + 1 , the a posteriori probability of any k-mer occurrence has to remain the same as its a priori probability.
The reader may wonder about the choice of the 2 L G bound that appears in the RLNP principle stated above. It is motivated by Proposition 7, which is proven by using the first part of the RLNP principle.
In the following, a string is considered to be random if it satisfies the RLNP principle. Let us denote by R N D m , n the set of random strings of length n over m symbols and by R N D the union of R N D m , n for n , m N :
R N D = n , m N R N D m , n .
For individual strings, in general, RLNP can hold only admitting some degree of deviance from the theoretical pure case. This means that the randomness of an individual string cannot be assessed as a 0/1 property, but rather, in terms of some measure expressing the closeness to the ideal cases (for example, the percentage of positions where RLNP fails).
According to this perspective, RLNP may not exactly hold in the whole set R N D m , n . Nevertheless, the subset of R N D m , n on which RLNP fails has to approximate to the empty set, or better, to a set of zero measure, as n increases. In other words, random strings are “ideal” strings by means of which the degree of similarity to them can be considered as a “degree of membership” of individual strings to RND. This lack of precision is the price to pay for having a “positive” characterization of string randomness.
The following proposition states an inferior length bound for the hapaxes of a random string.
Proposition 7.
For any α R N D m , n , if:
k 2 L G
then all k-mers of α are hapaxes of α.
Proof. 
Let us consider a length k such that:
m k n k + 1 .
According to RLNP, the probability that a k-mer occurs in α R N D m , n is given by the following ratio (the number of available positions of k-mers is n k + 1 ) :
P r o b ( α D k ( α ) ) = ( n k + 1 ) m k
but, if all k-mers are hapaxes in α , then their probability of occurring in α is also given by:
P r o b ( α D k ( α ) ) = 1 ( n k + 1 )
Then, if we equate the right members of the two equations above (1) and (2), we obtain an equation that has to be satisfied by any length k, ensuring that all k-mers occurring in α are hapaxes in α :
( n k + 1 ) 2 = m k
which implies:
2 log m ( n k + 1 ) = k .
In order to evaluate the values of k, we solve the equation above by replacing k in the left member of Equation (4) by the whole left member of Equation (4):
2 log m ( n 2 log m ( n k + 1 ) + 1 ) = k
Now, Equation (5) implies that:
2 log m ( n 2 log m ( n ) ) k 2 log m ( n )
However, the difference between the two bounds of k is given by:
2 log m ( n ) 2 log m ( n 2 log m ( n ) ) = 2 log m n n 2 log m ( n ) = 2 log m ( 1 + 2 log m n n 2 log m n )
where the right member approximates to zero as n increases. In conclusion:
k 2 log m ( n ) .
This means that for:
k 2 log m ( n ) = 2 L G
all k-mers of α are hapaxes, that is, 2 L G is a lower bound for all unrepeatable substrings of α R N D m , n . □
The following proposition follows as a direct consequence of the previous proposition and Proposition 1.
Proposition 8.
If α R N D then:
m r l + 1 = 2 L G .
In conclusion, we have shown that in random strings, 2 L G is strictly related to the m r l index.
According to the proposition above, the index 2 L G has a clear entropic interpretation: it is the value of k such that the empirical entropy E k of a random string reaches its maximum value.
We have seen that in random strings, all substrings longer than 2 L G are unrepeatable, but what about the minimum length of unrepeatable substrings? The following proposition answers this question, by stating an upper bound for the length of repeats in random strings.
Proposition 9.
If α R N D , then:
m h l L G
Proof. 
Let us consider k = L G . If some of such k-mers is a hapax, the proposition is proven. Otherwise, if no k-mer is a hapax of α , then all k-mers of α are repeats. However, this fact is against the Random Log Normality Principle (RLNP). Namely, in all the positions i of α such that in α [ 1 , i ] , a k-mer β occurs once (these positions necessarily exist), the a posteriori probability that β has of occurring in a position i + 1 of α after is 1 / ( n k i ) , surely greater than 1 / m k (where n = | α | ). Hence, in positions after i, the a posteriori probability would be different from the a priori probability. In conclusion, if α R N D , some hapaxes of length L G have to occur in α ; thus, necessarily, m h l L G . □
Our analysis shows that in random strings, there are two bounds given by L G and 2 L G (Figure 1). Under the first one, we have only repeatable sub-strings, while over the second one, we have only unrepeatable sub-strings. The agreement with these conditions and the degrees of deviance from them give an indication about the randomness degree of a given string.
It is easy to provide examples of strings where these conditions are not satisfied, but what is interesting to remark is that the conditions hold with a very strict approximation for strings that pass the usual randomness statistical tests; moreover, for “long strings”, such as genomes, the bounds hold, but in a very sloppy way because usually m r l + 1 is considerably greater than 2 L G and m h l 1 is considerably smaller that L G .
In our findings reported in Section 5, the best randomness was found for strings of π decimal digits, for quantum measurements, and for strings obtained by pseudo-casual generators [29]. In the next sections, we discuss our experimental data about our randomness parameters.

4. Log Bounds Randomness Test

The Log Bounds Test (LBT), based on the analysis developed in the previous sections, essentially checks, for a given string, the logarithmic bounds for its prefixes and in the average (with the standard deviation). We apply LBT to a wide class of strings, in order to verify if it correctly guesses the randomness of strings traditionally judged random and, at the same time, if it does not give such evidence in the cases where it is not appropriate. The results confirm a discrimination capability with a complete accordance with our expectations.
For our analyses, we have taken into account different types of strings that are commonly considered as random strings, available in public archives accessed on June 2018.
A first category of random strings is extracted from a real number such as π and Euler’s constant e. In this case, the number is converted into a string over the alphabet of decimal digits, and a given number of digits of the number e are extracted. Digits were downloaded from https://www.angio.net/pi/digits/pi1000000.txt and https://apod.nasa.gov/htmltest/gifcity/e.2mil.
Quantum physics-generated data based on the non-determinism of photon arrival times provide up to 150 Mbits/s in the form of a series of bytes, available at http://qrng.physik.hu-berlin.de/.
Another category of random data is given by mathematical functions that provide chaotic dynamics, such as the logistic map with the parameter in [ 3.8 ,   4 ] .
Linear congruential generators of the form x n + 1 = c x n + b generate pseudo-random numbers [17,18] that we converted into strings of suitable alphabets of different sizes by applying discretization mechanisms.
Another category is given by random series related to roulette spins, cards, dice, and Bernoulli urns. In particular, we took into account three million consecutive roulette spins produced by the Spielbank Wiesbaden casino, at the website https://www.roulette30.com/2014/11/free-spins-download.html. As was already recognized by several authors, the randomness of roulette data is not true randomness, and this was also confirmed by our findings.
For comparisons, we used non-random data given by the complete works of Shakespeare available at http://norvig.com/ngrams/shakespeare.txt. These texts were transformed in order to extract from them only letters by discarding other symbols.
We used another comparison text given by the complete genome of the Sorangium cellulosum bacterium, downloaded from the RefSeq/NCBI database at https://www.ncbi.nlm.nih.gov/nuccore/NC_010162.1 (with a length of around 13 million nucleotides).

5. Analysis of the Experimental Results

When the informational indexes m h l and m r l + 1 result in coinciding with L G ± 1 and 2 L G ± 1 , respectively, we consider this coincidence as a positive symptom of randomness, and we will mark this fact by writing ✓ on the right of the compared values (or ✗ in the opposite case). The more these coincidences are found for prefixes of a string, the more the string passes our test (a more precise evaluation could consider not only the number of coincidence, but also how much the values differ, when they do not coincide). As the tables in the next section show, our findings agree, in a very significant way, with the usual randomness/non-randomness expectations. The tables are given for different categories of strings. Informational indexes were computed by a specific platform for long string analysis [28]. In Table 1, from 100,000 up to 30 million decimal expansions of π are considered. The agreement with our theory is almost complete, whence a very high level of randomness is confirmed, with only a very slight deviance.
Other tables are relative to decimal expansions of other real numbers: Table 2 for Euler’s constant, Table 3 for 2 , and Table 4 for Champernowne’s constant, a real transcendent number obtained by a non-periodic infinite sequence of decimal digits (the concatenated decimal representations of all natural numbers in their increasing order). It is interesting to observe that Euler’s constant and 2 have behaviors similar to π , whereas Champernowne’s constant has values indicating an inferior level of randomness.
Table 5 concerns strings coming from the pseudo-casual Java generator (a linear congruential generator). The randomness of these data, with respect to our indexes, is very good.
Table 6 is relative to strings generated via the logistic map. In these cases, randomness is not so clearly apparent, due to a sort of tendency to have patterns of a periodic nature, which agree with the already recognized behaviors due to the limits of computer number representations [30].
Table 7 provides our indexes for quantum data [29], by showing a perfect agreement with a random profile.
Table 8 is relative to three millions of roulette spins, with an almost complete failure of the 2LG-check (even if with a quite limited gap).
Finally, Table 9 and Table 10 are relative to a DNA bacterial genome and to texts of natural language (Shakespeare’s works), respectively. In these cases, as expected, our indexes of randomness reveal low levels of randomness.

6. Conclusions

In this paper, we presented an approach to randomness that extends previous results on informational genomics (information theory applied to the analyses of genomes [27]), where the analysis of random genomes was used for defining genome evolutionary complexity [26], and a method for choosing the appropriate k-mer length for discovering sequence similarity in the context of homology relationship between genomes [25]. A general analysis of randomness has emerged that suggests a line of investigation where a theoretical approach is coupled with a practical and experimental viewpoint, as required by the application of randomness to particular situations of interest. Randomness has an intrinsic paradoxical, and at the same time vague, nature. In fact, mathematically-rigorous definitions of randomness are intrinsically uncomputable, and algorithmically-testable properties are not exhaustive.
We introduced the random log normality principle, which resembles Borel’s normality [17], but it is formulated, for finite strings, in terms of a priori and a posteriori probabilities. This principle allows us to define two logarithmic bounds that state precise links between the length of strings and the lengths to which specific phenomena of substring repetitiveness must or cannot hold.
A possible continuation of our investigation could be addressed to extend similar principles and tests for finite structures, such as trees or graphs. In fact, in many applications, it would be very useful to have reliable and simple tests for finite mathematical structures commonly used in data representations.

Author Contributions

Conceptualization, V.M.; methodology, V.B and V.M.; software, V.B.; validation, V.B. and V.M.; formal analysis, V.M.; investigation, V.B. and V.M.; resources, V.B.; data curation, V.B.; writing, original draft preparation, V.M.; writing, review and editing, V.M.; visualization, V.B.; supervision, V.M.; project administration, V.M.; funding acquisition, V.M.

Funding

This research received no external funding.

Acknowledgments

The authors thank the people of the Center for BioMedical Computing of the University of Verona for the stimulating discussions concerning the topic of the paper.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Church, A. On the concept of a random sequence. Bull. Am. Math. Soc. 1940, 46, 130–135. [Google Scholar] [CrossRef]
  2. Von Mises, R. Grundlagen der Wahrscheinlichkeitsrechnung. Math. Z. 1919, 5, 52–99. [Google Scholar] [CrossRef]
  3. Chaitin, G.J. On the length of programs for computing finite binary sequences: Statistical considerations. J. Assoc. Comput. Mach. 1969, 16, 145–159. [Google Scholar] [CrossRef]
  4. Downey, R.G.; Hirschfeldt, D.R. Algorithmic Randomness and Complexity; Springer: Berlin, Germany, 2010. [Google Scholar]
  5. Kolmogorov, A.N. Three approaches to the quantitative definition of information. Probl. Inf. Transm. 1965, 1, 1–7. [Google Scholar] [CrossRef]
  6. Li, M.; Vitany, P. An Introduction to Kolmogorov Complexity and Its Applications; Springer: Berlin, Germany, 1997. [Google Scholar]
  7. Nies, A. Computability and Randomness; Oxford University Press: Oxford, UK, 2009. [Google Scholar]
  8. Schnorr, C.P. A unified approach to the definition of random sequences. Math. Syst. Theory 1971, 5, 246. [Google Scholar] [CrossRef]
  9. Solomonoff, R.J. A formal theory of inductive inference, I. Inf. Control 1964, 7, 1–22. [Google Scholar] [CrossRef]
  10. Martin-Löf, P. The definition of random sequences. Inf. Control 1966, 9, 602–619. [Google Scholar] [CrossRef]
  11. Shannon, C.E. A Mathematical Theory of Communication. Bell Syst. Tech. J. 1948, 27, 623–656. [Google Scholar] [CrossRef]
  12. Sharp, K.; Matschinsky, F. Translation of Ludwig Boltzmann’s Paper “On the Relationship between the Second Fundamental Theorem of the Mechanical Theory of Heat and Probability Calculations Regarding the Conditions for Thermal Equilibrium”. Entropy 2015, 17, 1971–2009. [Google Scholar] [CrossRef]
  13. Purrington, R.D. The Heroic Age. The Creation of Quantum Mechanics 1925–1940; Oxford University Press: Oxford, UK, 2018. [Google Scholar]
  14. Bell, J.S. Speakable and Unspeakable in Quantum Mechanics: Collected Papers on Quantum Philosophy; Cambridge University Press: Cambridge, UK, 2004. [Google Scholar]
  15. Manca, V. An informational proof of H-Theorem. Open Access Libr. J. 2017, 4, e3396. [Google Scholar] [CrossRef]
  16. Feller, W. Introduction to Probability Theory and Its Applications; John Wiley & Sons Inc.: Hoboken, NJ, USA, 1968. [Google Scholar]
  17. L’Ecuyer, P. History of Uniform Random Number Generation. In Proceedings of the 2017 Winter Simulation Conference, Las Vegas, NV, USA, 3–6 December 2017; pp. 202–230. [Google Scholar]
  18. L’Ecuyer, P. Random Number Generation with Multiple Streams for Sequential and Parallel Computers. In Proceedings of the 2015 Winter Simulation Conference, Huntington Beach, CA, USA, 6–9 December 2015; IEEE Press: Piscataway, NJ, USA, 2015; pp. 31–44. [Google Scholar]
  19. May, R.M. Simple mathematical models with very complicated dynamics. Nature 1976, 261, 459–467. [Google Scholar] [CrossRef] [PubMed]
  20. Knuth, D.E. Semi-numerical Algorithms. In The Art of Computer Programming; Addison-Wesley: Boston, MA, USA, 1981; Volume 2. [Google Scholar]
  21. Marsaglia, G. DIEHARD: A Battery of Tests of Randomness. 1996. Available online: http://stat.fsu.edu/~geo/diehard.html (accessed on 6 June 2018).
  22. National Institute of Standards and Technologies (NIST). A Statistical Test Suite for Random and Pseudorandom Number Generators for Cryptographic Applications; NIST: Gaithersburg, MD, USA, 2010; pp. 899–930. [Google Scholar]
  23. Soto, J. Statistical Testing of Random Number Generators. 1999. Available online: http://csrc.nist.gov/rng/ (accessed on 6 June 2018). [Google Scholar]
  24. Borel, E. Les probabilities denomerable et leurs applications arithmetiques. Rend. Circ. Mat. Palermo 1909, 27, 247–271. [Google Scholar] [CrossRef]
  25. Bonnici, V.; Giugno, R.; Manca, V. PanDelos: A dictionary-based method for pan-genome content discovery. BMC Bioinform. 2018, 19, 437. [Google Scholar] [CrossRef]
  26. Bonnici, V.; Manca, V. Informational Laws of genome structures. Sci. Rep. 2016, 6, 28840. [Google Scholar] [CrossRef] [PubMed]
  27. Manca, V. The Principles of Informational Genomics. Theor. Comput. Sci. 2017, 701, 190–202. [Google Scholar] [CrossRef]
  28. Bonnici, V.; Manca, V. Infogenomics tools: A computational suite for informational analysis of genomes. J. Bioinform. Proteom. Rev. 2015, 1, 8–14. [Google Scholar]
  29. Li, P.; Yi, X.; Liu, X.; Wang, Y.; Wang, Y. Brownian motion properties of optoelectronic random bit generators based on laser chaos. Opt. Express 2016, 24, 15822–15833. [Google Scholar] [CrossRef] [PubMed]
  30. Persohn, K.J.; Povinelli, R.J. Analyzing logistic map pseudorandom number generators for periodicity induced by finite precision floating-point representation. Chaos Solitons Fractals 2012, 45, 238–245. [Google Scholar] [CrossRef]
Figure 1. The logarithmic bounds of randomness.
Figure 1. The logarithmic bounds of randomness.
Entropy 20 00934 g001
Table 1. Decimal digits of π .
Table 1. Decimal digits of π .
n mhl LG Check mrl + 1 2 LG Check
100,000451010
1,000,000561312
2,000,000671314
5,000,000671314
10,000,000671514
20,000,000781516
50,000,000781616
Table 2. Decimal digits of Euler’s constant e.
Table 2. Decimal digits of Euler’s constant e.
n mhl LG Check mrl + 1 2 LG Check
100,000451010
200,000561212
500,000561212
1,000,000561312
1,200,000571314
1,500,000671314
2,000,000671314
Table 3. Decimal digits of 2 .
Table 3. Decimal digits of 2 .
n mhl LG Check mrl + 1 2 LG Check
10,0004488
20,00045810
50,000451010
100,000451110
200,000561112
500,000561112
1,000,000561212
Table 4. Decimal digits of Champernowne’s constant.
Table 4. Decimal digits of Champernowne’s constant.
n mhl LG Check mrl + 1 2 LG Check
101223
1002234
10003366
10,0004498
100,000551210
1,000,000561512
10,000,000671814
Table 5. Pseudo-random decimal numbers generated by the Java linear congruential generator.
Table 5. Pseudo-random decimal numbers generated by the Java linear congruential generator.
n mhl LG Check mrl + 1 2 LG Check
1002244
10003366
10,0004488
100,000451010
1,000,000561212
10,000,000671414
Table 6. Strings generated by logistic maps with seed 0 . 1 and parameter r = 4 . Generated numbers are normalized in the interval ( 0 , 1 ) and thus discretized into 10 and 1000 digits.
Table 6. Strings generated by logistic maps with seed 0 . 1 and parameter r = 4 . Generated numbers are normalized in the interval ( 0 , 1 ) and thus discretized into 10 and 1000 digits.
n mhl LG Check mrl + 1 2 LG Check
Alphabet size 10
101224
501274
10012104
20023116
50023146
100023176
10,00024218
100,000253210
1,000,000263512
5,000,000273914
10,000,000274214
52,000,000286116
Alphabet size 1000
101224
501234
1001234
2001254
5001284
10001284
10,00012184
100,00022254
1,000,00022284
5,000,00023346
10,000,00023386
52,000,00023526
Table 7. Raw quantum data (alphabet size 256).
Table 7. Raw quantum data (alphabet size 256).
n mhl LG Check mrl + 1 2 LG Check
100,0002356
500,0002366
1,000,0003366
5,000,0003366
10,000,0003376
50,000,0003478
Table 8. Roulette spins (alphabet size 37).
Table 8. Roulette spins (alphabet size 37).
n mhl LG Check mrl + 1 2 LG Check
100,0003478
200,00034318
500,00034318
1,000,000443158
1,500,000443158
2,000,0004531510
2,500,0004531510
3,000,0004531510
Table 9. Sorangium cellulosum’s genome (alphabet size 4).
Table 9. Sorangium cellulosum’s genome (alphabet size 4).
n mhl LG Check mrl + 1 2 LG Check
1002487
1000351410
10,000471714
100,0005911617
1,000,00061038120
10,000,0007122,72124
13,033,7707122,72124
Table 10. Shakespeare’s collection (alphabet size 26).
Table 10. Shakespeare’s collection (alphabet size 26).
n mhl LG Check mrl + 1 2 LG Check
10,00013256
100,00024428
200,000241178
500,0002528710
1,000,0002528710
1,500,0002528710
2,000,0002528710
2,500,0002528710
3,000,0002528610
3,301,7402528610

© 2018 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
Entropy EISSN 1099-4300 Published by MDPI AG, Basel, Switzerland RSS E-Mail Table of Contents Alert
Back to Top