How to set a rolling average window for a plant-level weekly series

Row of parked semi trucks lined up in a rainy lot, shown in black and white.

Raw weekly counts bounce around for reasons that have nothing to do with the plant running harder or softer that week. A cold morning, a scheduled maintenance day, a supplier delay upstream, any of these can knock a week's vehicle count down without the underlying run rate moving at all. A rolling average turns that noise into something you can chart against a sector view, and how wide you set that window decides whether the chart catches a turn early or just looks smooth.

What a wider window buys you, and what it costs

A 4-week trailing average still lets through a lot of that one-off variation. A cold plant visit, a weather day, a short shutdown: each still shows up as a visible dip even though nothing structural changed. Widen the window to 8 or 13 weeks and those single-week events get absorbed into the average. But you pay for that smoothness in lag. A real slowdown that started six weeks ago won't show up clearly in a 13-week average until it's already well underway.

That's the trade, in full: every extra week of smoothing cuts false-positive noise and costs you detection speed on the turn itself. No window length gives you both at once.

Picking a window to match what you're trying to catch

If you're running sector rollups to compare against quarterly GDP or a monthly industrial production print, you have room to run wide. An 8 to 13 week window keeps the series clean enough to read on a chart without chasing single-week wobble, and you don't need week-to-week precision when the comparison point is a monthly or quarterly release anyway.

If the goal is catching a turn before it shows up in official data, which is usually the whole reason to run a weekly plant series instead of waiting on a release calendar, a shorter window does more for you. Something around 4 weeks, trailing, keeps the series closer to current plant conditions at the cost of more week-to-week movement in the line.

A workable approach a lot of analysts land on: run two windows side by side. A short one, 4 weeks, to catch the turn early. A longer one, 8 to 13 weeks, as the trend line that goes in the note. When the short window diverges from the long one for two or three weeks running, that's usually a real signal. A single week of divergence usually isn't.

Trailing versus centered, and why it matters as much as the length

A trailing average (this week plus the prior N-1 weeks) always lags the true turn by construction, no matter how short you set it. A centered average, which pulls in future weeks too, isn't usable in real time since you don't have next week's data yet. Most live monitoring work ends up trailing by necessity, which is one more argument for keeping the window short if lag matters more to you than a smooth line.

One plant-level detail worth flagging: holidays, scheduled maintenance, and severe weather don't distribute evenly across the calendar. A 4-week window run in late December behaves differently than the same window run in June, purely because of what's sitting inside it. If you're comparing windows across plants or across a sector rollup, it's worth checking what each window contains before reading too much into a single comparison.

None of this gets settled by a formula. It's a judgment call between how much false-positive tolerance you have and how fast you need to know about a turn, and a monthly sector note calls for a different answer than trying to front-run a release.

If you're assembling this kind of series from scratch and want the underlying weekly vehicle counts and thermal signal to work with rather than reconstructing them yourself, that's the gap Industrial Index fills: a plant-level weekly series delivered as CSV, ready to smooth however your workflow requires.

Start with the raw weekly number before you smooth anything, though. Pick the window after you've looked at what the noise looks like at your plants, not before.

Start a pilot

Back to the blog