@@ -12,16 +12,17 @@ diagnostic statistics on the sampler chains, reported in the following order:
12
12
13
13
- Mean - sample mean
14
14
- MCSE - Monte Carlo Standard Error, a measure of the amount of noise in the sample
15
- - StdDev - sample standard deviation
15
+ - StdDev - sample standard deviation - the variance around the sample mean.
16
+ - MAD - Median Absolute Deviation - the variance around the sample median.
16
17
- Quantiles - default 5%, 50%, 95%
17
- - N_eff - effective sample size - the number of independent draws in the sample
18
- - N_eff/S - the number of independent draws per second
18
+ - ESS_bulk
19
+ - ESS_tail
19
20
- R_hat - $\hat{R}$ statistic, a measure of chain equilibrium, must be within $0.05$ of $1.0$.
20
21
21
22
When reviewing the ` stansummary ` output, it is important to check the final three
22
23
output columns first - these are the diagnostic statistics on chain convergence and
23
24
number of independent draws in the sample.
24
- A $\hat{R}$ statistic of greater than $1.05 $ indicates that the chain has not converged and
25
+ A $\hat{R}$ statistic of greater than $1.01 $ indicates that the chain has not converged and
25
26
therefore the sample is not drawn from the posterior, thus the estimates of the mean and
26
27
all other summary statistics are invalid.
27
28
@@ -34,12 +35,16 @@ For more information, see the
34
35
[ Posterior Analysis] ( https://mc-stan.org/docs/reference-manual/analysis.html )
35
36
chapter of the Stan Reference Manual which describes both the theory and practice of MCMC
36
37
estimation techniques.
38
+
39
+ The statistics - Mean, StdDev, MAD, and Quantiles - are computed directly from all draws across all chains.
40
+ The diagnostic statistics - MCSE, ESS_bulk, ESS_tail, and R_hat are computed from the rank-normalized,
41
+ folded chains according to the definitions in @Vehtari +etal:2021: Rhat .
37
42
The summary statistics and the algorithms used to compute them are described in sections
38
43
[ Notation for samples] ( https://mc-stan.org/docs/reference-manual/analysis.html#notation-for-samples-chains-and-draws )
39
44
and
40
45
[ Effective Sample Size] ( https://mc-stan.org/docs/reference-manual/analysis.html#effective-sample-size.section ) .
41
46
42
- ## Building the stansummary command
47
+ ## Building the ` stansummary ` command
43
48
44
49
The CmdStan makefile task ` build ` compiles the ` stansummary ` utility
45
50
into the ` bin ` directory.
0 commit comments