# \#arviz

**URL:** https://discourse.mc-stan.org/tag/arviz/192.md

[Latest](https://discourse.mc-stan.org/latest.md) · [Categories](https://discourse.mc-stan.org/categories.md) · [Tags](https://discourse.mc-stan.org/tags.md)

---

## [ArviZ 1.0](https://discourse.mc-stan.org/t/arviz-1-0/41046)

<div class="topic-metadata">

**Author:** [@Osvaldo\_Martin](https://discourse.mc-stan.org/u/Osvaldo_Martin)\
**Replies:** 0\
**Last updated:** [April 14, 2026, 5:27am UTC](https://discourse.mc-stan.org/t/arviz-1-0/41046 "2026-04-14T05:27:43Z")

</div>

We have been refactoring ArviZ to improve modularity and flexibility, while preserving a user-friendly interface that works well with minimal input. Following this effort, we have recently released ArviZ 1.0. Modular st…

---

## [Help in interpreting arviz.plot\_compare output](https://discourse.mc-stan.org/t/help-in-interpreting-arviz-plot-compare-output/33503)

<div class="topic-metadata">

**Author:** [@mathlad](https://discourse.mc-stan.org/u/mathlad)\
**Replies:** 1\
**Last updated:** [December 6, 2023, 3:14pm UTC](https://discourse.mc-stan.org/t/help-in-interpreting-arviz-plot-compare-output/33503 "2023-12-06T15:14:04Z")

</div>

Hello. I’m trying to understand the output of arviz.plot\_compare. Specifically, I’m trying to understand how the deltas should be interpreted. Here, can I say that Model A is significantly better than Model B? Is …

---

## [Cmdstanpy==1.2.0, arviz and no attribute 'stan\_vars\_cols'](https://discourse.mc-stan.org/t/cmdstanpy-1-2-0-arviz-and-no-attribute-stan-vars-cols/33266)

<div class="topic-metadata">

**Author:** [@Duncan\_Stoddard](https://discourse.mc-stan.org/u/Duncan_Stoddard)\
**Replies:** 2\
**Last updated:** [November 8, 2023, 3:59pm UTC](https://discourse.mc-stan.org/t/cmdstanpy-1-2-0-arviz-and-no-attribute-stan-vars-cols/33266 "2023-11-08T15:59:56Z")

</div>

Hello, I’ve upgraded cmdstanpy to 1.2.0. When I try to create an InferenceData object with arviz==0.16.1 I get the below error. It works fine with cmdstanpy=1.1.0. Get the same with the eight schools example. ---------…

---

## [How dose bayesian bootstrap weight in az.compare() work?](https://discourse.mc-stan.org/t/how-dose-bayesian-bootstrap-weight-in-az-compare-work/31984)

<div class="topic-metadata">

**Author:** [@qi-peng](https://discourse.mc-stan.org/u/qi-peng)\
**Replies:** 2\
**Last updated:** [July 28, 2023, 12:51pm UTC](https://discourse.mc-stan.org/t/how-dose-bayesian-bootstrap-weight-in-az-compare-work/31984 "2023-07-28T12:51:01Z")

</div>

Hi, I’m new to pystan. I am confused about how arviz calculates weight through bayesian bootstrap. Is there any reference to help me understand how its works? Thanks in advance!

---

## [Showing warmup steps in ArviZ traceplot](https://discourse.mc-stan.org/t/showing-warmup-steps-in-arviz-traceplot/31988)

<div class="topic-metadata">

**Author:** [@jpferreira](https://discourse.mc-stan.org/u/jpferreira)\
**Replies:** 7\
**Last updated:** [July 7, 2023, 12:38pm UTC](https://discourse.mc-stan.org/t/showing-warmup-steps-in-arviz-traceplot/31988 "2023-07-07T12:38:38Z")

</div>

Hi there, I’m trying to show the warmup steps in the ArviZ traceplot, obtained using the function arviz.plots.traceplot. By look the the function definition, available here, I’ve realized that this cannot be done as the…

---

## [Consulting contract to evaluate ArviZ visualizations](https://discourse.mc-stan.org/t/consulting-contract-to-evaluate-arviz-visualizations/26634)

<div class="topic-metadata">

**Author:** [@OriolAbril](https://discourse.mc-stan.org/u/OriolAbril)\
**Replies:** 0\
**Last updated:** [March 2, 2022, 9:47pm UTC](https://discourse.mc-stan.org/t/consulting-contract-to-evaluate-arviz-visualizations/26634 "2022-03-02T21:47:27Z")

</div>

ArviZ got 2000 USD via GSoD 2021 to hire an independent contractor to evaluate ArviZ dataviz functions, make sure that there are no visualizations we have overlooked and should be added to the library, that the default s…

---

## [\[Live Webinar\] Contributing to ArviZ and Open Source: Social and Technical Sides](https://discourse.mc-stan.org/t/live-webinar-contributing-to-arviz-and-open-source-social-and-technical-sides/29308)

<div class="topic-metadata">

**Author:** [@reshamas](https://discourse.mc-stan.org/u/reshamas)\
**Replies:** 1\
**Last updated:** [November 30, 2022, 1:48pm UTC](https://discourse.mc-stan.org/t/live-webinar-contributing-to-arviz-and-open-source-social-and-technical-sides/29308 "2022-11-30T13:48:53Z")

</div>

On Tuesday, November 29, 2022 at 12pm ET, Oriol Abril Pla will be presenting on: Contributing to ArviZ and Open Source: Social and Technical Sides This a free, live webinar. Sign up here: If you are unable to attend,…

---

## [Observed data not read by arvis.from\_pystan](https://discourse.mc-stan.org/t/observed-data-not-read-by-arvis-from-pystan/29620)

<div class="topic-metadata">

**Author:** [@tlliu](https://discourse.mc-stan.org/u/tlliu)\
**Replies:** 1\
**Last updated:** [November 27, 2022, 4:59pm UTC](https://discourse.mc-stan.org/t/observed-data-not-read-by-arvis-from-pystan/29620 "2022-11-27T16:59:28Z")

</div>

The observed data is not read into arviz from pystan data={'N':N, 'y':y, 'N\_cluster':N\_cluster, 'cluster':cluster} fit\_obj = az.from\_pystan( posterior=fit, posterior\_predictive='y\_tilde', observed\_data=\['y…

---

## [Differences in Stan code between Pystan and ArviZ tutorials](https://discourse.mc-stan.org/t/differences-in-stan-code-between-pystan-and-arviz-tutorials/27666)

<div class="topic-metadata">

**Author:** [@gimi](https://discourse.mc-stan.org/u/gimi)\
**Replies:** 1\
**Last updated:** [May 30, 2022, 10:56pm UTC](https://discourse.mc-stan.org/t/differences-in-stan-code-between-pystan-and-arviz-tutorials/27666 "2022-05-30T22:56:01Z")

</div>

I am an absolute beginner in Stan, and I was looking at the “eight schools” example that is referenced in both the Pystan and the ArviZ “getting started” pages. I noticed that they implement the same model in different w…

---

## [Some off pareto values, 99% ok - issue?](https://discourse.mc-stan.org/t/some-off-pareto-values-99-ok-issue/27596)

<div class="topic-metadata">

**Author:** [@negregory14](https://discourse.mc-stan.org/u/negregory14)\
**Replies:** 2\
**Last updated:** [May 30, 2022, 7:38pm UTC](https://discourse.mc-stan.org/t/some-off-pareto-values-99-ok-issue/27596 "2022-05-30T19:38:29Z")

</div>

So I’m fitting some models, and some of them are spitting out some problematic pareto values in LOOIC: e.g.: I understand this is problematic for a variety of reasons, such as making the LOOIC inaccurate / over-opti…

---

## [Arviz.compare throwing error with ELPDData](https://discourse.mc-stan.org/t/arviz-compare-throwing-error-with-elpddata/27584)

<div class="topic-metadata">

**Author:** [@negregory14](https://discourse.mc-stan.org/u/negregory14)\
**Replies:** 2\
**Last updated:** [May 22, 2022, 2:09pm UTC](https://discourse.mc-stan.org/t/arviz-compare-throwing-error-with-elpddata/27584 "2022-05-22T14:09:37Z")

</div>

So i’m trying to use Arviz.compare to visually compare some fitting. For each model, some different data sets can be fitted, so i’m trying to compare only data sets shared by all models. With this, I have the pointwise…

---

## [Blog post on CmdStanPy\<-\>ArviZ integration](https://discourse.mc-stan.org/t/blog-post-on-cmdstanpy-arviz-integration/27260)

<div class="topic-metadata">

**Author:** [@OriolAbril](https://discourse.mc-stan.org/u/OriolAbril)\
**Replies:** 0\
**Last updated:** [April 26, 2022, 4:43am UTC](https://discourse.mc-stan.org/t/blog-post-on-cmdstanpy-arviz-integration/27260 "2022-04-26T04:43:23Z")

</div>

I have written a blog post focused on the integration between CmdStanPy and ArviZ and how to use them to ease postprocessing and exploratory analysis of models. It uses the models from the Tagging Basketball Events with …

---

## [How do I get labels to show (5%, 95% and mean values) on the ppc plot/?](https://discourse.mc-stan.org/t/how-do-i-get-labels-to-show-5-95-and-mean-values-on-the-ppc-plot/26691)

<div class="topic-metadata">

**Author:** [@Jordan\_Howell](https://discourse.mc-stan.org/u/Jordan_Howell)\
**Replies:** 6\
**Last updated:** [March 7, 2022, 10:03pm UTC](https://discourse.mc-stan.org/t/how-do-i-get-labels-to-show-5-95-and-mean-values-on-the-ppc-plot/26691 "2022-03-07T22:03:09Z")

</div>

Hello, I ran a GLM using CMDSTANPY. I’ve ran my data sample through it and got the posterior predictive samples. How do I pull out the 5%, 95% and mean of the posterior predictive samples like I get when plotting my …

---

## [ARVIZ will not save energy or density plots](https://discourse.mc-stan.org/t/arviz-will-not-save-energy-or-density-plots/26096)

<div class="topic-metadata">

**Author:** [@Jordan\_Howell](https://discourse.mc-stan.org/u/Jordan_Howell)\
**Replies:** 1\
**Last updated:** [January 25, 2022, 5:31pm UTC](https://discourse.mc-stan.org/t/arviz-will-not-save-energy-or-density-plots/26096 "2022-01-25T17:31:33Z")

</div>

I’m having an issue saving energy plots and density plots to a folder. I’m fitting my model in a pycharm environment so the script is running command line. The below is the code that is running after the model is fit… …

---

## [Comparing prior and posterior parameter densities extracted from PyStan with Arviz?](https://discourse.mc-stan.org/t/comparing-prior-and-posterior-parameter-densities-extracted-from-pystan-with-arviz/25763)

<div class="topic-metadata">

**Author:** [@xiehw](https://discourse.mc-stan.org/u/xiehw)\
**Replies:** 5\
**Last updated:** [December 21, 2021, 10:13pm UTC](https://discourse.mc-stan.org/t/comparing-prior-and-posterior-parameter-densities-extracted-from-pystan-with-arviz/25763 "2021-12-21T22:13:52Z")

</div>

Hi All, I found this page in the Arviz documentation describing the function arviz.plot\_dist\_comparison to compare priors and posteriors, but I’m unfamiliar with how to go about getting the prior out of PyStan to compar…

---

## [Using Ariviz with saved cmdstanpy CSVs](https://discourse.mc-stan.org/t/using-ariviz-with-saved-cmdstanpy-csvs/25071)

<div class="topic-metadata">

**Author:** [@Jordan\_Howell](https://discourse.mc-stan.org/u/Jordan_Howell)\
**Replies:** 11\
**Last updated:** [November 7, 2021, 2:55am UTC](https://discourse.mc-stan.org/t/using-ariviz-with-saved-cmdstanpy-csvs/25071 "2021-11-07T02:55:59Z")

</div>

Hello. If/How can I use arviz with previously saved CSVs? I have ran the model, sampled and generated new quantities saving the CSVs on my hard drive. I’m not familiar with cmdstanpy so I’m not sure how to use those C…

---

## [Confused about when PSIS-LOO is appropriate for time series](https://discourse.mc-stan.org/t/confused-about-when-psis-loo-is-appropriate-for-time-series/23818)

<div class="topic-metadata">

**Author:** [@julianstastny](https://discourse.mc-stan.org/u/julianstastny)\
**Replies:** 2\
**Last updated:** [August 9, 2021, 3:28pm UTC](https://discourse.mc-stan.org/t/confused-about-when-psis-loo-is-appropriate-for-time-series/23818 "2021-08-09T15:28:46Z")

</div>

Continuing the discussion from Leave-future-out cross-validation for time-series models: I have some behavioural data where for N trials, a subject chooses, at time t, between two options given some stimulus x\_t. The su…

---

## [Loo/cross-validation with correlated data](https://discourse.mc-stan.org/t/loo-cross-validation-with-correlated-data/22845)

<div class="topic-metadata">

**Author:** [@darcykenworthy](https://discourse.mc-stan.org/u/darcykenworthy)\
**Replies:** 6\
**Last updated:** [July 19, 2021, 12:36pm UTC](https://discourse.mc-stan.org/t/loo-cross-validation-with-correlated-data/22845 "2021-07-19T12:36:04Z")

</div>

I have N data points which are most easily modeled as a multivariate normal distribution, with the mean/covariance dependent on the parameters of the model \\theta i.e. y \\sim \\mathcal{N}(\\mu (x;\\theta),\\Sigma(\\theta)) M…

---

## [CmdStanPy with Arviz PPC plot differs from CmdStanR with bayesplot](https://discourse.mc-stan.org/t/cmdstanpy-with-arviz-ppc-plot-differs-from-cmdstanr-with-bayesplot/23473)

<div class="topic-metadata">

**Author:** [@nels](https://discourse.mc-stan.org/u/nels)\
**Replies:** 5\
**Last updated:** [July 16, 2021, 8:52pm UTC](https://discourse.mc-stan.org/t/cmdstanpy-with-arviz-ppc-plot-differs-from-cmdstanr-with-bayesplot/23473 "2021-07-16T20:52:52Z")

</div>

I’m taking part in the Learn Bayesian Data Analysis and Stan with Jonah Gabry course. Wanted to duplicate the examples given in CmdStanR & bayesplot using CmdStanPy & ArviZ but running into an issue with the PPC plottin…

---

## [Plotting posterior predictive plot for time series data using Pystan](https://discourse.mc-stan.org/t/plotting-posterior-predictive-plot-for-time-series-data-using-pystan/23469)

<div class="topic-metadata">

**Author:** [@ants007](https://discourse.mc-stan.org/u/ants007)\
**Replies:** 2\
**Last updated:** [July 16, 2021, 10:35am UTC](https://discourse.mc-stan.org/t/plotting-posterior-predictive-plot-for-time-series-data-using-pystan/23469 "2021-07-16T10:35:53Z")

</div>

Hello, Pystan champions, I have fitted a structural time series model in Stan and used arviz to plot posterior predictive distribution. here is my code: import arviz as az idata = az.from\_pystan(posterior=fit\_TOUR\_mo…

---

## [Posterior predictive plot in when using PyStan](https://discourse.mc-stan.org/t/posterior-predictive-plot-in-when-using-pystan/22847)

<div class="topic-metadata">

**Author:** [@ants007](https://discourse.mc-stan.org/u/ants007)\
**Replies:** 4\
**Last updated:** [June 4, 2021, 12:02pm UTC](https://discourse.mc-stan.org/t/posterior-predictive-plot-in-when-using-pystan/22847 "2021-06-04T12:02:19Z")

</div>

Hello all, I just need you assistance with using PyStan ( I am bit new to python) While running a regression in stan , at the end I have a code : generated quantities { vector\[T\] y\_predict; for (t in 1:T) { y\_predic…

---

## [Understanding LOO-PIT graphical diagnostics](https://discourse.mc-stan.org/t/understanding-loo-pit-graphical-diagnostics/22633)

<div class="topic-metadata">

**Author:** [@amas0](https://discourse.mc-stan.org/u/amas0)\
**Replies:** 7\
**Last updated:** [May 22, 2021, 7:09pm UTC](https://discourse.mc-stan.org/t/understanding-loo-pit-graphical-diagnostics/22633 "2021-05-22T19:09:56Z")

</div>

This question is primarily about the interpretation of diagnostics. Here’s my situation: I fit a logistic regression model to predict the outcome of a binary event. The model fits without issue and I’m current in the pr…

---

## [ArviZ loo\_i](https://discourse.mc-stan.org/t/arviz-loo-i/22250)

<div class="topic-metadata">

**Author:** [@shira](https://discourse.mc-stan.org/u/shira)\
**Replies:** 19\
**Last updated:** [May 11, 2021, 10:18am UTC](https://discourse.mc-stan.org/t/arviz-loo-i/22250 "2021-05-11T10:18:34Z")

</div>

the arviz.loo documentation says: loo\_i: array of pointwise predictive accuracy, only if pointwise True In math, is this the PSIS estimate of \\log p(y\_i|y\_{-i}) ? See BDA3 p.167-175. Is the documentation using “poin…

---

## [Get different colored traceplots for each Chain using PyStan](https://discourse.mc-stan.org/t/get-different-colored-traceplots-for-each-chain-using-pystan/22268)

<div class="topic-metadata">

**Author:** [@Deepak-George\_Thomas](https://discourse.mc-stan.org/u/Deepak-George_Thomas)\
**Replies:** 5\
**Last updated:** [May 3, 2021, 2:32pm UTC](https://discourse.mc-stan.org/t/get-different-colored-traceplots-for-each-chain-using-pystan/22268 "2021-05-03T14:32:00Z")

</div>

Unlike RStan, PyStan seems to overlapping all traceplot chains with the same color. Is it possible to distinguish the different chains when using the traceplot function?

---

## [PPCs in ArviZ?](https://discourse.mc-stan.org/t/ppcs-in-arviz/22176)

<div class="topic-metadata">

**Author:** [@shira](https://discourse.mc-stan.org/u/shira)\
**Replies:** 1\
**Last updated:** [April 28, 2021, 7:19pm UTC](https://discourse.mc-stan.org/t/ppcs-in-arviz/22176 "2021-04-28T19:19:12Z")

</div>

Hi ! We are using CmdStanPy and ArviZ and want to do posterior predictive checks (PPCs). I see plot\_ppc() in arviz, but does arviz also have something like ppc\_stat() in bayesplot ? Thanks so much !

---

## [TypeError when using arviz.from\_cmdstanpy(fit)](https://discourse.mc-stan.org/t/typeerror-when-using-arviz-from-cmdstanpy-fit/21104)

<div class="topic-metadata">

**Author:** [@evangeline](https://discourse.mc-stan.org/u/evangeline)\
**Replies:** 9\
**Last updated:** [March 9, 2021, 8:33am UTC](https://discourse.mc-stan.org/t/typeerror-when-using-arviz-from-cmdstanpy-fit/21104 "2021-03-09T08:33:17Z")

</div>

I tried to use arviz to visualize the posterior params. But when I load the data from fit, the error appeared. Does anyone have any idea about what causes such error? Or is there any alternative method to use arviz? fit…

---

## [Arviz.reloo: am I doing it right?](https://discourse.mc-stan.org/t/arviz-reloo-am-i-doing-it-right/20988)

<div class="topic-metadata">

**Author:** [@Teddy\_Groves1](https://discourse.mc-stan.org/u/Teddy_Groves1)\
**Replies:** 2\
**Last updated:** [February 25, 2021, 8:19pm UTC](https://discourse.mc-stan.org/t/arviz-reloo-am-i-doing-it-right/20988 "2021-02-25T20:19:11Z")

</div>

I’m continuing a discussion from arviz github with @OriolAbril here for better exposure. I would like to compare the out-of-sample predictive performance of some statistical models that I’ve been fitting and analysing w…

---

## [Plot arviz.plot\_loo\_pit for pystan](https://discourse.mc-stan.org/t/plot-arviz-plot-loo-pit-for-pystan/20975)

<div class="topic-metadata">

**Author:** [@soroush](https://discourse.mc-stan.org/u/soroush)\
**Replies:** 2\
**Last updated:** [February 25, 2021, 7:21am UTC](https://discourse.mc-stan.org/t/plot-arviz-plot-loo-pit-for-pystan/20975 "2021-02-25T07:21:08Z")

</div>

I want to plot arviz.plot\_loo\_pit() for eight-schools model as follow: import pystan schools\_code = """ data { int\<lower=0\> J; real y\[J\]; real\<lower=0\> sigma\[J\]; } parameters { real mu; real\<lower=0\>…

---

## [Shinystan vs Bayesplot vs Arviz: lack of discussion](https://discourse.mc-stan.org/t/shinystan-vs-bayesplot-vs-arviz-lack-of-discussion/19613)

<div class="topic-metadata">

**Author:** [@jmaronas](https://discourse.mc-stan.org/u/jmaronas)\
**Replies:** 3\
**Last updated:** [December 3, 2020, 5:41pm UTC](https://discourse.mc-stan.org/t/shinystan-vs-bayesplot-vs-arviz-lack-of-discussion/19613 "2020-12-03T17:41:50Z")

</div>

Hello. I make this plot as I have seen there is a lack of discussion and I think it will be great to hear from advance users and developers. As a new user of Stan I am first looking and deciding what are the best tools…

---

## [Help with ArviZ dashboard](https://discourse.mc-stan.org/t/help-with-arviz-dashboard/18303)

<div class="topic-metadata">

**Author:** [@ahartikainen](https://discourse.mc-stan.org/u/ahartikainen)\
**Replies:** 3\
**Last updated:** [October 2, 2020, 1:23pm UTC](https://discourse.mc-stan.org/t/help-with-arviz-dashboard/18303 "2020-10-02T13:23:58Z")

</div>

Hi, we have started building a dashboard package for Bayesian inference. Dashboarding is new to us so any help/input from the Stan community is welcomed. Dashboards are build on top of the great Panel package. To increa…

[Next page](https://discourse.mc-stan.org/tag/arviz/192.md?match_all_tags=true&page=1&tags%5B%5D=arviz)
