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.
-
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:¶