A Recursive Formula for the Height of a Random Walk


UĞUZ M.

IEEE Access, 2026 (SCI-Expanded, Scopus) identifier

  • Yayın Türü: Makale / Tam Makale
  • Basım Tarihi: 2026
  • Doi Numarası: 10.1109/access.2026.3653135
  • Dergi Adı: IEEE Access
  • Derginin Tarandığı İndeksler: Science Citation Index Expanded (SCI-EXPANDED), Scopus, Compendex, INSPEC, Directory of Open Access Journals
  • Anahtar Kelimeler: Expected value, graph of a binary sequence, height of a random walk, random walk, variance
  • Orta Doğu Teknik Üniversitesi Adresli: Evet

Özet

The height of a binary sequence serves as a metric that captures the randomness of a sequence. In this work, the height of a finite binary sequence, which was a missing random variable in the recent work published at SETA 2024, is defined, and an explicit formula is derived for the probability values of a sequence of length n, to have a height equal to t, in terms of binomial coefficients. While this formula yields useful insights, computing exact values of binomial coefficients and those probability values becomes infeasible as n gets larger. A method to overcome this problem is to use asymptotic approaches, which cause some errors when used in randomness tests. In this work, a recursive formula is derived for the same probability values, and the exact probability values for sequences of length up to at least 4096 is obtained. Using these exact values in a random walk randomness test, one can obtain more accurate results. In addition, formulas for the expected value and variance of the random variable that assigns the number of balanced points in a binary sequence of length n were derived, which had not been addressed in the previous work published at SETA 2024. A new randomness test is proposed based on random walk height.