Skip to content
Bayesian analysis toolkit
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

BAT - Bayesian Analysis Toolkit

Build Status Manual License: LGPL v3 DOI

The Bayesian Analysis Toolkit is a software analysis package which allows to address the main goals of a typical data analysis:

  • compare model predictions with data,
  • draw conclusions on the validity of the model as a representation of the data and
  • extract the possible values of parameters within the context of a model.

The BAT is based on Bayes' Theorem and is realized with the use of Markov Chain Monte Carlo. This gives access to the full posterior probability distribution and enables straightforward parameter estimation, limit setting and uncertainty propagation.

The BAT is implemented in C++ on top of CERN's ROOT with emphasis put on flexibility and modularity in defining models while keeping in mind the reliability and speed requirements of the numerical operations.


See doc/CREDITS file for list of contributors to BAT.


The latest code and official BAT releases are published online at Older BAT releases are still available from BAT is open-source software under the LGPLv3 or later. See doc/COPYING and doc/LICENSE for licensing details.


For installation instructions, see the file or the corresponding manual section

manual: html, pdf

reference guide: html


For additional information and contacting the authors, please consult the BAT web page at If you want to report an error or file a request, please file an issue at


Directory bat/:

  • doc/: documentation about BAT
  • examples/: well commented example programs, see examples/
  • BAT/: BAT header files
  • src/: source files of the BAT core library
  • models: models for specific data-analysis problems: fast fitters in base/ and the multi-template fitter in mtf
  • benchmarks: performance test suite with html output
  • test: unit tests
  • tools: template script to generate a BAT project and build utilities

Other files distributed with BAT are part of the configuration and build system.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.