Skip to content

Robustness to outliers #15

@Neverstop7

Description

@Neverstop7

Hello!
This is not a real issue but just a suggestion.
I have noticided that EnvCpt is not robust to outliers (see code below). It might be useful to have an additional argument in envcpt() to choose if to perform a robust changepoint analysis or not (See 'robust' argument in the stl() function of the stats R package).
Thank you!

without outlier
library(EnvCpt)
y = c(rnorm(50,100,sd = 5),rnorm(50,50,sd = 5))
out = envcpt(y)
which.min(BIC(out))
plot(out$meancpt,type="p")

with outlier
y[20]=200
out = envcpt(y)
which.min(BIC(out))
plot(out$meancpt,type="p")

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions