Abbreviation: PCALag
Category: Principal Components Analysis (PCA)
Input Parameters:
Name | Range | Default |
Time Series | Close | |
Window Size | Int >= Max Lag + 1 | 50 |
Vector Number | 1 <= Int <= Max Lag + 1 | 1 |
Max Lag | Int >= 0 | 25 |
Calculation:
Performs the Principal Component Analysis of the last n points in the space of X, Lag(X,1), Lag(X,2), …, Lag(X,MaxLag), calculates the mth eigenvector and projects the latest time point onto the direction of this eigenvector,
where
X = Time Series
n = Window Size
m = Vector Number
Discussion:
Extracts the mth principal component from the data. For more information on Principal Component Analysis refer to Principal Components Analysis (PCA) Discussion.
Note that the direction of the vector represents the direction that causes the mth most variation, and thus may point in one of two directions. NeuroShell Trader performs this analysis so that the vector choosen is closest to the previous vector selected. Because of the way this is calculated, if the first data point is shifted (forward or backward in time), the sign of the entire series may be alternated. This may require your neural networks to be retrained or your Trading Strategies to be rebacktested.