Skip to content
DraconiticResearch
Search Sources API
178,033 studies31 sourcesUpdated 27 min ago
PreprintCC BY 4.0arXiv

bacontrees: An extensible framework for Bayesian Context Trees in R

Abstract

Context tree models, or variable-length Markov chains, describe symbolic sequences whose dependence structure varies with context length. Bayesian formulations of these models enable uncertainty quantification and regularization through priors on tree structures and transition probabilities. Despite their theoretical appeal, practical implementations have been fragmented and model-specific. The bacontrees package for R provides a unified framework for Bayesian Context Trees by defining core data structures and a consistent interface for building, modifying and manipulating trees. Rather than implementing a single inference method, bacontrees offers the computational foundation upon which diverse Bayesian and frequentist algorithms can be developed. This separation of representation and inference promotes reproducibility and facilitates experimentation with new modeling strategies. The package aims to support applications in information theory, linguistics, and other domains where context-based probabilistic modeling is central.

Related

  1. Dirichlet Process Mixtures of Trees with Gaussian Process Splits: A Bayesian Nonparametric Framework with Posterior Contraction Rate
    Subhasish Basak, Anik Roy, Sourabh Bhattacharya
    arXivPreprintarXiv licenceFull textStatisticsarXiv
  2. RoBART: Bayesian Additive Regression Trees with Tree-Specific Rotations
    Jeongung Heo, Seonghyun Jeong
    arXivPreprintarXiv licenceFull textStatisticsarXiv
  3. Learning the Maximum Tolerated Dose for Continuous Toxicity via Monotone Bayesian Trees
    Se Yoon Lee
    arXivPreprintCC BY 4.0Full textStatisticsarXiv
  4. Bayesian additive regression trees for evaluating treatment benefit predictors using observational data
    Yuan Xia, Mohsen Sadatsafavi, Jeenat Mehareen +1
    arXivPreprintarXiv licenceFull textStatisticsarXiv
  5. Bayesian Matrix-Valued Graphs for Context-Dependent Multivariate Relationships
    Papri Dey
    arXivPreprintarXiv licenceFull textStatisticsarXiv
BibTeX
@misc{freguglia2026bacontrees,
  title = {{bacontrees: An extensible framework for Bayesian Context Trees in R}},
  author = {Victor Freguglia and Thiago Paulichen},
  howpublished = {arXiv},
  year = {2026},
  month = nov,
  doi = {10.48550/arxiv.2611.03408},
  eprint = {2611.03408},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.03408},
  note = {CC BY 4.0},
}
RIS
TY  - UNPB
TI  - bacontrees: An extensible framework for Bayesian Context Trees in R
AU  - Victor Freguglia
AU  - Thiago Paulichen
PY  - 2026
DA  - 2026/11/02
PB  - arXiv
DO  - 10.48550/arxiv.2611.03408
UR  - https://arxiv.org/abs/2611.03408
AB  - Context tree models, or variable-length Markov chains, describe symbolic sequences whose dependence structure varies with context length. Bayesian formulations of these models enable uncertainty quantification and regularization through priors on tree structures and transition probabilities. Despite their theoretical appeal, practical implementations have been fragmented and model-specific. The bacontrees package for R provides a unified framework for Bayesian Context Trees by defining core data structures and a consistent interface for building, modifying and manipulating trees. Rather than implementing a single inference method, bacontrees offers the computational foundation upon which diverse Bayesian and frequentist algorithms can be developed. This separation of representation and inference promotes reproducibility and facilitates experimentation with new modeling strategies. The package aims to support applications in information theory, linguistics, and other domains where context-based probabilistic modeling is central.
ER  -