On Apr 20, 2015, at 1:31 PM, Kevin Van Horn <ke...@ksvanhorn.com> wrote:
I am seeing vastly different numbers for effective sample size computed by Stan versus those computed by coda. The attached CSV file and plots are for a trace that Stan says only has an effective sample size of 167.4. Looking at it visually, that number of 167.4 looks very low. Running coda::effectiveSize on it, I get a result of 1616.5. The actual number of sampling iterations is 1500.
Any idea why the large discrepancy? I'm trying to figure out which of these numbers to believe.
--
You received this message because you are subscribed to the Google Groups "Stan users mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stan-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<anomalous-ess.csv><anomalous-ess-points.png><anomalous-ess-lines.png>
s$summary[, 'n_eff'] <- round(s$summary[, 'n_eff'], 0)> sd(x) [1] 0.1406752If anything, we seem to be getting some negative correlation increasing the effective sample size.
> sd(x)/sqrt(10) [1] 0.04448542 > sd(colMeans(matrix(x, nr=10))) [1] 0.04134681
> sd(x)/sqrt(15) [1] 0.03632219 > sd(colMeans(matrix(x, nr=15))) [1] 0.03646076
> sd(x)/sqrt(20) [1] 0.03145594 > sd(colMeans(matrix(x, nr=20))) [1] 0.03124686
> sd(x)/sqrt(25) [1] 0.02813505 > sd(colMeans(matrix(x, nr=25))) [1] 0.02777601
> sd(x)/sqrt(30) [1] 0.02568367 > sd(colMeans(matrix(x, nr=30))) [1] 0.02636602
> sd(x)/sqrt(50) [1] 0.01989448 > sd(colMeans(matrix(x, nr=50))) [1] 0.01958211
> sd(x)/sqrt(75) [1] 0.01624378 > sd(colMeans(matrix(x, nr=75))) [1] 0.01497145
> sd(x)/sqrt(100) [1] 0.01406752 > sd(colMeans(matrix(x, nr=100))) [1] 0.01281342
To post to this group, send email to stan-...@googlegroups.com.
> To unsubscribe from this group and stop receiving emails from it, send an email to stan-users+unsubscribe@googlegroups.com.
> To post to this group, send email to stan-...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Stan users mailing list" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/stan-users/mfdeTS322hQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to stan-users+unsubscribe@googlegroups.com.