Phone: +1 (888) 427-9486
+1 (312) 324-0367
Fax: +1 (312) 238-9092
Contact Us
EWMA
| Attachment | Size | |
|---|---|---|
| EWMA.xlsx |
Calculates the estimated value of the exponential-weighted volatility (EWV).
Syntax
X
is the univariate time series data (a one dimensional array of cells (e.g. rows or columns)).
Order
is the time order of the data series (i.e. whether the first data point corresponds to the earliest or latest date (earliest date=1 (default), latest date=0)).
| Order | Description |
|---|---|
| 1 | ascending (the first data point corresponds to the earliest date) |
| 0 | descending (the first data point corresponds to the latest date) |
Lambda
is the smoothing parameter used for the exponential-weighting scheme. If missing, a default value of 0.94 is assumed.
T
is the forecast time/horizon (expressed in terms of steps beyond the end of the time series X). If missing, a default value of 1 is assumed.
Remarks
- The time series is homogeneous or equally spaced.
- The time series may include missing values (e.g. #N/A) at either end.
- The EWMA function assumes that the time series has an average equal to zero.
- The exponential-weighted moving average is calculated as:
![\[ \sigma_t^2=\lambda \sigma_{t-1}^2+(1-\lambda)x_{t-1}^2 \]](/sites/all/files/tex/c4b7c652e98f499ddb8d5a5864bf2f4dec33aaa2.png)
Where:
-
is the value of the time series value at time t.
-
is the smoothing parameter (i.e. a non-negative constant between 0 and 1).
-
- The size of the EWMA time series is equal to the input time series, but with the first observation (or last, if the original series is reversed) set to missing (i.e. #N/A).
Examples
Example 1:
See the attached spreadsheet file

The plot of the EWMA with the original data is shown below:

References
- Hull, John C.; Options, Futures and Other Derivatives
Financial Times/ Prentice Hall (2003),pp 372-374, ISBN 1-405-886145 - Hamilton, J .D.; Time Series Analysis
, Princeton University Press (1994), ISBN 0-691-04289-6 - Tsay, Ruey S.; Analysis of Financial Time Series
John Wiley & SONS. (2005), ISBN 0-471-690740
