liveBook · Manning

Local averaging

As explained in Statistics Every Programmer Needs

A moving average represents a time-series value or forecast using averages of observations in a moving time window.

Local averaging represents a time-series value or forecast by averaging observations within a moving time window. It reduces short-term noise so that trends and recurring patterns are easier to inspect, especially in applications such as stock prices, economic indicators, patient measurements, and web traffic. section 7.1

Use local averaging as a descriptive or forecasting baseline, then compare it with methods that model temporal structure more explicitly. Exponential smoothing emphasizes level, trend, and seasonality, while ARIMA combines autoregression, differencing, and moving-average terms for more complex dependencies. section 7.1 section 7.3

Apply the technique with basic forecasting discipline:

  • Separate historical observations into training and testing data before judging forecast accuracy. section 7.3.7
  • Inspect trends, seasonality, autocorrelation, and stationarity before deciding whether simple averaging is appropriate. section 7.1 section 7.3.7
  • Treat smooth, gradual changes as a possible case for smoothing methods, but validate results against held-out observations. section 7.3.11 section 7.3.7

How Statistics Every Programmer Needs covers it

How deep it goes
Defines the smoothing role and forecasting context but stops short of specifying a window formula, implementation, or parameter-selection procedure.
Examples
Uses stock closing prices, economic indicators, patient vital signs, web traffic, and train-test forecasting of Apple prices as examples.
What it assumes
Assumes basic time-series data while introducing trends, seasonality, autocorrelation, stationarity, and training-test evaluation.
What you can do after
Evaluate whether smoothing is suitable by examining time-series structure and comparing forecasts with held-out observations.
How it connects
Connects local averaging with time-series forecasting, exponential smoothing, ARIMA, trends, seasonality, autocorrelation, and stationarity.

Also explained in

Compare how 7 books explain local averaging →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Statistics Every Programmer Needs. The section links point to the parts of the book it draws on.