# Joint FAR calculation¶

One of the main methods to distinguish between a real or noise triggers of any candidate is to calculate the False Alarm Rate (FAR). The main motivation behind using the joint FAR between gravitational wave (GW) and electromagnetic (EM) triggers are to indicate which candidate should receive additional follow-up.

Given the information about the gravitational wave candidate and its associated astrophysical counterpart, the coincident false alarm rate \(FAR_{c}\) is calculated depending on the search method. Two search methods are:

## Untargeted search method¶

In the untargeted search method, we look for independent gravitational wave and electromagnetic wave (EM) candidates. GRBs of higher statistical significance are considered and GWs can be of very low significance. So, for the untargeted search analysis, the joint coincident FAR is

where \(FAR_{gw}\) is the false alarm rate of the GW candidate given by one of the GW pipelines such as GstLAL, MBTAOnline, PyCBC Live, SPIIR, or cWB. \(R_{grb}\) are the rate of the unique GRB candidates given by all participating EM signal detectors, \(\Delta t\) is the coincident time window of the GW-GRB signal, and \(I_{\Omega}\) is the sky map overlap integral outlined below.

## Targeted search method¶

In the targeted search method, we respond to GRB triggers coming from GRB experiments and look for gravitational wave events happened around that time. Because of this, we consider sub-threshold GRB candidates, which now should dominate the rate compared to real detections. Since the GRB candidates were searched for only around GW times making this a targeted search and the joint coincident FAR for this search method is calculated as

where Z is the joint ranking statistic defined as:

and the max Z value is calculated using the maximum GW and GRB FAR thresholds.

## Skymap overlap integral¶

In RAVEN, we have built functionality to use different skymap formats for the skymap overlap integral as first derived in Ashton et. al. (2018) :

Two methods to incorporate the skymap in calculating the skymap overlap integral (\(I_{\Omega}\)) are listed as follows:

### Hierarchical Equal Area isoLatitude Pixelization (HEALPix) method¶

In this method, the sky map overlap integral is calculated as

where \(N_{pix}\) is the number of pixels in a skymap.

### Multi-Ordered Coverage (MOC) method¶

In this method, we use RA and DEC of given pixel \(\Omega_{i}\) to match pixels of MOC skymaps and calculate the overlap integral as

where \(p(\Omega_{1}(i)| x_{a}, \mathcal{H}^s)\) is the normalized probability density such that \(\sum_{i}p(\Omega_{1}(i)| x_{a}, \mathcal{H}^s)\Delta A = 1.\)

The UNIQ ordering system has an advantage over the standard HEALPix system where equal-area pixels are used. MOC skymaps can increase resolution around the higher probability regions and vice versa, reducing file size. Moreover, we find using MOC skymaps gives the same result compared to the HEALPix method with much lower latency.