stat.MLMar 4, 2026

Bayesian Modeling of Collatz Stopping Times: A Probabilistic Machine Learning Perspective

Authors: Nicolò Bonacorsi, Matteo Bordoni

Organizations: Department of Applied Mathematics, Columbia University, New York, USA. · Department of Mathematics, Columbia University, New York, USA.

Abstract

We study the Collatz total stopping time τ(n)τ(n) over n≤107n\le 10^7 from a probabilistic machine learning viewpoint. Empirically, τ(n)τ(n) is a skewed and heavily overdispersed count with pronounced arithmetic heterogeneity. We develop two complementary models. First, a Bayesian hierarchical Negative Binomial regression (NB2-GLM) predicts τ(n)τ(n) from simple covariates (log⁡n\log n and residue class n mod 8n \bmod 8), quantifying uncertainty via posterior and posterior predictive distributions. Second, we propose a mechanistic generative approximation based on the odd-block decomposition: for odd mm, write 3m+1=2K(m)m′3m+1=2^{K(m)}m' with m′m' odd and K(m)=v2(3m+1)≥1K(m)=v_2(3m+1)\ge 1; randomizing these block lengths yields a stochastic approximation calibrated via a Dirichlet-multinomial update. On held-out data, the NB2-GLM achieves substantially higher predictive likelihood than the odd-block generators. Conditioning the block-length distribution on m mod 8m\bmod 8 markedly improves the generator's distributional fit, indicating that low-order modular structure is a key driver of heterogeneity in τ(n)τ(n).

Figures & tables

Appendix figures & tables1 asset

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Exploring Collatz Dynamics with Human-LLM Collaboration

    Mar 10, 2026Edward Y. ChangDynamical Systems

  2. Generative Modeling of Stochastic Dynamics for Long-Time Evolution

    Sep 30, 2026Yang-yang Tan, Jinyang Li, Lingxiao WangDynamical SystemsGenerative Modeling