Software:ArviZ

From HandWiki
Short description: Python package
ArviZ
Original author(s)ArviZ Development Team
Initial releaseJuly 21, 2018 (2018-07-21)
Repositoryhttps://github.com/arviz-devs/arviz
Written inPython
Operating systemUnix-like, Mac OS X, Microsoft Windows
PlatformIntel x86 – 32-bit, x64
TypeStatistical package
LicenseApache License, Version 2.0
Websitepython.arviz.org

ArviZ (/ˈɑːrvɪz/ AR-vees) is a Python package for exploratory analysis of Bayesian models.[1][2][3][4] It is specifically designed to work with the output of probabilistic programming libraries like PyMC, Stan, and others by providing a set of tools for summarizing and visualizing the results of Bayesian inference in a convenient and informative way. ArviZ also provides a common data structure for manipulating and storing data commonly arising in Bayesian analysis, like posterior samples or observed data.

ArviZ is an open source project, developed by the community and is an affiliated project of NumFOCUS.[5] and it has been used to help interpret inference problems in several scientific domains, including astronomy,[6] neuroscience,[7] physics[8] and statistics.[9][10]

Etymology

The ArviZ name is derived from reading "rvs" (the short form of random variates) as a word instead of spelling it and also using the particle "viz" usually used to abbreviate visualization.

Exploratory analysis of Bayesian models

When working with Bayesian models there are a series of related tasks that need to be addressed besides inference itself:

  • Diagnoses of the quality of the inference, this is needed when using numerical methods such as Markov chain Monte Carlo techniques
  • Model criticism, including evaluations of both model assumptions and model predictions
  • Comparison of models, including model selection or model averaging
  • Preparation of the results for a particular audience

All these tasks are part of the Exploratory analysis of Bayesian models approach, and successfully performing them is central to the iterative and interactive modeling process. These tasks require both numerical and visual summaries.[11][12][2]


Library features

  • InferenceData object for Bayesian data manipulation. This object is based on xarray
  • Plots using two alternative backends matplotlib or bokeh
  • Numerical summaries and diagnostics for Markov chain Monte Carlo methods.
  • Integration with established probabilistic programming languages including; PyStan (the Python interface of Stan), PyMC,[13] Edward[14] Pyro,[15] and easily integrated with novel or bespoke Bayesian analyses. ArviZ is also available in Julia, using the ArviZ.jl interface

See also

bayesplot is an R package providing an extensive library of plotting functions for use after fitting Bayesian models (typically with Markov chain Monte Carlo)

loo R package for efficient Leave-One-Out Cross-Validation and WAIC for Bayesian Models

Exploratory Analysis of Bayesian Models

References

  1. Kumar, Ravin; Carroll, Colin; Hartikainen, Ari; Martin, Osvaldo (2019). "ArviZ a unified library for exploratory analysis of Bayesian models in Python". Journal of Open Source Software 4 (33): 1143. doi:10.21105/joss.01143. Bibcode2019JOSS....4.1143K. 
  2. 2.0 2.1 Martin, Osvaldo (2018) (in en). Bayesian Analysis with Python: Introduction to statistical modeling and probabilistic programming using PyMC3 and ArviZ. Packt Publishing Ltd. ISBN 9781789341652. https://books.google.com/books?id=1Z2BDwAAQBAJ. 
  3. Martin, Osvaldo; Kumar, Ravin; Lao, Junpeng (2021) (in en). Bayesian Modeling and Computation in Python. CRC-press. pp. 1–420. ISBN 9780367894368. https://www.routledge.com/Bayesian-Modeling-and-Computation-in-Python/Martin-Kumar-Lao/p/book/9780367894368. Retrieved 7 July 2022. 
  4. Gelman, Andrew; Vehtari, Aki; Simpson, Daniel; Margossian, Charles; Carpenter, Bob; Yao, Yuling; Kennedy, Lauren; Gabry, Jonah; Bürkner, Paul-Christian; Martin, Modrák (2021). "Bayesian Workflow". arXiv:2011.01808 [stat.ME].
  5. "NumFOCUS Affiliated Projects". NumFOCUS | Open Code = Better Science. https://numfocus.org/sponsored-projects/affiliated-projects. 
  6. Farr, Will M.; Fishbach, Maya; Ye, Jiani; Holz, Daniel E. (2019). "A Future Percent-level Measurement of the Hubble Expansion at Redshift 0.8 with Advanced LIGO". The Astrophysical Journal 883 (2): L42. doi:10.3847/2041-8213/ab4284. Bibcode2019ApJ...883L..42F. 
  7. Busch-Moreno, Simon; Tuomainen, Jyrki; Vinson, David (2021). "Trait anxiety effects on late phase threatening speech processing: Evidence from electroencephalography". European Journal of Neuroscience 54 (9): 7152–7175. doi:10.1111/ejn.15470. PMID 34553432. 
  8. Jovanovski, Petar; Kocarev, Ljupco (2019). "Bayesian consensus clustering in multiplex networks". Chaos: An Interdisciplinary Journal of Nonlinear Science 29 (10): 103142. doi:10.1063/1.5120503. PMID 31675792. Bibcode2019Chaos..29j3142J. 
  9. Zhou, Guangyao (2019). "Mixed Hamiltonian Monte Carlo for Mixed Discrete and Continuous Variables". arXiv:1909.04852 [stat.CO].
  10. Graham, Matthew M.; Thiery, Alexandre H.; Beskos, Alexandros (2019). "Manifold Markov chain Monte Carlo methods for Bayesian inference in a wide class of diffusion models". arXiv:1912.02982 [stat.CO].
  11. Gabry, Jonah; Simpson, Daniel; Vehtari, Aki; Betancourt, Michael; Gelman, Andrew (2019). "Visualization in Bayesian workflow". Journal of the Royal Statistical Society, Series A (Statistics in Society) 182 (2): 389–402. doi:10.1111/rssa.12378. 
  12. Vehtari, Aki; Gelman, Andrew; Simpson, Daniel; Carpenter, Bob; Bürkner, Paul-Christian (2021). "Rank-Normalization, Folding, and Localization: An Improved Rˆ for Assessing Convergence of MCMC (With Discussion)". Bayesian Analysis 16 (2): 667. doi:10.1214/20-BA1221. Bibcode2021BayAn..16..667V. 
  13. Salvatier, John; Wiecki, Thomas V.; Fonnesbeck, Christopher (2016). "Probabilistic programming in Python using PyMC3". PeerJ Computer Science 2: e55. doi:10.7717/peerj-cs.55. 
  14. Tran, Dustin; Kucukelbir, Alp; Dieng, Adji B.; Rudolph, Maja; Liang, Dawen; Blei, David M. (2016). "Edward: A library for probabilistic modeling, inference, and criticism". arXiv:1610.09787 [stat.CO].
  15. Bingham, Eli; Chen, Jonathan P.; Jankowiak, Martin; Obermeyer, Fritz; Pradhan, Neeraj; Karaletsos, Theofanis; Singh, Rohit; Szerlip, Paul; Horsfall, Paul; Goodman, Noah D. (2018). "Pyro: Deep Universal Probabilistic Programming". arXiv:1810.09538 [cs.LG].

External links