A server's CPU metrics have a daily cycle. You need to flag unusual spikes without flagging every afternoon peak. Which approach fits?
- Exam domain
- Data Analysis14% of the exam
- Difficulty
- Medium
- In this mock
- 7 questions on this domainPractise this domain
Why the exam asks this
Data Analysis (14% of the exam)
Objective in the exam guide: Detecting anomalies in a time-series dataset
Time-series anomaly detection leads the domain.
Why A is the answer
Remove the seasonal pattern, then flag large residuals
Decomposing the series into trend, seasonality and residual lets you flag points that are unusual for their time of day rather than high in absolute terms.
Remember: Detect anomalies on residuals after removing seasonality.
How it works
Time-series analysis decomposes trend and seasonality; anomalies are flagged on what remains.
In detail
- Remove seasonality first.
- Flag residuals beyond a threshold such as 3 standard deviations.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Remove the seasonal pattern, then flag large residualsRight
Detect anomalies on residuals after removing seasonality.
B. Sort values and flag the top 100Wrong
Top-N ignores timing.
C. A fixed threshold at the overall 95th percentile applied to every hour of every day in the seriesWrongMost tempting
A fixed threshold flags normal daily peaks.
Why it tempts: Percentile thresholds are simple and common.
D. Flag every value above the overall meanWrong
Half the data is above the mean.
Use case
An illustrative scenario, not a real incident.
Illustrative: residual-based flags catch a 3 a.m. spike that a fixed threshold misses.
See it in different ways
flowchart LR S0["Decompose series"] --> S1["Get residuals"] --> S2["Rolling mean and std"] --> S3["Flag beyond 3 std"] --> S4["Review"]
How to read this chart
- Read it in order: Decompose series, then Get residuals, then Rolling mean and std, then Flag beyond 3 std, then Review.
mindmap
root(("Time-series anomalies"))
n1["Statistical"]
n2["Rolling z-score"]
n3["Seasonal residuals"]
n4["ML"]
n5["Isolation forest"]
n6["Autoencoders"]
n7["Rules"]
n8["Thresholds"]How to read this chart
- The centre is "Time-series anomalies".
- "Statistical" covers "Rolling z-score", "Seasonal residuals".
- "ML" covers "Isolation forest", "Autoencoders".
- "Rules" covers "Thresholds".