A library for Bayesian econometrics
Welcome to the official Alexandria website. Alexandria is a toolbox dedicated to Bayesian time-series econometrics models, developed jointly in Python and Matlab.
On this website you will find an overview of the toolbox, along with links to download the software and its manuals for free.
Romain Legrand
Skilled economist, econometrician, quantitative researcher and data scientist with a passion for modelling and quantitative methods. Creator, developer and owner of Alexandria.
I hold a PhD in economics from Cergy Paris University (2014) and a Master's degree in Big Data from Telecom Paris (2020). I have worked as an economist and econometrician for the European Central Bank during four years (2014–2018). There I developed the BEAR toolbox, which is the Matlab ancestor of Alexandria. I now work as a quantitative researcher for Qube Research and Technologies, one of the most successful hedge funds in France.
For more information, you can download my resume or visit my LinkedIn page.
Getting started
Install Alexandria and run your first Bayesian VAR in a few lines of Python.
# Python install:
pip install alexandria-python
# Then (simple Bayesian VAR with normal-Wishart prior):
from alexandria import NormalWishartBayesianVar
from alexandria import DataSets
from alexandria import Graphics
# load ISLM dataset
ds = DataSets()
islm_data = ds.load_islm()[:, :4]
# create and train Bayesian VAR with default settings
var = NormalWishartBayesianVar(endogenous=islm_data)
var.estimate()
# estimate and plot forecasts for the next 4 periods, 60% credibility level
forecast_estimates = var.forecast(4, 0.6)
gp = Graphics(var)
gp.forecast_graphics(show=True, save=False)
Downloads
The latest release of Alexandria, Python and Matlab editions, plus the full manuals.
Toolbox
The local installs for the latest release of Alexandria, Python and Matlab editions, as zip files. You can also download these files from the Github repo of the toolbox.
Contact
You can contact me with the form below, or directly by sending an email to alexandria.toolbox@gmail.com.
Alexandria V 3.0 — Python edition
Bayesian time-series econometrics — Book 1: theory
Bayesian time-series econometrics — Book 2: algebraic derivations
Bayesian time-series econometrics — Book 3: mathematical background
Alexandria — User Guide



