Tutorials
Learn by running a complete worked example
Before starting
Installation: The package is internal to Exabel and installed from git. Replace
<commit>with the immutable revision selected for the project:uv add 'postforecast @ git+https://github.com/Exabel/postforecast.git@<commit>'Python: Supported versions are 3.11–3.13.
Notebook environment: In a repository checkout, run
just installand select.venv/bin/pythonas the notebook kernel. Keepdocs/pf.pybeside the tutorial notebooks; it supplies their example data and figure styling.Reading online: Every notebook includes computed outputs, so the walkthroughs can also be followed without running a local environment.
Follow the learning path
- The panel: Build and validate the long estimate frame. Observe how invalid timestamps and ambiguous observations are rejected.
- Point-in-time: Read values before an explicit moment and explore how staleness and training boundaries affect the result.
- Anchoring: Work from forecasts and consensus through the revision, weighted surprise, refusal checks and versioned estimate.
- Bayesian posterior: Assemble historical growth and error statistics, combine the readings and inspect the uncertainty interval.
Continue with a real task
- Publishing: Use the how-to guides for the high-level panel APIs.
- Complete Bayesian workflow: The Bayesian notebook teaches
BayesianPosterior. Use Bayesian prediction configuration forbayesian_kpi_predictions, including the correlation-adjusted method. - Mathematics: Consult the reference for equations, defaults and reference-specific behavior.
- Rationale: Follow the explanation links for the assumptions behind the calculations.