posteriors

property LinearModel.posteriors: dict[str, ndarray]

Posteriors of the regressors’ and variance parameters. Posteriors and relative samples are key-value pairs. Each sample is a numpy.ndarray with a number of rows equals to the number of iterations and a number of columns equal to the number of Markov chains.

Returns

dict

Posterior samples. Posteriors and relative samples are key-value pairs. Each sample is a numpy.ndarray with a number of rows equals to the number of iterations and a number of columns equal to the number of Markov chains.

Raises

TypeError
KeyError

If posteriors does not contain both 'intercept' and 'variance' keys.

ValueError

If a posterior sample is an empty numpy.ndarray.