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.3

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.3
File Size Uploaded
bvar-0.3.3.tar.gz 124.1 kB Details

Built distribution (wheel)

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

Total release size: 211.5 kB

Release files / bvar-0.3.3.tar.gz

Download URL bvar-0.3.3.tar.gz
Size 124.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8dbb42acb0e60e381da3929af27d4b6229622d9a881b292c44daebedae203a74
BLAKE2b-256 checksum
How to use checksums
c8d665cda073a76839dee6ff590b046fe5131898b3656024f1fb0cd17e115889
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 Sep 10, 2026.

Transparency log

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

Download URL bvar-0.3.3-py3-none-any.whl
Size 87.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
db3440dbf117f2bba545cd4d5962cce2121c94cd5e1f076f058abe19bbbe24ea
BLAKE2b-256 checksum
How to use checksums
0bfbf07979d40483d07ef72a6bb904f5f568cfd29f1d9f8e824383da00fedecf
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 Sep 10, 2026.

Transparency log

Release history Release notifications | RSS feed

0.3.5

2 release files

0.3.4

2 release files

This release

0.3.3 This release

2 release files

0.3.2

2 release files

0.3.1

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