ericmjl / bayesian-stats-modelling-tutorial

How to do Bayesian statistical modelling using numpy and PyMC3
MIT License
653 stars 281 forks source link

Extract posterior distribution information #90

Open akgopan opened 4 years ago

akgopan commented 4 years ago

How would we extract the posterior distribution information from a theano.tensor.var.TensorVariable to numpy arrays? Current method makes it hard to utilize this information to be part of a bigger code where you might want to use the posterior distribution (or say just the mean and HPD bounds?).

ericmjl commented 4 years ago

@akgopan the you would want to use the posterior trace object, which contain draws from the posterior. I have done this by using draws from the posterior in agent-based simulations at work.