PCA for materials data · Part 4 of four

Can you work out a score for your material?

Calculate your material’s principal component score and connect the result to SVD.

You have followed an observation from its original measurements into a PCA map. You know why we look for variance, how the covariance matrix gives us axes, and why our scales matter.

Let us now calculate one of those plotted coordinates. I will use the four-variable measurement map: T, S, log₁₀ σ, and log₁₀ κ.

What is a score made of?

First we prepare the four values exactly as before. Subtract each dataset-column mean and divide by its sample standard deviation. Here the fit uses all 5,205 released observations. Then multiply each prepared value by the corresponding component coefficient and add the four products.

Choose PC1 or PC2 in the experiment. You can see every contribution to your observation’s score. Changing the record lets you check another material or temperature.

Trace your observation’s score

Let us start with PC1. Read across the first row of the table: value, mean, standard deviation, prepared value, weight, and product. Then look at the other three products and their sum. Try PC2 when you are ready; afterwards, I will show you how this leads into SVD.

What did you just calculate?

You calculated a score: one coordinate in the PCA map. The coefficients describe a direction; the score tells us where your observation falls along it. They are different quantities.

The first two components retain 67.5% of standardized four-variable variance. Keeping two coordinates leaves 32.5% outside this view. That percentage describes this measurement representation, not the chemical map, which retains 33.5% in two components.

Where does singular value decomposition enter?

You have calculated a score from prepared measurements and component weights. But I supplied those weights. You may now be wondering how we can find all the directions and scores directly from the prepared data table. This brings us to singular value decomposition, or SVD. I explain the method further in our SVD lesson.

Before I write its formula, let us name every part. X is the prepared data table: observations in rows and features in columns. V has the principal directions in its columns. Vᵀ is V with rows and columns interchanged. Σ (capital sigma) is a diagonal matrix of nonnegative singular values, ordered from largest to smallest. They describe the strengths of the corresponding patterns. U contains the normalized score patterns across observations; each of its columns has length one.

X = UΣVᵀ
Scores = XV = UΣ

Multiplying U by Σ restores the magnitude of each normalized score pattern. That is why UΣ gives the scores you obtain by projecting X onto the directions in V. For n observations, the variance of component j is its singular value squared divided by n − 1.

You can now follow the symbols back to the observation you selected. If you would like to understand how SVD constructs these pieces, let us continue that story on the SVD page.

Before you interpret a promising point

Return to the original source linked for your observation. There are 88 additional records sharing a formula–temperature pair in this release. I retain them separately because specimen, processing, or source may differ. Equivalent alternative formula spellings have not been merged.

The release has no blank cells in its eight columns, but that does not mean it contains every variable that matters. Crystal structure, processing, and microstructure are not explicit columns.

Power factor PF = S²σ, using S in V/K, and ZT = PF·T/κ. I exclude PF and ZT from this measurement fit to avoid counting their derived relationships again. Some source values do not exactly obey those relations; I preserve the recorded values rather than silently replace them.

This lesson is our educational PCA analysis of the released data, not a reproduction of the authors’ supervised SIMD model. A chemical neighbourhood or a SHAP contribution alone does not establish a physical cause.

We began with too many measurements to see at once. You can now choose a representation, inspect its components, calculate a score, and ask what the map has left out. The next decision—what is worth investigating—comes back to your materials question.

Help me keep these tutorials going

If this tutorial helped you, you can support the time I spend creating examples and checking the code.

Support is voluntary. My tutorials remain freely available.