IDEAS home Printed from https://ideas.repec.org/a/bla/jorssb/v84y2022i4p1287-1323.html
   My bibliography  Save this article

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. 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.
    2. 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.
    3. 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.
    4. 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.
    5. 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.
    6. Andre Berchtold, 2001. "Estimation in the Mixture Transition Distribution Model," Journal of Time Series Analysis, Wiley Blackwell, vol. 22(4), pages 379-397, July.
    7. 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.
    8. 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.
    9. Yee, Thomas W., 2010. "The VGAM Package for Categorical Data Analysis," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 32(i10).
    10. 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.
    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 Oct 2023.

    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. 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.
    3. 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.
    4. 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.
    5. 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).
    6. Mubango Hazel & Muzariri Calvin, 2022. "Employee Engagement and Competitive Advantage during Covid 19 Pandemic in Small to Medium Enterprises, Catering Industry, Harare," International Journal of Research and Innovation in Social Science, International Journal of Research and Innovation in Social Science (IJRISS), vol. 6(4), pages 288-292, April.
    7. 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.
    8. 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.
    9. 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.
    10. 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.
    11. Sneha Gautam & Cyril Samuel & Alok Sagar Gautam & Sanjeev Kumar, 2021. "Strong link between coronavirus count and bad air: a case study of India," Environment, Development and Sustainability: A Multidisciplinary Approach to the Theory and Practice of Sustainable Development, Springer, vol. 23(11), pages 16632-16645, November.
    12. Hengrui Liu & Sho Iketani & Arie Zask & Nisha Khanizeman & Eva Bednarova & Farhad Forouhar & Brandon Fowler & Seo Jung Hong & Hiroshi Mohri & Manoj S. Nair & Yaoxing Huang & Nicholas E. S. Tay & Sumin, 2022. "Development of optimized drug-like small molecule inhibitors of the SARS-CoV-2 3CL protease for treatment of COVID-19," Nature Communications, Nature, vol. 13(1), pages 1-16, December.
    13. Michael Messer, 2022. "Bivariate change point detection: Joint detection of changes in expectation and variance," Scandinavian Journal of Statistics, Danish Society for Theoretical Statistics;Finnish Statistical Society;Norwegian Statistical Association;Swedish Statistical Association, vol. 49(2), pages 886-916, June.
    14. Alessandro Germani & Livia Buratta & Elisa Delvecchio & Claudia Mazzeschi, 2020. "Emerging Adults and COVID-19: The Role of Individualism-Collectivism on Perceived Risks and Psychological Maladjustment," IJERPH, MDPI, vol. 17(10), pages 1-15, May.
    15. Gabriela Dias Noske & Yun Song & Rafaela Sachetto Fernandes & Rod Chalk & Haitem Elmassoudi & Lizbé Koekemoer & C. David Owen & Tarick J. El-Baba & Carol V. Robinson & Glaucius Oliva & Andre Schutzer , 2023. "An in-solution snapshot of SARS-COV-2 main protease maturation process and inhibition," Nature Communications, Nature, vol. 14(1), pages 1-13, December.
    16. Eugene Song & Jae-Eun Lee & Seola Kwon, 2021. "Effect of Public Empathy with Infection-Control Guidelines on Infection-Prevention Attitudes and Behaviors: Based on the Case of COVID-19," IJERPH, MDPI, vol. 18(24), pages 1-18, December.
    17. Kow-Tong Chen, 2022. "Emerging Infectious Diseases and One Health: Implication for Public Health," IJERPH, MDPI, vol. 19(15), pages 1-4, July.
    18. Sui Zhang & Minghao Wang & Zhao Yang & Baolei Zhang, 2021. "A Novel Predictor for Micro-Scale COVID-19 Risk Modeling: An Empirical Study from a Spatiotemporal Perspective," IJERPH, MDPI, vol. 18(24), pages 1-16, December.
    19. Shujuan Li & Lingli Zhu & Lidan Zhang & Guoyan Zhang & Hongyan Ren & Liang Lu, 2023. "Urbanization-Related Environmental Factors and Hemorrhagic Fever with Renal Syndrome: A Review Based on Studies Taken in China," IJERPH, MDPI, vol. 20(4), pages 1-20, February.
    20. Umit Cirakli & Ibrahim Dogan & Mehmet Gozlu, 2022. "The Relationship Between COVID-19 Cases and COVID-19 Testing: a Panel Data Analysis on OECD Countries," Journal of the Knowledge Economy, Springer;Portland International Center for Management of Engineering and Technology (PICMET), vol. 13(3), pages 1737-1750, 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.