- Spotting outliers before training a model
- Visualizing whether your samples form natural groups
- Reducing dimensionality for downstream methods (e.g., feeding into K-Means)
- Understanding which wavelengths matter most via loadings
Configuring a PCA run
In the Configure run card on the analysis detail page, select PCA.
Parameters
The actual “best” number of components is chosen automatically based on the cumulative variance explained.
Run name
Auto-generated as a friendly two-word name (e.g., “bold-cloud”). Override it with anything descriptive. Click Launch run to start. The run appears in the runs list with status “Queueing”, then “Analysing”, then “Done” when complete.Reading the results
Click a completed run to open its detail page.
Dimensionality (scree plot)
Bar chart showing the explained variance of each component, with a line for the cumulative variance. The text below the chart shows the suggested number of components and the cumulative variance at that count (e.g., “Suggested: 4 components · 92.3% variance”).Scores plot
Scatter plot of your samples projected onto the principal components. Each point is one spectrum.
When you colour by a property:
- Continuous properties produce a blue → red gradient (low to high)
- Categorical properties use a fixed palette (one color per category)
Loadings plot
Line chart showing how much each wavelength contributes to a given component. Pick which PC to view from the dropdown. Peaks and troughs in the loadings indicate the wavelengths that drive that component’s variance. If PC1’s loadings have a strong peak at, say, 1450 nm, that wavelength is dominant in the largest source of variance in your data.Outlier detection (T² vs Q residuals)
Scatter plot with Hotelling T² on the x-axis and Q residuals on the y-axis. Each point is a spectrum. Two threshold lines (red) mark statistical limits.
- Green: inside both thresholds
- Orange: one threshold exceeded
- Red: both thresholds exceeded
Iterating
PCA results often suggest changes:
Each new run is saved alongside the others in the same analysis. Use Comparing runs to put multiple runs side by side.