IDEAS home Printed from https://ideas.repec.org/a/bla/jorssb/v84y2022i4p1287-1323.html

Bayesian context trees: Modelling and exact inference for discrete time series

Author

Listed:
  • Ioannis Kontoyiannis
  • Lambros Mertzanis
  • Athina Panotopoulou
  • Ioannis Papageorgiou
  • Maria Skoularidou

Abstract

We develop a new Bayesian modelling framework for the class of higher‐order, variable‐memory Markov chains, and introduce an associated collection of methodological tools for exact inference with discrete time series. We show that a version of the context tree weighting alg‐orithm can compute the prior predictive likelihood exa‐ctly (averaged over both models and parameters), and two related algorithms are introduced, which identify the a posteriori most likely models and compute their exact posterior probabilities. All three algorithms are deterministic and have linear‐time complexity. A family of variable‐dimension Markov chain Monte Carlo samplers is also provided, facilitating further exploration of the posterior. The performance of the proposed methods in model selection, Markov order estimation and prediction is illustrated through simulation experiments and real‐world applications with data from finance, genetics, neuroscience and animal communication. The associated algorithms are implemented in the R package BCT.

Suggested Citation

  • Ioannis Kontoyiannis & Lambros Mertzanis & Athina Panotopoulou & Ioannis Papageorgiou & Maria Skoularidou, 2022. "Bayesian context trees: Modelling and exact inference for discrete time series," Journal of the Royal Statistical Society Series B, Royal Statistical Society, vol. 84(4), pages 1287-1323, September.
  • Handle: RePEc:bla:jorssb:v:84:y:2022:i:4:p:1287-1323
    DOI: 10.1111/rssb.12511
    as

    Download full text from publisher

    File URL: https://doi.org/10.1111/rssb.12511
    Download Restriction: no

    File URL: https://libkey.io/10.1111/rssb.12511?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Yun Yang & David B. Dunson, 2016. "Bayesian Conditional Tensor Factorizations for High-Dimensional Classification," Journal of the American Statistical Association, Taylor & Francis Journals, vol. 111(514), pages 656-669, April.
    2. Abhra Sarkar & David B. Dunson, 2016. "Bayesian Nonparametric Modeling of Higher Order Markov Chains," Journal of the American Statistical Association, Taylor & Francis Journals, vol. 111(516), pages 1791-1803, October.
    3. Andris Abakuks, 2012. "The synoptic problem: on Matthew's and Luke's use of Mark," Journal of the Royal Statistical Society Series A, Royal Statistical Society, vol. 175(4), pages 959-975, October.
    4. Väinö Jääskinen & Jie Xiong & Jukka Corander & Timo Koski, 2014. "Sparse Markov Chains for Sequence Data," Scandinavian Journal of Statistics, Danish Society for Theoretical Statistics;Finnish Statistical Society;Norwegian Statistical Association;Swedish Statistical Association, vol. 41(3), pages 639-655, September.
    5. Andre Berchtold, 2001. "Estimation in the Mixture Transition Distribution Model," Journal of Time Series Analysis, Wiley Blackwell, vol. 22(4), pages 379-397, July.
    6. Adrian Raftery & Simon Tavaré, 1994. "Estimation and Modelling Repeated Patterns in High Order Markov Chains with the Mixture Transition Distribution Model," Journal of the Royal Statistical Society Series C, Royal Statistical Society, vol. 43(1), pages 179-199, March.
    7. Fan Wu & Su Zhao & Bin Yu & Yan-Mei Chen & Wen Wang & Zhi-Gang Song & Yi Hu & Zhao-Wu Tao & Jun-Hua Tian & Yuan-Yuan Pei & Ming-Li Yuan & Yu-Ling Zhang & Fa-Hui Dai & Yi Liu & Qi-Min Wang & Jiao-Jiao , 2020. "A new coronavirus associated with human respiratory disease in China," Nature, Nature, vol. 579(7798), pages 265-269, March.
    8. Yee, Thomas W., 2010. "The VGAM Package for Categorical Data Analysis," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 32(i10).
    9. Fan Wu & Su Zhao & Bin Yu & Yan-Mei Chen & Wen Wang & Zhi-Gang Song & Yi Hu & Zhao-Wu Tao & Jun-Hua Tian & Yuan-Yuan Pei & Ming-Li Yuan & Yu-Ling Zhang & Fa-Hui Dai & Yi Liu & Qi-Min Wang & Jiao-Jiao , 2020. "Author Correction: A new coronavirus associated with human respiratory disease in China," Nature, Nature, vol. 580(7803), pages 7-7, April.
    10. Jun Lan & Jiwan Ge & Jinfang Yu & Sisi Shan & Huan Zhou & Shilong Fan & Qi Zhang & Xuanling Shi & Qisheng Wang & Linqi Zhang & Xinquan Wang, 2020. "Structure of the SARS-CoV-2 spike receptor-binding domain bound to the ACE2 receptor," Nature, Nature, vol. 581(7807), pages 215-220, May.
    11. Garivier, A. & Leonardi, F., 2011. "Context tree selection: A unifying view," Stochastic Processes and their Applications, Elsevier, vol. 121(11), pages 2488-2506, November.
    12. Gabadinho, Alexis & Ritschard, Gilbert, 2016. "Analyzing State Sequences with Probabilistic Suffix Trees: The PST R Package," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 72(i03).
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Ioannis Papageorgiou & Ioannis Kontoyiannis, 2023. "The Bayesian Context Trees State Space Model for time series modelling and forecasting," Papers 2308.00913, arXiv.org, revised Aug 2025.

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Jing Wang & Yuan-fei Pan & Li-fen Yang & Wei-hong Yang & Kexin Lv & Chu-ming Luo & Juan Wang & Guo-peng Kuang & Wei-chen Wu & Qin-yu Gou & Gen-yang Xin & Bo Li & Huan-le Luo & Shoudeng Chen & Yue-long, 2023. "Individual bat virome analysis reveals co-infection and spillover among bats and virus zoonotic potential," Nature Communications, Nature, vol. 14(1), pages 1-13, December.
    2. William P Robins & John J Mekalanos, 2022. "Covariance predicts conserved protein residue interactions important for the emergence and continued evolution of SARS-CoV-2 as a human pathogen," PLOS ONE, Public Library of Science, vol. 17(7), pages 1-28, July.
    3. Timothy J. C. Tan & Zongjun Mou & Ruipeng Lei & Wenhao O. Ouyang & Meng Yuan & Ge Song & Raiees Andrabi & Ian A. Wilson & Collin Kieffer & Xinghong Dai & Kenneth A. Matreyek & Nicholas C. Wu, 2023. "High-throughput identification of prefusion-stabilizing mutations in SARS-CoV-2 spike," Nature Communications, Nature, vol. 14(1), pages 1-12, December.
    4. Peter Radvak & Hyung-Joon Kwon & Martina Kosikova & Uriel Ortega-Rodriguez & Ruoxuan Xiang & Je-Nie Phue & Rong-Fong Shen & James Rozzelle & Neeraj Kapoor & Taylor Rabara & Jeff Fairman & Hang Xie, 2021. "SARS-CoV-2 B.1.1.7 (alpha) and B.1.351 (beta) variants induce pathogenic patterns in K18-hACE2 transgenic mice distinct from early strains," Nature Communications, Nature, vol. 12(1), pages 1-15, December.
    5. Xiaoming Hu & Shuang Wang & Shaotong Fu & Meng Qin & Chengliang Lyu & Zhaowen Ding & Yan Wang & Yishu Wang & Dongshu Wang & Li Zhu & Tao Jiang & Jing Sun & Hui Ding & Jie Wu & Lingqian Chang & Yimin C, 2023. "Intranasal mask for protecting the respiratory tract against viral aerosols," Nature Communications, Nature, vol. 14(1), pages 1-20, December.
    6. Iris Bennett & Donald E. K. Martin & Soumendra Nath Lahiri, 2023. "Fitting sparse Markov models through a collapsed Gibbs sampler," Computational Statistics, Springer, vol. 38(4), pages 1977-1994, December.
    7. Ping Yuan & Guodong Chen & Yukun Li & Xichun Liu & Shayana Saravanakumar & Jianfeng Zhao & Qianyu Ji & Hong Wang & Ying-Wu Lin & Mostafa Elbahnasawy & Nan-Ping Weng & Brian G. Pierce & Roy A. Mariuzza, 2025. "Structural insights into clonal restriction and diversity in T cell recognition of two immunodominant SARS-CoV-2 nucleocapsid epitopes," Nature Communications, Nature, vol. 16(1), pages 1-18, December.
    8. Irizar, Patricia & Kapadia, Dharmi & Amele, Sarah & Bécares, Laia & Divall, Pip & Katikireddi, Srinivasa Vittal & Kibuchi, Eliud & Kneale, Dylan & McCabe, Ronan & Nazroo, James & Nellums, Laura B. & T, 2023. "Pathways to ethnic inequalities in COVID-19 health outcomes in the United Kingdom: A systematic map," Social Science & Medicine, Elsevier, vol. 329(C).
    9. Tianke Zhu & Xigang Zhu & Jian Jin, 2021. "Grid Governance in China under the COVID-19 Outbreak: Changing Neighborhood Governance," Sustainability, MDPI, vol. 13(13), pages 1-18, June.
    10. Giulia Motta Zanin & Eleonora Gentile & Alessandro Parisi & Danilo Spasiano, 2020. "A Preliminary Evaluation of the Public Risk Perception Related to the COVID-19 Health Emergency in Italy," IJERPH, MDPI, vol. 17(9), pages 1-20, April.
    11. Abdur Rauf & Tareq Abu-Izneid & Ahmed Olatunde & Anees Ahmed Khalil & Fahad A. Alhumaydhi & Tabussam Tufail & Mohammad Ali Shariati & Maksim Rebezov & Zainab M. Almarhoon & Yahia N. Mabkhot & Abdulrhm, 2020. "COVID-19 Pandemic: Epidemiology, Etiology, Conventional and Non-Conventional Therapies," IJERPH, MDPI, vol. 17(21), pages 1-32, November.
    12. repec:bcp:journl:v:6:y:2022:i:4:p:288-292 is not listed on IDEAS
    13. Giulia Orilisi & Marco Mascitti & Lucrezia Togni & Riccardo Monterubbianesi & Vincenzo Tosco & Flavia Vitiello & Andrea Santarelli & Angelo Putignano & Giovanna Orsini, 2021. "Oral Manifestations of COVID-19 in Hospitalized Patients: A Systematic Review," IJERPH, MDPI, vol. 18(23), pages 1-19, November.
    14. Bruno Damásio & João Nicolau, 2020. "Time Inhomogeneous Multivariate Markov Chains: Detecting and Testing Multiple Structural Breaks Occurring at Unknown," Working Papers REM 2020/0136, ISEG - Lisbon School of Economics and Management, REM, Universidade de Lisboa.
    15. David Gomez-Zepeda & Danielle Arnold-Schild & Julian Beyrle & Arthur Declercq & Ralf Gabriels & Elena Kumm & Annica Preikschat & Mateusz Krzysztof Łącki & Aurélie Hirschler & Jeewan Babu Rijal & Chris, 2024. "Thunder-DDA-PASEF enables high-coverage immunopeptidomics and is boosted by MS2Rescore with MS2PIP timsTOF fragmentation prediction model," Nature Communications, Nature, vol. 15(1), pages 1-18, December.
    16. Francesco Gangi & Eugenio D'Angelo & Lucia Michela Daniele & Nicola Varrone, 2021. "Assessing the impact of socially responsible human resources management on company environmental performance and cost of debt," Corporate Social Responsibility and Environmental Management, John Wiley & Sons, vol. 28(5), pages 1511-1527, September.
    17. Muhammad Moazzam & Muhammad Imran Sajid & Hamza Shahid & Jahanzaib Butt & Irfan Bashir & Muhammad Jamshaid & Amir Nasrolahi Shirazi & Rakesh Kumar Tiwari, 2020. "Understanding COVID-19: From Origin to Potential Therapeutics," IJERPH, MDPI, vol. 17(16), pages 1-22, August.
    18. Patrick Gad Iradukunda & Arnaud Iradukunda & Pierre Gashema & Emile Ngabo & Jean de Dieu Tuyishime & Tumusime Musafiri & Thérèse Umuhoza & Ulysse Uwayo & Enos Moyo & Richard Habimana & Claude Mambo Mu, 2025. "From COVID-19 Pandemic Pivot to Progress: Blended Work as a Pathway to Greener African Cities," Challenges, MDPI, vol. 16(1), pages 1-9, February.
    19. MAVRIDIS, Dimitrios & CSÉFALVAY, Zoltan & GKOTSIS, Petros & POTTERS, Lesley, 2021. "A Preliminary Index of SARS-CoV-2 Diagnostic Testing Patents," JRC Working Papers on Corporate R&D and Innovation 2020-07, Joint Research Centre.
    20. Miquel Oliu-Barton & Bary S. R. Pradelski & Nicolas Woloszko & Lionel Guetta-Jeanrenaud & Philippe Aghion & Patrick Artus & Arnaud Fontanet & Philippe Martin & Guntram B. Wolff, 2022. "The effect of COVID certificates on vaccine uptake, health outcomes, and the economy," Nature Communications, Nature, vol. 13(1), pages 1-13, December.
    21. Douglas Chiguvi & Keneilwe Bakani & Segolame Kalayakgosi, 2023. "The Impact of Covid-19 on Employees' Work-Life Balance: A Case Study of Botswana Unified Revenue," International Journal of Research in Business and Social Science (2147-4478), Center for the Strategic Studies in Business and Finance, vol. 12(6), pages 118-133, September.

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:bla:jorssb:v:84:y:2022:i:4:p:1287-1323. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Wiley Content Delivery (email available below). General contact details of provider: https://edirc.repec.org/data/rssssea.html .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.