How to Interpret a Principal Component Analysis (PCA) Biplot

A PCA biplot squeezes a table with many columns into one flat picture that shows your samples and your variables at the same time.1The Stata Journal: Promoting communications on statistics and Stata. Data Inspection using Biplots You can see at a glance which samples group together, which variables travel together, and which samples stand out on which variables.1The Stata Journal: Promoting communications on statistics and Stata. Data Inspection using Biplots

The catch is that the picture is a best-fit squeeze of many dimensions into two, so everything you read from it is an approximation rather than an exact value.2WIREs Computational Statistics. Biplots: the joy of singular value decomposition The chart also has a hidden setting, its scaling, that decides whether the dots or the arrows are drawn most faithfully, and many published plots never say which they used.3Nextjournal. Principle component analysis and biplots in Python

What the Axes and Their Percentages Tell You

The horizontal axis is usually labelled PC1 and the vertical PC2, short for first and second principal component. Each one is a weighted blend of all your original variables rather than any single one.4Biometrika. The biplot graphic display of matrices with application to principal component analysis PC1 is the blend that captures the most spread across samples. PC2 captures the most of what is left, at right angles to PC1.

Software labels each axis with the share of total variation it explains, such as PC1 45% and PC2 20%. Software sorts the components so PC1 always has the largest share and PC2 the next, which means PC2’s percentage can never exceed PC1’s. All components together explain 100% of the variation, so your two axes are just the first slice of a larger total.

Added together, the two percentages tell you how much of the data’s structure the flat picture holds. When they explain only a small share, patterns on the chart may be shaky and later components may hide important structure. There is no universal cutoff, but two axes explaining most of the variation give a fairly faithful picture. With many variables, even a modest total can still show real structure, so compare it against the number of variables. If the total is low, plot PC1 against PC3 or check a scree plot before drawing conclusions.

The missing percentage matters too. If the two axes explain 60%, the other 40% is spread across components you cannot see. Two dots that look close may be far apart on a hidden component, and two variables can look correlated on the chart while being unrelated on a component you did not plot.

An axis has no built-in name. You give it one by seeing which arrows lie mostly along it: if size-related arrows all point along PC1, then PC1 is roughly an overall size axis. The sign of an axis is arbitrary, so another program may show your chart flipped left to right, and that changes nothing.

Reading the Dots, Similar Samples, Clusters and Outliers

Each dot is one row of your data, such as one person, site or product, and its position is called its score. Dots near each other have similar profiles across all the variables, and distant dots differ. That lets the chart reveal clusters of similar samples and multivariate outliers that look odd only when several variables are combined.1The Stata Journal: Promoting communications on statistics and Stata. Data Inspection using Biplots

Distances between dots match the true distances between samples only when the plot is drawn in the sample-preserving scaling.5The DO Loop. What are biplots? Under the other common scaling the dots are distorted, so compare closeness loosely rather than precisely.

The centre point, where the axes cross, represents the average sample, so the direction a dot sits from the centre tells you how it differs from average. Dots near the centre are close to average on most variables. A dot far along PC1 is unusual in whatever mix of variables PC1 combines, and you need the arrows to say which variables that is.

To tell a genuine cluster from a chance clump, colour the dots by a known group, such as treatment or species, and see whether the groups separate. A real cluster tends to stay when you drop a few samples, though it may show along only one axis.

When one dot sits far from the rest, first check the raw data for an entry error. An outlier can pull an axis toward itself and reshape the whole chart, so try rerunning the analysis without it to see whether the main pattern holds. Don’t delete a sample just because it looks odd, and if you do remove one, report why.

Reading the Arrows, Length and Direction

Each arrow, often called a loading, stands for one original variable. A longer arrow means that variable contributed more to building the axes shown.6GUSTA ME. Principal Components Analysis Arrow length also reflects the variable’s variance, how much it varies across samples, as far as it is shown in these two axes.5The DO Loop. What are biplots? So if variables were not standardised first, a variable measured in large units can dominate simply because its numbers are bigger.

Every arrow starts at the centre, which represents the average of that variable, and points toward higher values of it. Samples toward the tip tend to be higher in it, and moving the opposite way from the arrow means lower than average values.

Direction shows which axis the variable drives. An arrow lying nearly flat along PC1 mostly drives that axis, and one pointing up mostly drives PC2. A short arrow near the centre is either unimportant or poorly shown in these two axes. It is not proof of no effect: the variable may be strongly represented on PC3 or later axes. Look at the loadings table to see where it loads.

Standardising changes the arrows a great deal. Most software offers to scale each variable to the same spread before PCA, often called using the correlation matrix. With it, arrow length reflects relationship strength rather than units of measurement. Without it, mixing grams and kilograms or dollars and percentages gives misleading arrow lengths.

Angles Between Arrows Show Which Variables Move Together

The correlation is about equal to the cosine of the angle between the arrows.8GUSTA ME. GUSTA ME – Principal Components Analysis Arrows 20 degrees apart suggest a strong positive correlation of about 0.94, while 90 degrees gives zero.8GUSTA ME. GUSTA ME – Principal Components Analysis This reading holds best in the variable-preserving scaling, and the sample-preserving scaling distorts angles.5The DO Loop. What are biplots?

Opposite arrows do not mean the variables are unrelated. They are strongly related in reverse. Short arrows give unreliable angles because they are poorly represented.

A tight bundle of arrows suggests those variables measure much the same thing. Such closely related variables can cause problems if you later run a regression.1The Stata Journal: Promoting communications on statistics and Stata. Data Inspection using Biplots You might keep one variable from the bundle or combine them, but confirm with the actual correlation table before dropping anything.

With many variables, arrows overlap and labels collide, making angles hard to judge by eye. In that case, rely on the correlation matrix or a heatmap of correlations for exact values, and use the biplot only for the broad pattern. Some software lets you plot only the longest arrows, which makes the readable angles stand out.

Linking Dots to Arrows, Which Samples Score High on Which Variable

Imagine extending a variable’s arrow into a line running both ways through the centre.9Forrest W. Young’s Notes. Principal Components: BiPlots Then drop a line at right angles from each dot onto it.9Forrest W. Young’s Notes. Principal Components: BiPlots Dots landing furthest in the arrow’s direction have the most of that variable, those at the opposite end the least, and those near the centre about average.9Forrest W. Young’s Notes. Principal Components: BiPlots The rule works because, when all the data fit exactly in two dimensions, each value is precisely the product of the dot and arrow positions.10Biometrika. The Biplot Graphic Display of Matrices with Application to Principal Component Analysis A dot far out but at right angles to the arrow tells you little about that variable.

The common mistake is judging by closeness to the arrow tip. Straight-line distance from a dot to a tip is not the rule, and two dots far apart can project to the same spot and have similar values. Always use the right-angle projection, not raw proximity.

You can repeat the projection for each arrow, which lets you describe a sample by a profile, such as high in one variable and low in another. Variables whose arrows point the same way rank samples in a similar order, since their projections agree. Arrows pointing opposite ways rank the samples in reverse order.

The positions read off this way are approximate values, because many variables cannot be shown exactly in two dimensions.2WIREs Computational Statistics. Biplots: the joy of singular value decomposition So use projections to rank samples roughly, and check the raw data for exact values.2WIREs Computational Statistics. Biplots: the joy of singular value decomposition

Why Scaling Changes What You Can Read

Scaling 1, sometimes called a distance biplot, keeps distances between samples true, but the angles between arrows are distorted.5The DO Loop. What are biplots? Scaling 2, a correlation biplot, shows the relationships between variables most faithfully, so angles approximate correlations.5The DO Loop. What are biplots? Some software uses a number instead, where 0 is variable-preserving, 1 is sample-preserving and 0.5 is a symmetric in-between.11BESHStatNG. Principal Component Analysis

Dots and arrows cannot both be exact because both sets of coordinates are built from the same decomposition, and a biplot must decide how to share the component weights between samples and variables. Giving the weights to the samples preserves sample distances but distorts the arrows, while giving them to the variables does the reverse. This is a trade-off in how the chart is drawn, not a software bug.

Visually, a sample-preserving chart often shows arrows that look relatively short or similar in length, while dots spread widely. A variable-preserving chart tends to show longer arrows relative to the dots, with dots bunched toward the centre. These differences are your clue to which scaling was used when a paper does not say.

Choose scaling 1 when your question is about how samples relate and scaling 2 when it is about how variables relate.3Nextjournal. Principle component analysis and biplots in Python The symmetric option sits between the two and is a reasonable compromise when you care about both.12Agronomy Journal. Singular‐Value Partitioning in Biplot Analysis of Multienvironment Trial Data Always check your software’s default and state the scaling in your report.3Nextjournal. Principle component analysis and biplots in Python

In R’s biplot and vegan functions, a scale or scaling argument sets it. Many Python tools and Excel add-ins have a default that is not obvious, so read the documentation. If the dots look squeezed and the arrows huge, or the reverse, the scaling differs.

Mistakes That Make a Biplot Misleading

The two axes must use exactly the same units per centimetre, so one centimetre up equals one centimetre across.13Crop Science. Biplots: Do Not Stretch Them! Stretching the chart, often when resizing it into a document, changes all angles and distances and makes the readings essentially meaningless.13Crop Science. Biplots: Do Not Stretch Them! Lock the aspect ratio when resizing and set equal axis scales in your software.

Software often draws a square plot with unequal axis ranges, so the default export can distort the picture before you ever resize it. Look for an option such as equal aspect ratio or fixed coordinates and turn it on before saving. After saving, insert the image by dragging a corner handle, which keeps proportions, rather than the side handles, which stretch it.

Over-reading is the other family of errors:

  • Treating approximate projections as exact data values
  • Reading angles between short, poorly represented arrows
  • Ignoring a low combined explained variance
  • Forgetting whether the variables were standardised

Biplots Beyond Basic PCA

Ecologists use biplots to show how species relate to environmental gradients.14The Tangled Bank. 5. Principal component analysis (PCA) – The Tangled Bank Plain PCA distances suit species count data poorly, so ecologists often transform the counts first or use related methods such as correspondence analysis.15PubMed. Ecologically meaningful transformations for ordination of species data Species counts often contain many zeros, which ordinary PCA treats poorly because shared absence makes sites look similar. Transforming the counts first lets PCA be applied more sensibly. Correspondence analysis uses a different distance designed for counts, and its biplot is read with the same projection idea but different distance rules.

For categories rather than numbers, methods first convert the categories into numeric scores before plotting.16WIREs Computational Statistics. Biplots: qualititative data In gene studies, biplots help group samples and show which genes relate to which samples.17PubMed. Use of principal component analysis and the GE-biplot for the graphical exploration of gene expression data

You can also project a supplementary variable, one not used in the PCA, onto an existing biplot as an extra arrow.18Wiley Online Library (Biometrical Journal). Optimal Representation of Supplementary Variables in Biplots from Principal Component Analysis and Correspondence Analysis Its direction is found by fitting it to the scores, much like a regression. This lets you check whether an outside measure lines up with the pattern without changing the axes.