Summary.quantities

Summary.quantities#

Summary.quantities: dict[str, dict[str, ndarray]]#

Dict of summarizing quantities.

Let summary be a Summary instance. The hierarchy is:

q = summary.quantities["quantity_name"]["parameter_name"]

Available quantity names are "mean", "sd", "var", "quantile", "hdi", "ess_bulk", "ess_tail", "rhat", "mcse_mean", and "mcse_sd", depending on the which argument. Note that which uses "quantiles" to request quantiles, while quantities stores the result under "quantile".

The extracted object is an np.ndarray. If per_chain=True, the arrays for the "quantile" and "hdi" quantities have the following dimensions:

  1. First index refers to the chain

  2. Second index refers to the quantile/interval

  3. Third and subsequent indices refer to individual parameters.

If per_chain=True, the arrays for the other quantities have the dimensions:

  1. First index refers to the chain

  2. Second and subsequent indices refer to individual parameters.

If per_chain=False, the first index is removed for all quantities.