Phone: +1 (888) 427-9486
+1 (312) 324-0367
Fax: +1 (312) 238-9092
Contact Us
EWXCF (Pro.)
Computes the correlation factor using the exponential-weighted correlation function (i.e. using the exponential-weighted covariance (EWCOV) and volatility (EWMAi/EWV) method).
Syntax
X
is the first univariate time series data (a one dimensional array of cells (e.g. rows or columns)).
Y
is the second univariate time series data (a one dimensional array of cells (e.g. rows or columns)).
Order
is the time order in 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) (default) |
| 0 | descending (the first data point corresponds to the latest date) |
Lambda
is the smoothing parameter used for the exponential-weighting scheme. If missing, the 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, the default value of 1 is assumed.
Remarks
- The time series is homogeneous or equally spaced.
- The two time series must have identical size and time order.
- The correlation is defined as:
![\[ \rho^{(xy)}_t=\frac{\sigma_t^{(xy)}}{{_x\sigma_t}\times{_y\sigma_t}} \]](/sites/all/files/tex/71a14be3008eb8e00841e2e8a11236eb2a7f13f4.png)
![\[ \sigma_t^{(xy)} = \lambda\sigma_{t-1}^{(xy)}+(1-\lambda)x_{t-1}y_{t-1} \]](/sites/all/files/tex/1f4eb54f1a84c2957b34b4effba9fd8e5967215d.png)
![\[ _x\sigma_t^2=\lambda\times{_x\sigma_{t-1}^2}+(1-\lambda)x_{t-1}^2 \]](/sites/all/files/tex/531cba30bee80fed0ae7dff0ae6cac8c2f4efd18.png)
![\[ _y\sigma_t^2=\lambda\times{_y\sigma_{t-1}^2}+(1-\lambda)y_{t-1}^2 \]](/sites/all/files/tex/f7bbc2e92ea1dc29bc49d217a266f257d5e29141.png)
Where:
-
is the sample correlation between X and Y at time t.
-
is the sample exponential-weighted covariance between X and Y at time t.
-
is the sample exponential-weighted volatility for the time series X at time t.
-
is the sample exponential-weighted volatility for the time series Y at time t.
-
is the smoothing factor used in the exponential-weighted volatility and covariance calculations.
-
References
-
Hull, John C.; Options, Futures and Other Derivatives
Financial Times/ Prentice Hall (2003),pp 385-387, 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
