# 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 various external triggers, including electromagnetic (EM) bursts and neutrino bursts, is 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 external (ext) candidates. EM candidates 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_{ext}\) are the rate of the unique candidates given by all participating external signal detectors, \(\Delta t\) is the coincident time window of the GW-EXT signal, and \(I_{\Omega}\) is the sky map overlap integral outlined below.

## Targeted search method¶

In the targeted search method, we respond to external triggers found near the times of low-signifiance gravitational wave events. Because of this, sub-threshold external candidates should now dominate the rate compared to real detections. This means 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 external 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.