[Paper Review] A high-level analysis framework for HAWC
This paper presents LiFF, a modular, model-centric likelihood framework for high-energy gamma-ray analysis at the HAWC Observatory. It enables high-precision, binned Poisson log-likelihood calculations using Healpix sky binning, supports joint fitting with other observatories via 3ML compatibility, and allows optimization of both physics models (e.g., source position, spectrum) and detector response parameters (e.g., angular resolution) through maximum likelihood estimation, significantly enhancing statistical analysis of HAWC's large, multi-dimensional data sets.
The High Altitude Water Cherenkov (HAWC) Observatory continuously observes gamma-rays between 100 GeV to 100 TeV in an instantaneous field of view of about 2 steradians above the array. The large amount of raw data, the importance of small number statistics, the large dynamic range of gamma-ray signals in time (1 - $10^8$ sec) and angular extent (0.1 - 100 degrees), and the growing need to directly compare results from different observatories pose some special challenges for the analysis of HAWC data. To address these needs, we have designed and implemented a modular analysis framework based on the method of maximum likelihood. The framework facilitates the calculation of a binned Poisson Log-likelihood value for a given physics model (i.e., source model), data set, and detector response. The parameters of the physics model (sky position, spectrum, angular extent, etc.) can be optimized through a likelihood maximization routine to obtain a best match to the data. In a similar way, the parameters of the detector response (absolute pointing, angular resolution, etc.) can be optimized using a well-known source such as the Crab Nebula. The framework was designed concurrently with the Multi-Mission Maximum Likelihood (3ML) architecture, and allows for the definition of a general collection of sources with individually varying spectral and spatial morphologies. Compatibility with the 3ML architecture allows to easily perform powerful joint fits with other observatories. In this contribution, we overview the design and capabilities of the HAWC analysis framework, stressing the overarching design points that have applicability to other astronomical and cosmic-ray observatories.
Motivation & Objective
- To address the challenges of analyzing HAWC's large, high-dynamic-range, low-statistics gamma-ray data with complex time and angular dependencies.
- To develop a flexible, modular software framework that decouples physics modeling from data handling and detector response.
- To enable direct optimization of detector response parameters (e.g., point spread function) using known sources like the Crab Nebula.
- To ensure compatibility with the 3ML architecture for joint likelihood fitting across multiple instruments, such as HAWC and Fermi/LAT.
- To standardize statistical analysis through a model-centric interface, allowing users to focus on physics hypotheses while the framework handles likelihood computation and minimization.
Proposed method
- The framework uses a binned Poisson log-likelihood formalism: $\ln\mathcal{L} = \sum_{i} \left( N_{\text{obs},i} \ln N_{\text{exp},i} - N_{\text{exp},i} - \ln(N_{\text{obs},i}!) \right) $, where $N_{\text{exp},i}$ is the expected number of events in bin $i$.
- Data is binned on the sky using Healpix tessellation, with additional dimensions for event quality and energy metrics, enabling efficient storage and processing of up to ~$10^8$ bins.
- The physics model is defined by user-specified parameters (e.g., source position, spectral index, angular extent), which are optimized via likelihood maximization.
- The detector response is modeled using TH1 histograms derived from simulations, with energy-dependent reweighting to adapt to different source spectra without full re-simulation.
- A nested minimization loop is implemented: inner loop optimizes nuisance parameters (e.g., background levels), outer loop optimizes physics model parameters, enabling profile likelihood estimation.
- The framework is fully compatible with the 3ML architecture, allowing seamless integration and joint likelihood fitting with data from other observatories such as Fermi/LAT.
Experimental results
Research questions
- RQ1How can a high-level, modular framework efficiently handle the high dynamic range and low-statistics nature of HAWC's gamma-ray data across diverse time and angular scales?
- RQ2What is the optimal way to parameterize and jointly fit both physics models (source parameters) and detector response models (e.g., angular resolution) using likelihood methods?
- RQ3How can a standardized, model-centric interface simplify the development of complex statistical analyses without requiring low-level data or response code?
- RQ4To what extent can detector response parameters be directly constrained from data using well-known sources like the Crab Nebula?
- RQ5How can the framework enable robust, multi-instrument joint likelihood fits with other observatories through compatibility with the 3ML architecture?
Key findings
- The LiFF framework successfully enables high-precision likelihood-based analysis of HAWC event-level data using a binned Poisson log-likelihood formalism, with computational efficiency achieved through Healpix binning and optimized data handling.
- The framework supports the direct optimization of detector response parameters—such as the point spread function—by fitting to known sources like the Crab Nebula, improving calibration accuracy without relying solely on simulations.
- By using reweighting of pre-computed energy response histograms, the framework achieves significant computational savings when testing different source spectra, maintaining accuracy as long as the tested spectrum is not drastically different from the reference.
- The implementation of nested minimization loops allows for profile likelihood estimation, which is essential for robust statistical inference and for enabling joint likelihood fits with external instruments.
- Full compatibility with the 3ML architecture enables seamless joint fitting of HAWC data with data from other observatories, such as Fermi/LAT, significantly enhancing multi-wavelength and multi-messenger analysis capabilities.
- The model-centric design allows users to focus on physics hypotheses while the framework transparently manages data binning, detector response, likelihood calculation, and parameter optimization.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.