Skip to main content

'A fast profiling tool for likelihood-based statistical analyses'

Project description

fastprof: A fast profiling tool for likelihood-based statistical analyses

Presentation

The tool is intended to provide a simple way to reuse, reinterpret and combine public likelihoods, in particular the ones used in high-energy physics experiments. It implements a simplified likelihood format, *Simplified Likelihoods with Linearized Systematics (SLLS), which provides good approximations to full likelihoods, but is faster to evaluate.

The SLLS format is similar to the HistFactory format implemented for instance in pyhf: it defines measurement bins with yields expressed in terms of model parameters that be be either parameters of interest (POIs) or nuisance parameters (NPs). The simplification occurs in the treatment of the NPs, which are considered at linear order only. This in turns provides a simple way to maximize the likelihood with respect to the NPs using matrix algebra, which is typically much faster than the maximization of the full likelihood.

SLLS models are intended to be used to perform statistical inference using classical frequentist techniques: computing p-values, discovery significances and confidence intervals, and setting limits on new phenomena. Along with the likelihood itself, the package includes a set of frequentist statistical tools, based on the techniques described in arXiv:1007.1727

The tool is written in python, with most of the work done by numpy, and models are stored in JSON or YAML markup files. Models implemented within pyhf or roofit can be automatically converted to the SLLS format using tools provided in the package.

Setup

The package can be set up as follows:

git clone ssh://git@gitlab.cern.ch:7999/nberger/fastprof.git
cd fastprof
git checkout v0.4.1 -b v0.4.1
source ./setup-env.sh

This sets up the latest stable version,v0.4.1. (skipping this line sets up the latest master version instead, but this is not recommended). The last command sets up a python3 pyenv working environment.

Alternatively, the package can be installed directly using

pip install fastprof

Documentation

Detailed documentation can be found in the package itself in build/sphinx/html, or on the documentation website. SLLS likelihoods and examples of their use are described in detail in arXiv:2301.05676.

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

fastprof-0.4.1.tar.gz (150.7 kB view details)

Uploaded Source

File details

Details for the file fastprof-0.4.1.tar.gz.

File metadata

  • Download URL: fastprof-0.4.1.tar.gz
  • Upload date:
  • Size: 150.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for fastprof-0.4.1.tar.gz
Algorithm Hash digest
SHA256 357e1bdfdc3ee829e6657166a8a545b6dc558a1b4e03450122608dc8bafc2d5e
MD5 237418bbc8cd97d513ce5b0985172ff0
BLAKE2b-256 547ca9ac914f021af8de44d0f4a4383c2cbd7b1d60732fe1376c6638814a0cfd

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