Skip to content

Use signed residual scores for STL spikes and dips - #961

Open
cuteNBD (bingdongni) wants to merge 1 commit into
microsoft:mainfrom
bingdongni:fix/stl-residual-directions
Open

cuteNBD (bingdongni) wants to merge 1 commit into
microsoft:mainfrom
bingdongni:fix/stl-residual-directions

Conversation

@bingdongni

Copy link
Copy Markdown

The STL residual score already carries the direction of the deviation. The initial analysis only checked the positive tail and then used the seasonal component to choose between a spike and a dip. Reapplying the same threshold through the pandas accessor could therefore change the flags without changing any scores.

Use the same signed-score thresholds in both paths. On the existing hourly TotalBytesSent fixture, the three spikes are preserved and five dips at or below −3 are now visible on the initial analysis. The tests check both counts and that reapplying the threshold leaves the flags unchanged. Linux test run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant