DiagnosticsPlots.prior_predictive#
- DiagnosticsPlots.prior_predictive(original_scale=True, hdi_prob=0.94, idata=None, dims=None, figsize=None, backend=None, return_as_pc=False, line_kwargs=None, hdi_kwargs=None, observed_kwargs=None, **pc_kwargs)[source]#
Plot time series from the prior predictive distribution.
Mirrors
posterior_predictivebut draws from the prior_predictive group. Each panel overlays the prior mean line, an HDI band, and the observed target for comparison.- Parameters:
- original_scalebool, default
True If True, plots
y_original_scalefromidata.prior(where PyMC stores Deterministics) and the observed target in original units. If False, plotsyfromidata.prior_predictive(where PyMC stores observed variables) and the observed target in scaled units.- hdi_prob
float, default 0.94 Probability mass of the HDI band.
- idata
az.InferenceData, optional Override instance data.
- dims
dict[str,Any], optional Subset dimensions.
- figsize
tuple[float,float], optional - backend
str, optional - return_as_pcbool, default
False - line_kwargs
dict, optional Forwarded to
azp.visuals.line_xyfor the predictive mean line.- hdi_kwargs
dict, optional Forwarded to
azp.visuals.fill_between_y.- observed_kwargs
dict, optional Forwarded to
azp.visuals.line_xyfor the observed data line.- **pc_kwargs
Forwarded to
PlotCollection.wrap().
- original_scalebool, default
- Returns:
tuple[Figure,NDArray[Axes]] orPlotCollection
Examples
fig, axes = mmm.plot.diagnostics.prior_predictive() fig, axes = mmm.plot.diagnostics.prior_predictive(original_scale=False)