Hey Elementary Team,
Thank you for taking the time to make all the features that are available in this open-source package. Saves people like a me a lot of time when wanting to test data quality.
My only question/comment/concern is this:
I feel that the detection method for anomalies isn’t quite aligned with how Z scores/t scores are used. The training period should be isolated from the detection period to calculate the sample mean (assumed population mean) otherwise if we include the data point being tested in the mean calculation then the Z score will definitely be skewed by the new test data point.
For example, if I’m trying to perform a volume anomaly test for a table that I know receive a single monthly manual upload, I would calculate an average of the previous X months worth of data (I’m assuming they were successfully uploaded). Then for the upcoming month I would want to test if this new volume data point statistically belongs to that “population” of successfully uploaded table volumes. Including the new data point in the sample mean calculation doesn’t seem to make sense as it could damper the Z score which might not be caught with the default anomaly_sensitivity.
Just thought I’d bring this up and if I’m totally wrong I would love to learn where my assumptions/understandings are wrong. Thanks Elementary!