bayesplain.teach.SequentialUpdate

class bayesplain.teach.SequentialUpdate(checkpoints, successes, posteriors=<factory>, prior=None, level=0.95, label='rate')[source]

The posterior after each successive chunk of data.

Variables:
checkpoints

Cumulative number of observations at each step.

successes

Cumulative successes at each step.

posteriors=<factory>

The Beta posterior at each step.

prior=None

The prior everything started from.

level=0.95

Credible level used for the reported intervals.

label='rate'

What is being estimated, for printed output.

Methods

plot([ax])

Draw the estimate and its interval as data accumulates.

table()

Show the estimate and its interval tightening step by step.

property bounds[source]

Interval bounds after each chunk, shape (steps, 2).

checkpoints[source]
label = 'rate'[source]
level = 0.95[source]
property means[source]

Posterior mean after each chunk.

plot(ax=None)[source]

Draw the estimate and its interval as data accumulates.

Parameters:
ax : matplotlib.axes.Axes, optional

Axes to draw on. Created if omitted.

Returns:

The axes drawn on.

Return type:

matplotlib.axes.Axes

posteriors[source]
prior = None[source]
successes[source]
table()[source]

Show the estimate and its interval tightening step by step.

Returns:

Printable table.

Return type:

_Report

property widths[source]

Interval width after each chunk.