plots.plot_coverage_by_alpha

plots.plot_coverage_by_alpha(
    alphas,
    coverages,
    *,
    widths=None,
    ax=None,
    show_target=True,
    title=None,
    figsize=(8, 5),
)

Plot coverage vs alpha with optional interval widths.

Parameters

alphas : list of float

Miscoverage levels tested.

coverages : list of float

Empirical coverage for each alpha.

widths : list of float = None

Average interval widths for each alpha.

ax : matplotlib.axes.Axes = None

Axes to plot on. If None, creates new figure.

show_target : bool = True

Whether to show 1-alpha target line.

title : str = None

Plot title.

figsize : tuple = (8, 5)

Figure size if creating new figure.

Returns

fig : matplotlib.figure.Figure

The figure object.

ax : matplotlib.axes.Axes

The axes object.