Skip to main content

# asymp*T*otic l*I*kelihood-based T*ests* for da*R*k m*A*t*T*er s*E*arch [<img src=”https://anaconda.org/conda-forge/titrate/badges/version.svg”>](https://anaconda.org/conda-forge/titrate) <img src=”https://anaconda.org/conda-forge/titrate/badges/platforms.svg”> [<img src=”https://badge.fury.io/py/titrate.svg”>](https://pypi.org/project/titrate/)

This package is based on the paper [Asymptotic formulae for likelihood-based tests of new physics](https://arxiv.org/abs/1007.1727).

(your daily dose of [meme](https://i.imgflip.com/7v739g.jpg))

## Why does this package exist?

Well, I’m currently doing my PhD on dark matter search with Imaging Air Cherenkov Telescopes (IACTs) and during my research, I looked into a good share of DM papers… Turns out none of the ones I’ve read really explained how they are calculating their upper limits and most of them lack a good explanation for upper limit vs dark matter mass plots.

So to understand what’s going on I went back in time…on arxiv. I thought, for sure the CERN people will know this stuff since calculating upper limits is daily business for them. I quickly found the paper mentioned above and it only took me three months to understand it.

(╯°□°)╯︵ ┻━┻

What have I learned? 1. Statistical tests are difficult to understand 2. The decentralized $chi^2$-distribution is the final boss 3. A lot of researchers use a test statistic that is physically not meaningfull (signal strength can be smaller than zero) 4. A lot of researchers calculate the median upper limits and bands for the expected signal by using a bunch of toy MCs, which is not necessarily needed if asymptotics are valid

## What does this package offer?

  1. Adding Asimov datasets to gammapy :heavy_check_mark:

  2. Adding test statistics to gammapy :heavy_check_mark:

  3. Validation of test statistics :heavy_check_mark:

  4. Calculation of ULs :heavy_check_mark:

  5. Calculation of median ULs and bands with asymptotic formulae and asimov datasets (faster than toy MCs) :heavy_check_mark:

## Disclaimer This is not a finished version yet and can contain drastic changes

Metadata

Release files for titrate 0.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for titrate 0.5.1
File Size Uploaded Provenance
titrate-0.5.1.tar.gz 14.0 kB With provenance Details

Release files / titrate-0.5.1.tar.gz

Download URL titrate-0.5.1.tar.gz
Size 14.0 kB
Tags Source
SHA-256 checksum
How to use checksums
00886c3b205fda09c04ca1314f049a608d4eb71232ba7601f2886f28a7cfe816
BLAKE2b-256 checksum
How to use checksums
ee616e3f06d77c36fed65aff1756cdd7f1f43658861de25a70e7f3d571fe809d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.8

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 Jan 27, 2025.

Transparency log

Security for titrate 0.5.1

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.

Full provenance

All 1 file in this release has been uploaded with provenance metadata.

Attestation for titrate-0.5.1.tar.gz

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 Jan 27, 2025.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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