Skip to content
m·amathatlas
ExploreAboutOpen problemsCited authorsMy libraryFeedback
Sign in
FRENES
Loading views…Recent views only, across all languages. Vercel history is unavailable for this page. Repeat visits in the same tab are grouped for 30 minutes.
ShareLinkedInXFacebookWhatsApp
← All open problems
Unanswered question

Measuring the randomness of texts

CombinatoricsProbability & statistical mechanicsTheoretical computer science

Imported on November 28, 2026

The forum classified this question as unanswered when collected. This does not certify an open research problem; check the answers and revision history at the source.

Read the question with its definitions and background below. The source provides the full formulation and further discussion; the glossary and Wikipedia links offer additional reading aids.

Problem statement

The question concerns statistic properties of random words in a finite alphabet AAA.

By A<ωA^{<\omega}A<ω we denote the set of all words in the alphabet AAA, i.e. finite sequences of elements of AAA.

Let www be a word in the alphabet AAA. A nonempty word u∈A<ωu\in A^{<\omega}u∈A<ω is called www-fixed if www contains a unique subword, equal to uuu.

The dictionary of the word www is defined as the set D(w)D(w)D(w) of all minimal www-fixed subwords of www.

The fraction ρ(w)=∣D(w)∣∣w∣\rho(w)=\frac{|D(w)|}{|w|}ρ(w)=∣w∣∣D(w)∣​will be called the randomness of the text www. Here ∣D(w)∣|D(w)|∣D(w)∣ and ∣w∣|w|∣w∣ is the cardinality of the set D(w)D(w)D(w) and the length of the word www, respectively.

For example, for the word "Mathoverflow" its dictionary is the set {\{{'M', 'A', 'T', 'H', 'V', 'E', 'R', 'F', 'L', 'W'}\}} and the randomness is equal to 1012≈0.833...\frac{10}{12}\approx 0.833...1210​≈0.833...

On the other hand, for the word "Stackexchange" the distionary is the set {\{{'S', 'T', 'K', 'X', 'H', 'N', 'G', 'AC'}\}} and its randomness is equal to 813≈0.615...\frac{8}{13}\approx 0.615...138​≈0.615...

The computer calculations show that the randomness of the text about Mathoverflow in Wikipedia has length 2570 and randomness equal to 10872570=0.423...\frac{1087}{2570}=0.423...25701087​=0.423...

The text about Conan Doyl from Wikipedia has randomness 1012025710≈0.394...\frac{10120}{25710}\approx 0.394...2571010120​≈0.394...

and the text about Communism in Wikipedia has randomness 1195240230≈0.297...\frac{11952}{40230}\approx 0.297...4023011952​≈0.297...

Three randomly generated texts of the same length as the mentioned meaningfull texts from Wikipedia have randomness 22202570=0.864...\frac{2220}{2570}=0.864...25702220​=0.864..., 1986625710=0.773...,\frac{19866}{25710}=0.773...,2571019866​=0.773..., and 3355240230=0.834...\frac{33552}{40230}=0.834...4023033552​=0.834..., respectively (if my program counts well).

So, we see that real meaningfull texts have smaller randomness (which decreases with growth of the length of the text) comparing to the randomness of random texts.

Problem 1. What is an expected value ρn(∣A∣)\rho_n(|A|)ρn​(∣A∣) of the randomness ρ(w)\rho(w)ρ(w) of a random word of a fixed length nnn in the alphabet AAA? What is the value of the limit ρ∞(∣A∣)=lim⁡n→∞ρn(∣A∣)\rho_\infty(|A|)=\lim_{n\to\infty}\rho_n(|A|)ρ∞​(∣A∣)=limn→∞​ρn​(∣A∣)? (I hope that this limit does exist and depend on ∣A∣|A|∣A∣).

Problem 2. Is the above randomness of texts related to other randomness measures like entropy?

Remark. Taking into account that any two minimal www-fixed words with the same starting letter coincide, we can conclude that ∣D(w)∣≤∣w∣|D(w)|\le|w|∣D(w)∣≤∣w∣ and hence ρn(∣A∣)≤1\rho_n(|A|)\le 1ρn​(∣A∣)≤1 for any alphabet AAA and any nnn. Consequently, ρ∞(∣A∣)≤1\rho_\infty(|A|)\le 1ρ∞​(∣A∣)≤1 (if this limit exists).

Statement and context adapted from MathOverflow · Taras Banakh

CC BY-SA 4.0 · Formatting adapted; mathematical formulas preserved · Source history

A few useful definitions

Cardinal and countability
A cardinal measures the size of a set. A countably infinite set can be listed using the positive integers; an uncountable set is larger. The symbols ℵ₀, ℵ₁, … distinguish infinite sizes.

Topics : co.combinatorics · pr.probability · it.information-theory · combinatorics-on-words · computational-linguistics

Authors listed by the source : Taras Banakh

Sources and original status

  • MathOverflow Status in source : unanswered at collection

Last activity on the question : October 4, 2020

Coverage, sources and method

This count measures imported entries, including distinct variants. It is not a count of all open mathematical questions worldwide. One entry may belong to several fields and sources.

This directory is neither exhaustive nor updated in real time. “Reported open” describes the source classification observed at import; imported entries have not each undergone independent mathematical verification. The 32 explained entries were reviewed separately.

Formal Conjectures: only “research open” statements with no reported formal proof are retained; their tag is checked in a pinned repository revision. Variants remain distinct. A “sorry” placeholder is not sufficient to establish open status.

Erdős: solved or independent problems and entries with a Lean solution are excluded, including “open (Lean)”. Exact matches to the main Formal Conjectures statements are merged.

Open Problem Garden: the open index is checked against the solved index; spam, identified clones and some outdated statuses are excluded. Statements and definition context are attributed to their original pages; formulas are preserved and the content remains under the GFDL. Recognized duplicates across sources are merged; this does not resolve every mathematical equivalence.

OEIS: direct extraction of conjectural comments and formulas, one entry per sequence, excluding mentioned resolutions. MathOverflow and Math Stack Exchange: questions classified as unanswered by their API, excluding closed posts and non-research categories. They remain distinct from problems reported open. This is a partial, dated collection; every entry credits its authors and license.

Documented exclusions account for recent announcements and conflicting statuses. A stronger variant or a special case can remain open after a different statement is settled.

Attribution: The Formal Conjectures Authors; teorth/erdosproblems and contributors; Open Problem Garden and contributors. Each source retains its license.

  • Formal Conjectures · 1,924 · Apache-2.0 / CC-BY-4.0
  • Erdős Problems (teorth) · 622 · Apache-2.0
  • Open Problem Garden · 404 · GFDL (source content); only title/category/link metadata imported
  • OEIS · 18,857 · CC BY-SA 4.0
  • MathOverflow · 19,035 · CC BY-SA (version on each entry)
  • Mathematics Stack Exchange · 35 · CC BY-SA (version on each entry)
Report a development or correction
mathatlas

An independent atlas to understand, read, and question research.

The papers present claimed results at different stages of verification.
NewsletterShare feedbackAbout Data and privacy
Created by Sonny Mupfuni