2.7 InferenceData
InferenceData is a rich container for the results of Bayesian inference. A modern Bayesian analysis potentially generates many sets of data including posterior samples and posterior predictive samples. But we also have observed data, samples from the prior, and even statistics generated by the sampler. All this data, and more, can be stored in an InferenceData object. To help keep all this information organized, each one of these sets of data has its own group. For instance, the posterior samples are stored in the posterior
group. The observed data is stored in the observed_data
group.
Figure 2.18 shows an HTML representation of the InferenceData for model_g
. We can see 4 groups: posterior
, posterior_predictive
, sample_stats
, and observed_data
. All of them are collapsed except for the posterior
group. We can see we have two coordinates chain
and draw
of dimensions 4 and 1000 respectively. We also have 2 variables μ and σ.
Figure 2.18: InferenceData...