Skip to main content

Bayesian Vector Autoregressions for forecasting

User manual: see the documentation.

Features

  • Natural-conjugate setting (Normal-Inverse-Wishart) with Minnesota shrinkage.
  • Sum-of-coefficients and single-unit-root dummy observation priors (implemented with dummy observations).
  • Hyperparameter optimisation following GLP (2015) but without the MH step.
  • Covid dummies.
  • Conditional and unconditional forecasting.
  • Soft constraints in conditional forecasting, with uncertainty around the constraints.
  • Generalised impulse response functions.
  • Conditional forecast counterfactual analysis.
  • Hyperparameter optimisation via cross-validation; see this doc.
    • Out-of-sample predictive likelihood.
    • Features: optimise hyperparameter to maximise the predictive likelihood at a given horizon and for a subset of targeted series.
  • Support for skewed constraints (aka upside and downside risks); see this doc.
  • Explicitly accounts for nowcasting uncertainty when exploiting nowcasts; see this doc.
  • Unit tests and simulation experiments, including:
    • Simulation comparing the estimated parameters with the true data generating process.
    • Simulation evaluating forecast unbiasedness.
    • Simulation checking the moments of the constrained forecast distribution.

Project Structure

├── src/                        # Source code
├── docs/                       # Documentation and notebooks
├── tests/                      # Automated tests
├── ...

Installation

pip install bvar

Selected documentation

Selected notebooks

Contributing

  • See CONTRIBUTING.md for details on how to contribute to the code.
  • Have a question or an idea? Please open an issue.

Main references

Data Classification

Bank of England Data Classification: OFFICIAL BLUE

Release files for bvar 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bvar 0.3.1
File Size Uploaded
bvar-0.3.1.tar.gz 111.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bvar 0.3.1
File Interpreter ABI Platform
bvar-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 194.0 kB

Release files / bvar-0.3.1.tar.gz

Download URL bvar-0.3.1.tar.gz
Size 111.1 kB
Tags Source
SHA-256 checksum
How to use checksums
86d9d9abec3e81cf599b7e813ba02f7a18ea3953b5105c08a83a39d9270008cf
BLAKE2b-256 checksum
How to use checksums
61bcf7d7e54e1163210354b1ce2ea227ef9cd65e74a190587256af320d8cd047
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 28, 2026.

Transparency log

Release files / bvar-0.3.1-py3-none-any.whl

Download URL bvar-0.3.1-py3-none-any.whl
Size 82.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ad2f9f40ba8d29675be0092c119e66e8415cfe345bc3df30ed2d03f53aee1603
BLAKE2b-256 checksum
How to use checksums
961af83304dcde54e91a7fd535c055920bb850171c351a12fbb3c765ec0cb1c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 28, 2026.

Transparency log

Release history Release notifications | RSS feed

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

This release

0.3.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page