1. Learn
  2. /
  3. Courses
  4. /
  5. Introduction to Anomaly Detection in R

Connected

Exercise

Interpreting Seasonal-Hybrid ESD output

The Seasonal-Hybrid ESD algorithm provides some useful output for understanding where the anomalies occur within the data.

In particular, the AnomalyDetectionVec() function generates output as a list with the two elements

  • $anoms, a data frame containing the columns index and anoms
  • $plot a plot of the time series with anomalies highlighted (if plot = T)

Instructions 1/2

undefined XP
    1
    2
  • Use the AnomalyDetectionVec() function to find either large or small anomalies in the river nitrate data assuming a period of 12 and set the plot flag to TRUE.
  • Assign the result to a new object named river_anomalies.