Skip to main content

Fast likelihood analysis in more dimensions for xenon TPCs

Project description

Flamedisx

Fast likelihood analysis in more dimensions for xenon TPCs.

Build Status

By Jelle Aalbers, Bart Pelssers, and Cristian Antochi

Description

Flamedisx aims to increase the practical number of dimensions (e.g. s1, s2, x, y, z and time) and parameters (g1, g2, recombination model coefficients, electron lifetime, ...) in LXe TPC likelihoods.

Traditionally, we evaluate (the probability density functions used in) our likelihoods using histograms created from high-statistics MC simulations. We precompute these histograms for several parameter combinations, then interpolate between them during inference ("vertical template morphing" in collider physics jargon). The precomputation time is exponential in the number of likelihood/histogram dimensions and the number of parameters used.

Flamedisx instead computes the probability density directly at each observed event, without using MC integration (or approximating the model). The commonly used LXe emission model is simple enough that the integral equivalent to an MC simulation can be computed with a few matrix multiplications, at a speed of a few ms -- instead of a high-statistics MC simulation that takes O(minute) or more.

This has several advantages:

  • Each event has its "private" detector model computation at the observed (x, y, z, time), so making the likelihood time- and position dependent incurs no additional computational burden.
  • The likelihood for a dataset takes O(seconds) to compute, so we can do this at each of optimizer's proposed points during inference. We thus remove the precomputation step exponential in the number of parameters -- and can thus fit a great deal more parameters.
  • Since the likelihood consists of deterministic matrix multiplications, it can be implemented in tensorflow. This enables automatic differentiation, which unlocks the gradient during minimizing, drastically reducing the number of needed interactions for a fit or profile likelihood.

Note this is under construction, so it probably has some bugs and little documentation.

0.2.2 / 2019-10-30

  • Minuit optimizer (#40)
  • Likelihood simulator (#43, #44)
  • Updates to NRSource (#40)

0.2.1 / 2019-10-24

  • Workaround for numerical errors (#38, #39)

0.2.0 / 2019-10-11

  • Spatially dependent rates (#27)
  • Time dependent energy spectra (#24)
  • XENON1T SR1-like model / fixes (#22, #32)
  • Switch optimizer to BFGS + Hessian (#19)
  • Multiple source support (#14)
  • Optimization (#13)
  • Bugfixes / refactor (#18, #20, #21, #28, #30, #31, #35)

0.1.2 / 2019-07-24

  • Speedup ER computation, add tutorial (#11)
  • Optimize lookup-axis1 (#10)

0.1.1 / 2019-07-21

  • 5x speedup for Hessian (#9)
  • Fix pip install

0.1.0 / 2019-07-16

  • Batching (#7)
  • Inference (#6)
  • Ported to tensorflow / GPU support (#1, #2, #3, #5)

0.0.1 / 2019-03-17

  • Initial numpy-based version

Project details


Download files

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

Source Distribution

flamedisx-0.2.2.tar.gz (29.4 kB view details)

Uploaded Source

File details

Details for the file flamedisx-0.2.2.tar.gz.

File metadata

  • Download URL: flamedisx-0.2.2.tar.gz
  • Upload date:
  • Size: 29.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.7

File hashes

Hashes for flamedisx-0.2.2.tar.gz
Algorithm Hash digest
SHA256 ce03b2eeaa9c1cab97e5b05f46b0d7f97b71f4dabed358e417d9e4408d96c4ec
MD5 1b53c9617ca8b1f0776e6ac6174010b2
BLAKE2b-256 7956350379f6cc1c51bc55355b4b5393c2eb3b61ab7affe934a65ffdc6a1ace7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page