How to use the moving average calculator
Compute the simple moving average of the latest values. Enter data values, window size in the fields above; the latest moving average, overall mean are computed instantly and plotted on the chart so you can see how the answer changes.
Formula
Variables
- d β Data values
- k β Window size
Worked example
With data values = 3,5,7,6,8,10,12,11, window size = 3, the calculator gives latest moving average β 11; overall mean β 7.75.
Frequently asked questions
What is the formula for the moving average calculation?
Latest moving average = mean(d.slice(-k)). Overall mean = mean(d). Here d is data values, k is window size.
What inputs do I need for the moving average calculator?
You need data values, window size. Each field is pre-filled with a typical example so you can see how the result responds as you edit the numbers.
How do I use this calculator?
Type values into the input fields. Results and the chart update instantly. Use Reset to restore the example values, Copy results to paste them elsewhere, or Share to copy a link that preserves your inputs.
Is the result exact?
Calculations use standard formulas and double-precision arithmetic, then display about seven significant figures. Real-world measurements carry uncertainty, so treat results as estimates unless your inputs are exact.