Demo: A toy note on one PCA step
This page is demo content, so the math typesetting can be checked. Nothing here is a finding, a benchmark, or a paper. There is no data matrix behind the symbols.
A direction, not a result
Suppose has one row per sample and one column per feature, and each column is already centered. A unit vector gives the scores . One textbook way to write the first principal-component direction is
For centered columns that variance is proportional to . With the usual scaling, the same direction is a leading eigenvector of
Here is the variance along that axis. A metabolomics matrix would also need a decision about how to scale columns before this step, for example Pareto scaling. This note does not make that decision, and it does not use any measured concentrations.
What is missing on purpose
There is no scree plot, no percentage of variance, and no rule for how many components to keep. Those belong in a real analysis, with a real matrix and a sentence about what the samples were. When you replace this file, cite a textbook you actually use, or derive the step in your own words.