bacontrees
Bayesian Context Trees for Discrete Sequence Data
Models discrete sequential data using Bayesian Context Trees. Context trees, also known as Variable Length Markov Chains (VLMCs), are parsimonious Markov models where the order of dependence can vary with the observed past. Provides a generic 'R6' class structure that exposes the full tree for building custom algorithms, exact Bayesian inference via a bottom-up recursive algorithm (closed-form marginal likelihood, Maximum A Posteriori (MAP) tree, exact posterior probabilities, and exact sampling from the posterior), a frequentist estimator via the context algorithm with likelihood-ratio pruning, simulation utilities, and a Metropolis-Hastings sampler. See Paulichen and Freguglia (2026) <doi:10.48550/arXiv.2603.25806>.
Versions across snapshots
| Version | Repository | File | Size |
|---|---|---|---|
1.0.0 |
rolling linux/jammy R-4.5 | bacontrees_1.0.0.tar.gz |
305.7 KiB |
1.0.0 |
rolling linux/noble R-4.5 | bacontrees_1.0.0.tar.gz |
306.3 KiB |
1.0.0 |
rolling source/ R- | bacontrees_1.0.0.tar.gz |
47.6 KiB |
1.0.0 |
latest linux/jammy R-4.5 | bacontrees_1.0.0.tar.gz |
305.7 KiB |
1.0.0 |
latest linux/noble R-4.5 | bacontrees_1.0.0.tar.gz |
306.3 KiB |
1.0.0 |
latest source/ R- | bacontrees_1.0.0.tar.gz |
47.6 KiB |
1.0.0 |
2026-04-23 source/ R- | bacontrees_1.0.0.tar.gz |
0 B |