The purpose of this vignette is to present the calculations of the
costs for the univariate Poisson distribution.
Each time step
belongs to group
whose time stamps are the set
.
A group can have a multiplicative rate anomaly
which is common for
.
Assuming the {} known rate
the data generating distribution gives for
The cost is computed as twice the negative log likelhiood plus a
penalty term
giving
No Anomaly (Baseline)
In this case
and there is no penalty so
Anomaly in Rate
An estimate
of
can be selected to minimise the cost by taking
An anomaly will be accepted whenever
Rearranging this expression in terms of
,
the expected number of counts if the period was not anomalous gives
This form suggests the selection of
based on a minimum change in
away from 1 causing at least a certain change from the expected number
of counts. The figure below show
.
Using this we could select
to ensure a change in in lambda of 10%, which combined with a desire to
detect only changes of 50 units would result in