posterior_predictive

dot.plots.posterior_predictive(model, trace, samples=100, path=None, **kwargs)[source] [edit on github]

Take draws from the posterior predictive given a trace and a model.

Parameters
modelModel

Model object

traceMultiTrace

Trace from SMC/NUTS

samplesint

Number of posterior predictive samples to draw

pathstr or None

Save the figure to this path

Returns
fig, axFigure, Axes

Resulting figure and axis