← All nodes
Analytics

PCA

Reduces many numeric columns to a few principal components — new columns PC1, PC2… that keep as much of the variation as possible.

When to use it

Use it to compress 20 sensor readings into 3 signals, to plot high-dimensional data, or to remove collinearity before clustering.

In a pipeline

Settings

SettingTypeRequiredDefault or hint
ColumnsselectYesPick two or more numeric columns
Componentsnumber—2
Scale columns first (z-scores)checkbox—true
Column prefixtext—Default: PC (PC1, PC2…)

Example

Temperature and humidity as one signal

  • Columns=Temp, Humidity
  • Components=1
Sensor readings
SensorTempHumidity
S12040
S22244
S32447
S42653
One component keeps 99.5% of the variation
SensorTempHumidityPC1
S12040-1.5962
S22244-0.5321
S324470.403
S426531.7253

Worth knowing

  • The note says how much variance each component explains; add components until the total is high enough (often 80–95%).
  • Columns are scaled to z-scores first by default, so a column in large units does not dominate; untick it for columns in the same unit.
  • A component's sign is arbitrary; FlowDoo makes each component's largest weight positive so runs read the same.

Others in Analytics