Trailing moving average
Calculate a trailing moving average and previous-value differences in an ordered series.
The example value has been entered. Check it immediately or change the value.
Input is processed in the browser. Refreshing returns a sample value.
Instructions and example
MAᵢ=Σ(last w values)/w
With window 3, the initial complete average is 11 and the final average is about 15.6667.
Use 1–1000 samples and an integer window no larger than the sample count; not a forecast.
Frequently asked questions
Why are initial moving-average cells empty?
No average is shown until the chosen window is full. A smaller temporary window is not substituted.
Does the moving average predict future values?
No. It smooths current and past inputs. Previous-value differences compare actual neighboring inputs.
Calculation criteria and reference materials
- NIST: Single Moving Average
MAᵢ=Σ(last w values)/w
Verification of calculation criteria: · Calculation·verification principles · Report errors