alea
alea is a flexible statistical inference framework. The Python package is designed for constructing, handling, and fitting statistical models, computing confidence intervals and conducting sensitivity studies. It is primarily developed for the XENONnT dark matter experiment, but can be used for any statistical inference problem.
Alea aims to model the statistical behaviour of an experiment, which again depends on your knowledge of the underlying physics-- this can range from the very simple, such as measuring a gaussian-distributed random variable, to complex likelihoods where each model component is created by physics simulations (GEANT4), fast detector simulations (for example appletree for XENONnT) or a data-driven method.
If you use alea in your research, please consider citing the software published on zenodo.
Installation
You can install alea from PyPI using pip but beware that it is listed there as alea-inference! Thus, you need to run
pip install alea-inference
For the latest version, you can install directly from the GitHub repository by cloning the repository and running
cd alea
pip install .
You are now ready to use alea!
Getting started
The best way to get started is to check out the documentation and have a look at our tutorial notebooks. To explore the notebooks interactively, you can use Binder.
Acknowledgements
alea is a public package inherited the spirits of previously private XENON likelihood definition and inference construction code binference that based on the blueice repo https://github.com/JelleAalbers/blueice.
Binference was developed for XENON1T WIMP searches by Knut Dundas Morå, and for the first XENONnT results by Robert Hammann, Knut Dundas Morå and Tim Wolf.
Metadata
Release files for alea-inference 0.3.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| alea_inference-0.3.5.tar.gz | 531.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| alea_inference-0.3.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.1 MB
Release files / alea_inference-0.3.5.tar.gz
| Download URL | alea_inference-0.3.5.tar.gz |
|---|---|
| Size | 531.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2b87e8860b615073b0793ad3f4b5145ee0c20619d779ced60c5848dc26f15a34
|
|
BLAKE2b-256 checksum How to use checksums |
cbf518146237465c86801924237d0f08ce598e2e66649f0f0c1ea52bb09dcca6
|
| 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 Mar 2, 2026.
Transparency logRelease files / alea_inference-0.3.5-py3-none-any.whl
| Download URL | alea_inference-0.3.5-py3-none-any.whl |
|---|---|
| Size | 564.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
715753858789351814cf43000b6c28a8aa92753fefa50d2cd57a1cae92419a40
|
|
BLAKE2b-256 checksum How to use checksums |
6022331be74b885f08fe068c5904d466c67e9c3326215447ae0147a64857aa19
|
| 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 Mar 2, 2026.
Transparency log