Closed jecampagne closed 2 months ago
Well looking at the code In numpyro there is a line
autocorr = autocorr / np.arange(N, 0.0, -1)
while the arviz.autocorr output agree if I replace the above line by
autocorr = autocorr / autocorr[0]
Could you use the change in #1785? It seems that we also divide autocorr[0]
at this line
Ok thanks @fehiepsi, so I understand the pb and probably a solution would be to have a flag to switch from one to the other normalisation schema.
I think we can change the behavior. No need for a new flag. Do you want to submit a PR?
Closed because this is a duplication of https://github.com/pyro-ppl/numpyro/issues/1785
Hello, May be I have not using the "autocorrelation" correctly but in case I post the snippet on Colab HERE. The result is that the Arviz auto-corr seems ok
while the numpyro function exhibits a strange behavior
Any idea?