4-Dimensional PCA Filtering (Professional Only)

Abbreviation: PCA4Filter
Category: Principal Components Analysis (PCA)
Input Parameters:

Name Range Default
Time Series #1 Close
Time Series #2 Close
Time Series #3 Close
Time Series #4 Close
Window Size Int >= 4 50
Threshold Real >= 0.0 30
Input Number 1 <= Int <= 4 1


Performs the Principal Component Analysis of the last n points in the space of X1…X4, calculates all eigenvectors and eigenvalues. Calculates the projection of the latest time point to the direction determined by several first eigenvectors, and returns its mth component (filtered value of Xm). The number of eigenvectors taken into account is determined by the demand that the sum of eigenvalues of these eigenvectors is as small as possible provided that it is not less that p% of the sum of all eigenvalues. (Each eigenvalue is less than or equal to the preceding eigenvalue.)


X1 = Time Series 1
X2 = Time Series 2
X3 = Time Series 3
X4 = Time Series 4
n = Window Size
p = Threshold
m = Input Number


Sums up several first principal components that provide together not less than p % of the total variance. Returns the value of Xm filtered by removing all the other components. For more information on Principal Component Analysis refer to Principal Components Analysis (PCA) Discussion.

Was this article helpful?

Related Articles