Skip to contents

Computes the joint significance probability \(\mathbb{P}_0 = P_{\text{Pois}} \cdot P_{\text{Exp}}\) for each anomalous cluster. This is only computed for rows with `anomaly == 1`.

Usage

add_P0(proc)

Arguments

proc

A dataframe with `Ppois`, `Pexp`, and `anomaly` columns.

Value

The input dataframe with an added `P0` column.

Details

After computation, the rowwise structure is removed to avoid unintended behavior in subsequent operations.