Skip to contents

Computes and appends a new column `Ppois` to the processed anomaly dataframe, representing the Poisson-tail probability \(P(n \ge N_{\rm anom})\) using the current estimated rate \(\lambda_a\) from `updated_stat`.

Usage

add_Ppois(proc, updated_stat)

Arguments

proc

A dataframe from the pipeline output containing `N_anom` per cluster.

updated_stat

A list containing `stats$lambda_a`, typically returned from `update_stat()` or `update_logic()`.

Value

The input dataframe `proc` with an added `Ppois` column.