Greg Stanley and Associates
 Home   About Us   Products   Services   Success Stories   Tech Resources   Contact Us 
HomeTech ResourcesFault DiagnosisFiltering > Moving Average >

The Simple Moving Average Filter

Filtering topics:


This page describes the simple moving average filter. This page is part of the section on
Filtering that is part of
A Guide to Fault Detection and Diagnosis..


The simple moving average filter averages recent values of the filter input for a given number of inputs. This is the most common example of the “moving average” (MA) category of filters, also called finite impulse response (FIR) filters. Each recent input is multiplied by a coefficient for all linear MA filters, and the coefficients are all the same for this simple moving average. The sum of the coefficients is 1.0, so that the output eventually matches the input when the input doesn’t change. Its output just depends on recent inputs, unlike the exponential filter that also reuses its previous output. The only parameter is the number of points in the average - the “window size”. 

Moving average step response

Like any MA filter, it completes a step response in a finite time depending on window size:


Moving Average Step Response


This simple moving average example above was based on 9 points. Under modest assumptions, it is providing the optimal (smoothing) estimate for a value at the midpoint of the time interval, in this case, 4.5 sample intervals in the past.

Copyright 2010 - 2013, Greg Stanley

Return to Filtering   Next: Least Squares Filter

Return to A Guide to Fault Detection and Diagnosis


Share this page: Share this page via LinkedIn... Bookmark or share this page on Delicious... Share this page by e-mailing link...    

 Home   About Us   Products   Services   Success Stories   Tech Resources   Contact Us 
Enter keywords to search this site:
Now operated by Performity LLC