Skip to main content

blueice: Build Likelihoods Using Efficient Interpolations and monte-Carlo generated Events

https://github.com/JelleAalbers/blueice/actions/workflows/pytest.yml/badge.svg?branch=master https://coveralls.io/repos/github/JelleAalbers/blueice/badge.svg?branch=master Documentation Status https://zenodo.org/badge/65375508.svg

Source code: https://github.com/JelleAalbers/blueice

Documentation: http://blueice.readthedocs.io/en/latest/index.html

About

This package allows you to do parametric inference using likelihood functions, in particular likelihoods derived from Monte-Carlo or calibration sources.

Especially when connected to a Monte Carlo, blueice lets you make likelihood functions which measure agreement between data and theory with flexibility: you choose which settings to vary (which parameters the likelihood functions has) and in which space the agreement is measured.

This package contains only generic code: you’ll need a few things to make it useful for a particular experiment. Originally this code was developed for XENON1T only; the XENON1T models have since been split off to the laidbax repository. XENONnT is still developing alea which is based on blueice.

Contributors

  • Jelle Aalbers

  • Knut Dundas Moraa

  • Bart Pelssers

1.2.2 (2026/8/13)

  • Cubic PChip interpolation by @Ananthu-Ravindran (#49)

  • Brentq argument passing fix (#50)

1.2.1 (2024/12/11)

1.2.0 (2024/01/13)

  • Prevent negative rates being passed to Barlow-Beeston equation, and allow per-event weights (#32)

  • Add likelihood that takes coupling as shape parameters (#34)

  • Patch for tests (#37)

  • Use scipy stats for PoissonLL (#40)

  • Do not scale mus when livetime_days is 0 (#41)

1.1.0 (2021/01/07)

  • Likelihood sum wrapper (#17)

  • emcee bestfit and multicore precomputation (#18)

  • LogAncillaryLikelihood for constraint terms (#19)

  • HistogramPDFSource simulation, order shape parameter dict (#20)

  • Efficiency shape parameter, LogLikelihoodSum enhancements (#23)

  • Use scipy as default optimizer (#24)

  • Minuit support for bounds and errors (#26, #27)

  • Per-source efficiencies, weighted LogLikelihoodSum (#28)

  • Use atomicwrites for cache to prevent race conditions (#30)

1.0.0 (2016/10/01)

  • Binned likelihoods (#7)

  • Argument validation for LogLikelihood function (#8)

  • Automatic handling of statistical uncertainty due to finite MC/calibration statistics (#9): * Adjustment of expected counts per bin using Beeston-Barlow method for one source * Generalized to multiple sources, but only one with finite statistics. * Only for binned likelihoods.

  • iminuit integration, use as default minimizer if installed (#10, #13)

  • compute_pdf option to do full likelihood model computation on the fly (#11)

  • HistogramPDF to provide just histogram lookup/interpolation from DensityEstimatingSource (#12)

  • inference functions -> LogLikelihood methods

  • Most-used functions/classes available under blueice (blueice.Source, blueice.UnbinnedLogLikelihood, …)

  • compute_pdf auto-called, consistent handling of events_per_day

  • Start of documentation, readthedocs integration

0.4.0 (2016/08/22)

  • Big internal refactor, some API changes (#5)

  • DensityEstimatingSource

  • Bugfixes, more tests

0.3.0 (2016/08/21)

  • Renamed to blueice, XENON stuff renamed to laidbax

  • Experimental radial template morphing (#4)

  • Tests, several bugfixes (e.g. #3)

  • Rate parameters are now rate multipliers

  • Linear interpolation of density estimator

  • Parallel model initialization

0.2.0 (2016/07/31)

  • Complete makeover centered around LogLikelihood function

  • Separation of XENON stuff and general code

  • PDF caching

  • Example notebooks

0.1.0 (2016/07/14)

  • First release in separate repository

  • Model and Source, pdf sampling.

0.0.1 (2015/12/18)

  • First release in XeAnalysisScripts

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

blueice-1.2.2.tar.gz (45.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

blueice-1.2.2-py3-none-any.whl (40.5 kB view details)

Uploaded Python 3

File details

Details for the file blueice-1.2.2.tar.gz.

File metadata

  • Download URL: blueice-1.2.2.tar.gz
  • Upload date:
  • Size: 45.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for blueice-1.2.2.tar.gz
Algorithm Hash digest
SHA256 03502b42063992815ad34851307985ebf0468888aa8d0ffd426ddd07081b2d51
MD5 16496a1f4da1436560452ae99c8caf85
BLAKE2b-256 14dd224b34217d5b1b9e4ced6eed31ece0f0ec5f7dd03baba0a00e77f06c2f85

See more details on using hashes here.

Provenance

The following attestation bundles were made for blueice-1.2.2.tar.gz:

Publisher: pypi_install.yml on JelleAalbers/blueice

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file blueice-1.2.2-py3-none-any.whl.

File metadata

  • Download URL: blueice-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 40.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for blueice-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 abc725c7bbafc77cb0adeb9a40d5f6092636d68d6a9e70c125357f758fb27486
MD5 1d3736d26d77c4c890e904c7d0f5e189
BLAKE2b-256 7f3bfb7fd55befbed4218f9c53218f27051e3bb1bb8de919ac0c1c6c2a5ae23f

See more details on using hashes here.

Provenance

The following attestation bundles were made for blueice-1.2.2-py3-none-any.whl:

Publisher: pypi_install.yml on JelleAalbers/blueice

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

1.2.2 This release

2 files

1.2.1

2 files

1.2.0

2 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