encyclopegia.org

Algorithmically random sequence

Intuitively, an algorithmically random sequence (or random sequence) is a sequence of binary digits that appears random to any algorithm running on a (prefix-free or not) universal Turing machine. The notion can be applied analogously to sequences on any finite alphabet (e.g. decimal digits). Random sequences are key objects of study in algorithmic information theory. In measure-theoretic probability theory, introduced by Andrey Kolmogorov in 1933, there is no such thing as a random sequence. For example, consider flipping a fair coin infinitely many times. Any particular sequence, be it 0000\dots or 011010\dots , has equal probability of exactly zero. There is no way to state that one sequence is "more random" than another sequence, using the language of measure-theoretic probability. However, it is intuitively obvious that 011010\dots looks more random than 0000\dots . Algorithmic randomness theory formalizes this intuition. As different types of algorithms are sometimes considered, ranging from algorithms with specific bounds on their running time to algorithms which may ask questions of an oracle machine, there are different notions of randomness. The most common of these is known as Martin-Löf randomness (K-randomness or 1-randomness), but stronger and weaker forms of randomness also exist.…

Intuitively, an algorithmically random sequence (or random sequence) is a sequence of binary digits that appears random to any algorithm running on a (prefix-free or not) universal Turing machine. The notion can be applied analogously to sequences on any finite alphabet (e.g. decimal digits). Random sequences are key objects of study in algorithmic information theory. In measure-theoretic probability theory, introduced by Andrey Kolmogorov in 1933, there is no such thing as a random sequence. For example, consider flipping a fair coin infinitely many times. Any particular sequence, be it 0000\dots or 011010\dots , has equal probability of exactly zero. There is no way to state that one sequence is "more random" than another sequence, using the language of measure-theoretic probability. However, it is intuitively obvious that 011010\dots looks more random than 0000\dots . Algorithmic randomness theory formalizes this intuition. As different types of algorithms are sometimes considered, ranging from algorithms with specific bounds on their running time to algorithms which may ask questions of an oracle machine, there are different notions of randomness. The most common of these is known as Martin-Löf randomness (K-randomness or 1-randomness), but stronger and weaker forms of randomness also exist. When the term "algorithmically random" is used to refer to a particular single (finite or infinite) sequence without clarification, it is usually taken to mean "incompressible" or, in the case the sequence is infinite and prefix algorithmically random (i.e., K-incompressible), "Martin-Löf–Chaitin random". Since its inception, Martin-Löf randomness has been shown to admit many equivalent characterizations—in terms of compression, randomness tests, and gambling—that bear little outward resemblance to the original definition, but each of which satisfies our intuitive notion of properties that random sequences ought to have: random sequences should be incompressible, they should pass statistical tests for randomness, and it should be difficult to make money betting on them. The existence of these multiple definitions of Martin-Löf randomness, and the stability of these definitions under different models of computation, give evidence that Martin-Löf randomness is natural and not an accident of Martin-Löf's particular model. It is important to disambiguate between algorithmic randomness and stochastic randomness. Unlike algorithmic randomness, which is defined for computable (and thus deterministic) processes, stochastic randomness is usually said to be a property of a sequence that is a priori known to be generated by (or is the outcome of) an independent identically distributed equiprobable stochastic process. Because infinite sequences of binary digits can be identified with real numbers in the unit interval, random binary sequences are often called (algorithmically) random real numbers. Additionally, infinite binary sequences correspond to characteristic functions of sets of natural numbers; therefore those sequences might be seen as sets of natural numbers. The class of all Martin-Löf random (binary) sequences is denoted by RAND or MLR. There exists a limit \lim_n \frac 1n \sum_{i=1}^n x_i = p \in (0, 1) . For any "admissible" rule, such that it picks out an infinite subsequence (x_{m_i})_i from the string, we still have \lim_n \frac 1n \sum_{i=1}^n x_{m_i} = p . He called this principle "impossibility of a gambling system". To pick out a subsequence, first pick a binary function \phi , such that given any binary string x_{1:k} , it outputs either 0 or 1. If it outputs 1, then we add x_{k+1} to the subsequence, else we continue. In this definition, some admissible rules might abstain forever on some sequences, and thus fail to pick out an infinite subsequence. We only consider those that do pick an infinite subsequence. Stated in another way, each infinite binary string is a coin-flip game, and an admissible rule is a way for a gambler to decide when to place bets. A collective is a coin-flip game where there is no way for one gambler to do better than another over the long run. That is, there is no gambling system that works for the game. The definition generalizes from binary alphabet to countable alphabet: The frequency of each letter converges to a limit greater than zero. For any "admissible" rule, such that it picks out an infinite subsequence (x_{m_i})_i from the string, the frequency of each letter in the subsequence still converges to the same limit. Usually the admissible rules are defined to be rules computable by a Turing machine, and we require p=1/2 . With this, we have the Mises–Wald–Church random sequences. This is not a restriction, since given a sequence with p=1/2 , we can construct random sequences with any other computable p \in (0, 1) . (Here, "Church" refers to Alonzo Church, whose 1940 paper proposed using Turing-computable rules. ) However, this definition was found not to be strong enough. Intuitively, the long-time average of a random sequence should oscillate on both sides of p , like how a random walk should cross the origin infinitely many times. However, Jean Ville showed that, even with countably many rules, there exists a binary sequence that tends towards p fraction of ones, but, for every finite prefix, the fraction of ones is less than p . The Ville construction suggests that the Mises–Wald–Church sense of randomness is not good enough, because some random sequences do not satisfy some laws of randomness. For example, the Ville construction does not satisfy one of the laws of the iterated logarithm: \limsup_{n \to \infty} \frac{-\sum_{k=1}^n (x_k - 1/2)}{\sqrt{2n \log\log n}} \neq 1 Naively, one can fix this by requiring a sequence to satisfy all possible laws of randomness, where a "law of randomness" is a property that is satisfied by all sequences with probability 1. However, for each infinite sequence y_{1:\infty} \in 2^\N , we have a law of randomness that x_{1:\infty} \neq y_{1:\infty} , leading to the conclusion that there are no random sequences. (Per Martin-Löf, 1966) defined "Martin-Löf randomness" by only allowing laws of randomness that are Turing-computable. In other words, a sequence is random iff it passes all Turing-computable tests of randomness. The thesis that the definition of Martin-Löf randomness "correctly" captures the intuitive notion of randomness has been called the Martin-Löf–Chaitin Thesis; it is somewhat similar to the Church–Turing thesis. Constructive martingales (Schnorr 1971): A martingale is a function d:\{0,1\}^*\to[0,\infty) such that, for all finite strings w, d(w) = (d(w^\smallfrown 0) + d(w^\smallfrown 1))/2 , where a^\smallfrown b is the concatenation of the strings a and b. This is called the "fairness condition": if a martingale is viewed as a betting strategy, then the above condition requires that the bettor plays against fair odds. A martingale d is said to succeed on a sequence S if \limsup_{n\to\infty} d(S \upharpoonright n) = \infty, where S \upharpoonright n is the first n bits of S. A martingale d is constructive (also known as weakly computable, lower semi-computable) if there exists a computable function \widehat{d}:\{0,1\}^*\times\N\to{\mathbb{Q}} such that, for all finite binary strings w \widehat{d}(w,t) \leq \widehat{d}(w,t+1) for all positive integers t, \lim_{t\to\infty} \widehat{d}(w,t) = d(w). A sequence is Martin-Löf random if and only if no constructive martingale succeeds on it. ==Properties and examples of Martin-Löf random sequences== By Stirling approximation, \log_2 \binom{N}{pN} \approx N H(p) where H is the binary entropy function. Thus, the number of bits in this description is 2(1 + \epsilon) \log_2 N + (1 + \epsilon) N H(p) + O(1) The first term is for prefix-coding the numbers N and M . The second term is for prefix-coding the number i . (Use Elias omega coding.) The third term is for prefix-coding the rest of the description. When N is large, this description has just \sim H(p) N bits, and so it is compressible, with compression ratio \sim H(p) . In particular, the compression ratio is exactly one (incompressible) only when p = 1/2 . (Example 14.2.8 ) ==See also== Random sequence Gregory Chaitin Stochastics Monte Carlo method K-trivial set Universality probability Statistical randomness ==References== ==Further reading==

References

No reference rows published for this article.

Cite this article

MLA

"Algorithmically random sequence." encyclopegia.org, 2026, https://encyclopegia.org/wiki/algorithmically-random-sequence. Accessed 23 November 2026.

Chicago

"Algorithmically random sequence." encyclopegia.org. Accessed November 23, 2026. https://encyclopegia.org/wiki/algorithmically-random-sequence.

APA

encyclopegia.org. (2026). Algorithmically random sequence. Retrieved November 23, 2026, from https://encyclopegia.org/wiki/algorithmically-random-sequence

Accessed November 23, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Whitley Bay Ice Rink

enwiki · references available

Mesnali

enwiki · references available

Kylstad

enwiki · references available

Kvål, Innlandet

enwiki · references available

Heimdal, Innlandet

enwiki · references available

Tangen

enwiki · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1376836824 · 0.5 · snapshot enwiki-001376836824

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.