Tools › Statistics › Forecasting › Daily Seasonality and Anomalies › Example
Web visits with a weekend dip: a weekday pattern, and an outage day 78 % below its expected value
| Tool | Daily Seasonality and Anomalies |
| Source | original |
| Level | Undergraduate |
Problem
A site logs its daily visits for 26 weeks (182 days from Monday, January 5, 2026). Find the weekday pattern, the days that differ from it by more than 3.5 robust standard deviations, and how many such days noise alone would give.
Inputs to Enter
- Daily rows: the 182 seeded illustrative rows of the tool's default case (date, visits), 2026-01-05 to 2026-07-05
- Multiplicative model; 28-day centered moving median; flag limit 3.5 robust standard deviations (the figure the NIST e-Handbook quotes from Iglewicz and Hoaglin)
Answers
- Weekday indices: Monday 1.125, Tuesday 1.168 (95 % interval 1.155 to 1.202), Wednesday 1.130, Thursday 1.100, Friday 1.020, Saturday 0.695 (0.682 to 0.708), Sunday 0.761
- Robust scale s = 1.4826 × MAD = 1.4826 × 0.02348 = 0.0348, that is 3.48 % (3.5 % was built into the data)
- April 15, a Wednesday: trend 4,338.8, typical Wednesday ÷ trend 1.1291, expected 4,338.8 × 1.1291 = 4,898.9; residual 1,088 ÷ 4,898.9 − 1 = −0.7779; robust z = −0.7779 ÷ 0.0348 = −22.35
- May 21, a Thursday: 7,100 against 4,973.1 expected, +42.8 %, robust z = +12.29
- Flagged: 2 of 182 days. By chance for normal residuals: 182 × 2 × (1 − Φ(3.5)) = 182 × 0.000465 = 0.08; in 100 seeded records of pure noise put through the same fit: 0.41 on average
Notes
Open this case in the tool: /analysis-tools/statistics/forecasting/daily-seasonality-anomalies/?try=web-outage-day . The series is synthetic (seeded) and illustrative. A flag says the day differs from the fitted pattern; it does not say why.
More Examples for This Tool
- Retail sales with holidays entered as special dates: Black Friday at 2.5 times an ordinary Friday
- A launch that lifts the level by 32 %: found as a change of level, not as flagged days
- A metric with no weekday pattern at a limit of 2: 12 flagged days, and 13 expected from noise alone
- Two years of daily orders: a summer slump with July 19 % under the long-run line, and growth of 10 % a year