A Simple Moving Average

A moving average summarizes neighboring values over a selected window. It can reduce visible fluctuation and can also spread or delay abrupt changes.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Trace a trailing width
  2. Describe the boundary policy

Trace a trailing width

Values 2, 8, and 5 give width-two trailing averages 5 and 6.5 for the two full windows. Sliding windows let a program update that sum efficiently.

Describe the boundary policy

A first estimate can be omitted or calculated from a shorter window under separate rules. Show which when comparing the smoothed series with the original. Interval design describes which points enter each window.[1][2]

References

  1. Hadley Wickham, Tidy Data ↩
  2. Matplotlib Development Team, Plot Types ↩