ewmaSmooth.Rd
Compute Exponential Weighted Moving Average.
ewmaSmooth(x, y, lambda = 0.2, start, ...)
a vector of x-values.
a vector of y-values.
the smoothing parameter.
the starting value.
additional arguments (currently not used).
EWMA function smooths a series of data based on a moving average with weights which decay exponentially.
For each \(y_t\) value the smoothed value is computed as $$z_t = \lambda y_t + (1-\lambda) z_{t-1}$$ where \(0 \le \lambda \le 1\) is the parameter which controls the weights applied.
Returns a list with elements:
ordered x-values
smoothed y-values
the smoothing parameter
the starting value
Montgomery, D.C. (2013) Introduction to Statistical Quality Control, 7th ed. New York: John Wiley & Sons.
Wetherill, G.B. and Brown, D.W. (1991) Statistical Process Control. New York: Chapman & Hall.