Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENH] Specialised preprocessing techniques for change and anomaly detection #28

Open
Tveten opened this issue Nov 15, 2024 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Tveten
Copy link
Collaborator

Tveten commented Nov 15, 2024

Most methods in skchange require the data to be preprocessed in order for default hyperparameter settings to be appropriate. The package should come with a few standard preprocessing techniques to be more easily applied correctly. Suggestions:

  • Centering by the median and scaling by the median absolute deviation of the data. This is a common preprocessing technique for anomaly detection.
  • Centering by the median and scaling by 1/sqrt(2) times the median absolute deviation of the differenced data. This is a common preprocessing technique for changepoint detection. Rationale: For data that are iid within each segment, $Var[x_t - x_{t-1}] = Var[x_t] + Var[x_{t-1}] = 2Var[X_t]$. Thus, $Var[X_t] = Var[x_t - x_{t-1}]/2$. In the differenced data, the chanepoints will appear as outliers, so the variance/std should be estimated robustly, e.g. by the median absolute deviation.
@Tveten Tveten added enhancement New feature or request help wanted Extra attention is needed labels Dec 4, 2024
@Tveten Tveten changed the title Specialised preprocessing techniques for change and anomaly detection [ENH] Specialised preprocessing techniques for change and anomaly detection Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant