What this step does. Each complete day is described by 24 numbers, one per hour. PCA (principal component analysis) rotates these numbers onto new axes, ordered by how much of the day-to-day variation each one captures. The axes are the principal components PC1, PC2 and so on; a day’s position along an axis is its score, and the weight the axis gives each hour is its loading. UMAP is a nonlinear method that keeps each point’s nearest neighbours close together: it places every day on a 2D map near the days with the most similar 24-hour profiles. Both methods are fitted separately for each sensor.
| Method | Recorded configuration | Interpretation |
|---|
| PCA | 10 components; full SVD; mean-centred columns; no standardisation | Explained variance and loadings describe each sensor’s own daily patterns |
| UMAP | 2 dimensions; n_neighbors=15; min_dist=0.1; Euclidean; random_state=42 | Fitted directly to the 24-hour profiles, not to PCA scores |
| Fit scope | One fit per sensor on all 357 complete days | The Period menu shows a subset of days from the same fit |
| Elbow | Maximum perpendicular distance to the PC1–PC10 chord | Marks where the scree curve bends most, as a rule of thumb for how many components matter |
| Sensor | PC1 | PC2 | PC3 | Elbow | Cumulative share at elbow |
|---|
| PT08.S1 | 65.3% | 10.1% | 7.7% | PC2 | 75.3% |
| PT08.S2 | 62.3% | 9.9% | 9.1% | PC2 | 72.2% |
| PT08.S3 | 61.3% | 17.5% | 7.9% | PC3 | 86.8% |
| PT08.S4 | 77.6% | 8.2% | 4.4% | PC2 | 85.8% |
| PT08.S5 | 63.3% | 11.0% | 8.4% | PC2 | 74.3% |
For four sensors the elbow is at PC2. S3 is the exception: its PC2 holds 17.5% of the variance, and its elbow is at PC3.
PCA subtracts each hourly column’s mean but does not rescale the columns, and UMAP works on the raw profiles. Days therefore differ both in their overall level and in the size of their daily swings, and both count.