The PC_ANALYSIS command performs principal component analysis on a list of time series.
It converts a group of related series into a smaller set of independent principal components, also called eigenfactors.
SLIDESHOW(PC_ANALYSIS(LIST(UNRATE,U6RATE,PAYEMS,SP500,VIXCLS)))
This example compares several economic and market series and shows how their shared variation can be summarized by principal components.
PC_ANALYSIS(seriesList)
The input should be a LIST of time series. The series are aligned to the same date range before the analysis is performed.
The command produces a PCA analysis panel including:
The explained variance chart shows how much of the total variation is captured by each principal component. A large first component means the series share a strong common factor.
The correlation chart shows how each original series relates to the eigenfactors. Large positive or negative correlations indicate that a series is strongly connected to that component.
The loading charts show which series contribute most to each principal component. Positive and negative loadings indicate opposite movement within the same factor.
Principal component analysis is useful when many time series move together. Instead of studying every series separately, PCA identifies the main independent patterns driving the group.
For example, a macroeconomic list may contain interest rates, inflation, employment, equity prices, and volatility. PCA can help identify whether the dominant factor looks like a growth factor, inflation factor, risk factor, or market-stress factor.
The PCA object supports several extractable views:
EXTRACT(PC_ANALYSIS(...), "datalist")EXTRACT(PC_ANALYSIS(...), "components")EXTRACT(PC_ANALYSIS(...), "bubble")EXTRACT(PC_ANALYSIS(...), "variancechart")EXTRACT(PC_ANALYSIS(...), "correlationchart")EXTRACT(PC_ANALYSIS(...), "regressions")EXTRACT(PC_ANALYSIS(...), "probitchart")EXTRACT(PC_ANALYSIS(...), "probitmodel")PCA is exploratory. The components are mathematical factors, not automatically economic causes. The meaning of each component must be inferred from its loadings, correlations, and the behavior of the input series.