An archive team measures the width and height of several plain book covers. One analysis labels the broadest direction in the resulting scatter as its first principal axis. Along that direction, widths and heights tend to increase together. A second run displays both first-axis loadings as negative instead of positive. In its map the books that were to the right now appear to the left. Someone thinks the program found a reversal in the archive. But if the axis and every coordinate on it were reversed together, no book moved relative to the original physical measurements. The program chose the other end of the same line as positive.

A line and an arrow are different. A line through the middle of a cloud can describe the main orientation of its spread without designating a positive end. A principal component is often displayed as an arrow or a column of signed numbers because a coordinate system needs a positive direction in order to name scores. That choice can be arbitrary. Reversing it reflects the coordinate system without changing the set of points it describes. This does not mean every loading sign is unimportant, or that large changes between analyses should be dismissed as harmless. It means one particular coordinated reversal has a precise mathematical explanation.
This article uses invented book-cover measurements to keep that explanation separate from real sampling questions. Width and height are fixed physical sides under the measurement rubric, not whatever side happened to lie along the bench during a work session. A square cover or a rotated photo may need an explicit orientation definition before measurement. The principal-axis example begins after those definitions are established. If a real analysis switched the physical meaning of width between records, an arbitrary sign flip would not excuse the resulting discrepancy.
The R principal components analysis documentation describes constructing components from a data matrix, the role of centering and scaling, and the arbitrary signs of the columns of its rotation matrix. The R singular value decomposition documentation explains that changing the sign of a left singular vector and its corresponding right singular vector gives an equivalent decomposition for real data. These are primary sources for the named implementations and their conventions. They do not provide the cover measurements or loadings in this example.
Same principal axis under sign reversal
Illustrative only. These loadings are invented unit-vector coordinates in the example's chosen numerical feature space. They are not source observations, probabilities, percentages, or official targets.
| Loading | Loading units |
|---|---|
| Width original | 0.6 |
| Height original | 0.8 |
| Width flipped | -0.6 |
| Height flipped | -0.8 |
In the original convention a step in the positive axis direction includes a positive width component and a positive height component. Under the flipped convention a positive step along the renamed axis goes the other way: both components are negative. This remains the same unarrowed line. One numerical check is that the squared components add to one in both cases: 0.36 plus 0.64. Those squared coordinates describe the unit-vector calculation. They do not mean that width contributes 36 percent of the total variance in the dataset or that the first component explains 64 percent. Variance explained needs the variance of the component and the total variance being summarized.
The bars are not four features or four principal components. They are two features described under two opposite sign choices for one axis. Comparing a positive height bar with its negative flipped version as though one were a change over time would be misleading. Use original and flipped as headings, not date labels. A diagram could put both arrows on the same line through an origin to emphasize the relationship. The arrowheads face different ways, but the set of possible positions along either full line is identical.
The term “loading” can carry different conventions across software and reports. Here it refers to a coordinate of the unit direction used to form a component score, in line with the eigenvector columns contained in the R rotation output. Some displays use different scaling or show correlations between variables and components. Those need their own definitions. Do not compare two tables of numbers under one label until you know which convention each used. A sign alignment does not convert a unit-vector coordinate into a correlation or change the centering and scaling behind either calculation.
Read a score as a signed coordinate from the center
For a simple two-variable analysis, subtract a chosen center from width and height. A score on the first principal axis is the dot product of those two centered values with the axis's unit direction. In ordinary words, multiply each centered measurement by its corresponding loading and add the products. If the chosen direction is replaced by its negative, the new score is the negative of the old score for the same cover. Both signs have to change: the sign of the direction's loadings and the coordinate used to describe the cover on that direction.
Take an invented center of 20 centimeters in width and 30 centimeters in height. A cover 23 centimeters wide and 34 centimeters high has centered coordinates three and four. With the direction 0.6 and 0.8, its score is three times 0.6 plus four times 0.8, or five. With the opposite direction its score is minus five. Neither calculation is a new measurement of width or height. The two scores describe the same displacement from the center using opposite signs on a shared line. It would be wrong to report that the book moved from large to small in the physical archive.
If the first axis is the only retained direction, its projected displacement is obtained by multiplying the score by the unit direction. Five times the original direction gives three and four. Minus five times the flipped direction also gives three and four. Add the same center to reconstruct the same first-axis point in the original feature space. A sign flip of only the loadings, leaving the scores untouched, would instead produce the reversed physical projection. A genuine orientation change in a representation must be propagated through everything that uses those coordinates.
A cover with centered width minus three and centered height minus four lies the other way along the same line. It has score minus five originally and plus five after reversal. The distance between the two covers along the axis is ten under either convention. The midpoint remains at the center. Their order on a plot from left to right reverses, but the separation and reconstructed measurements do not. If a label “higher score” was intended to mean “larger along this particular direction,” the verbal meaning has to be updated when the coordinate system is renamed.
A point need not sit on the chosen line. Consider an invented cover 18.4 centimeters wide and 31.2 centimeters high. Its centered coordinates are minus 1.6 and plus 1.2. The dot product with 0.6 and 0.8 is zero, because the negative and positive contributions cancel. This point is not the same physical size as the center; it is perpendicular to the chosen axis in the example's feature space. It lies at zero on that one coordinate. Reducing a dataset to the first component can genuinely discard information. That loss is a reduction in retained directions, not a consequence of choosing either sign.
Use a small dataset in which the axis can be checked exactly
Consider four centered displacements chosen deliberately to make the arithmetic transparent: the two points with coordinates three and four and minus three and minus four, and two others with coordinates minus 1.6 and plus 1.2 and their opposite. In the original physical units these correspond to four imaginary covers with dimensions (23, 34), (17, 26), (18.4, 31.2), and (21.6, 28.8), in centimeters. The sample center is exactly (20, 30). The points are not from a survey and were chosen for an explicit geometric construction.
Define the first axis as the unit direction (0.6, 0.8) and the perpendicular axis as the unit direction (minus 0.8, 0.6). The first two covers have first-axis scores plus five and minus five, and zero on the second axis. The next two have zero on the first and scores plus two and minus two on the second. Scores on both axes have mean zero, and the product of first and second scores is zero for every row. The two score directions are therefore uncorrelated in this constructed sample. The larger variance is along the first, so it really is the first principal direction of these centered, unscaled data.
Using the ordinary sample variance denominator of three for four covers, the axis variances are 50 divided by three and eight divided by three. The fraction of total variance along the first direction is therefore 50 divided by 58, about 86.2 percent. These figures refer to variation in the centered measurement cloud, not to any rating of which dimension or cover is more important to the archive. Negating the first scores leaves their squares unchanged, so this fraction stays the same. The second-axis scores can be left unchanged.
The relationship persists for an entire reconstruction. Add each retained component's score times its direction, then undo the stated centering and any scaling when the resulting values should be expressed in original units. With both toy axes, the original centered positions can be represented exactly by this construction. With only the first, the two covers lying on the perpendicular axis would both project to the center. That loss is an intelligible cost of rank reduction. A whole-component sign reversal makes no additional loss, because each retained score-direction product remains exactly the same.
This example also shows how to tell unit-vector coordinates from feature contributions to variance. The first component score contains width and height in a linear combination. The variation of that combination depends on the widths, heights, and their covariance, not just on the two squared loadings. In the toy, the plotted geometry and sample values supply that information. A report that lists only the four illustrated loading entries cannot calculate the explained fraction without more information about the data or the singular values. Keep explained variance in a separate table or panel.
Why the computation is permitted to make either choice
For centered data, one way to understand the first principal direction is as the unit line direction giving the largest variance of projected scores. If a unit arrow yields some set of scores, the opposite arrow yields exactly their negatives. The variances match. The maximization criterion cannot distinguish the two orientations. The same symmetry applies to later components under the orthogonality constraint, because reversing an arrow preserves which other axes are perpendicular to it. The origin, spread, and retained subspace can all stay fixed while a sign differs.
In a singular value decomposition the corresponding columns on the two sides of a component occur together. Changing both signs leaves their contribution to the matrix unchanged. That is another way to get the same result: each component's product contains two negative signs when both parts are reversed. The singular value is nonnegative and remains unchanged. In a principal components analysis based on that decomposition, squared singular values, scaled by the stated variance convention, supply component variances. They do not become negative when the displayed arrow reverses.
A change in numerical library, algorithm or coordinate order can lead to a different valid sign choice. It is not necessary to decide that the earlier answer was the “original correct” sign. It is enough to align both reports to a stated convention if readers need stable presentation. Reaching the exact same signs across runs can be convenient for verification, but not required for equivalent decompositions. Check which details should actually be invariant before treating a formatting difference as a failed model reproduction.
Relative signs within an axis still matter. If the toy width loading remains positive while height changes from positive to negative, the direction becomes (0.6, minus 0.8). That is not simply the negative of the original vector, and it points along a different line. In a centered coordinate system, width and height would tend in opposite directions along that candidate axis instead of moving together. To recognize a harmless global flip, compare the full column and what happened to its scores, not one coefficient taken separately. A screenshot highlighting only the height component cannot establish the equivalence.
Check whether the line itself changed
A comparison across analyses can use the absolute dot product of corresponding unit directions under the same feature basis. Exact agreement or exact global reversal gives an absolute value of one. Values closer to zero indicate axes farther apart under that defined comparison. An absolute dot product is not meaningful if the two columns order variables differently or use different scaling. Bring them into a comparable representation first or compare their reconstructed physical effects under known transformations. Otherwise a number near one may be coincidental or a real agreement may look weaker than it is.
When the first two variances are very close, the leading individual direction can be unstable. Small changes in the sample might favor a visibly different axis, even if the plane spanned by both directions is largely unchanged. If two eigenvalues are exactly equal, there is no unique pair of axes within their shared eigenspace; any orthonormal pair in that plane spans it and accounts for the same spread there. This indeterminacy is broader than a sign flip. A positive-alignment rule for one loading cannot make a uniquely estimated first axis out of near-equal variance.
In the two-variable toy, a truly equal pair of principal variances would make all directions in the two-dimensional plane equally eligible as first directions. In more variables, a nearly tied pair can give a locally stable two-dimensional subspace even while the reported rankings and axes inside it shift. Review the gaps between component variances before interpreting swapping or rotation. If orientation within a space isn't reliable enough for the decision, communicate the common space or show contributions across the group of components rather than assigning stable labels to a single vector that moved substantially.
A practical archive example might compare estimates before and after adding several covers with unusual proportions. If the old principal component strongly resembled an overall size direction and the new one leans much more heavily toward width, that may reflect a real change in measured variation, altered input membership or a weighting difference. Confirm that both analyses used the same feature order, centering conventions and unit treatment. If they did, sign alignment alone won't resolve a rotation of the line. Inspect sample composition and how much variation each component summarizes before appealing to software arbitrariness.
Scaling changes the question rather than just the arrows
Centered raw measurements in the same unit describe variation in those numerical units. Even if widths and heights are both expressed in centimeters, one may vary much more than the other in an archive collection. A component computed without scaling may naturally align more strongly with the dimension that has larger observed variance. Standardizing each feature to unit variance changes the representation so equal measured variation in standardized units counts alike in the calculation. That can be a useful choice for some purposes. It is not the same calculation with a different sign convention.
Unit conversions illustrate the issue. If both features are measured in centimeters and one column is silently converted to millimeters while the other remains in centimeters, raw numeric variation along the converted axis becomes much larger in scale. A principal vector computed in that mixed representation may favor it for reasons unrelated to physical change. If both columns are rescaled consistently, the common conversion has a different effect from rescaling only one. Specify units, centering and feature scaling and preserve the numbers needed to transform new observations the same way.
Standardization itself needs a sensible reference. The mean and spread estimated in one collection may not be the correct values for a different intended comparison. If the goal is to place new covers on an existing map, use the original fitted center, scales and loadings rather than fitting a fresh basis from each shipment by default. Refitting can be useful to study an updated archive distribution. It answers a different question from projecting into an agreed reference system. Report whether the basis was held fixed and compare its orientation or variance before deciding that a shift has been observed.
Preprocessing can also affect equalities and ties. A perfectly constant column has no variation of its own and cannot be standardized by a positive sample standard deviation. Decisions about omitting it or otherwise treating it should be documented rather than hidden in a mysterious failed fit. Likewise a missing width may cause one analysis to exclude a row and another to fill it from a separate source. Even when the output has the same number of components, such preprocessing changes may affect the geometry. A sign change is a narrow explanation that should be applied only after those alternatives are checked.
Use a sign convention for interpretation, not as a new finding
A reporting team may choose a positive reference sign to keep charts easy to compare. One simple convention for this toy is that the width loading on the first axis must be positive when it is sufficiently far from zero to give a stable rule. Under this convention the displayed direction is (0.6, 0.8). The convention is not additional evidence that the axis physically points toward larger covers; it labels which way the analyst will draw it. Record how the corresponding scores, axes and any later predictive coefficients are adjusted when the convention is applied.
A convention based on one loading can be fragile if that coefficient lies near zero. A tiny numerical difference might cause a wholesale visual reflection. Instead a reviewer can align each new axis to a fixed reference direction under the same units by choosing the sign that makes their dot product nonnegative. If the dot product is near zero it is not a reassuring match, whatever sign is chosen. If the data have nearly tied components, a broader comparison of the retained space may be better than insisting that a named variable stay positive. Report the reason a convention was adopted and where it loses usefulness.
Axis labels should also distinguish “positive end of this component” from “good outcome.” A first component is chosen to describe variation in the entered features, not to rank archive preservation, accessibility or workmanship. Under one convention larger positive first scores in the toy correspond to displacements in a larger-width and larger-height direction. Negative scores are not inferior covers. If geometric departure from the center matters, a signed score and its absolute magnitude answer different questions. Transform the signed coordinate only if the intended decision supports that loss of direction information.
There is a similar issue when displaying scores in order. A report that sorts books from lowest to highest first score will reverse the sequence after a full sign flip, even though distances and reconstructions are preserved. If the team only needs a consistent display order, fix and document an orientation before sorting. If it cares about the farthest measured departures, the sign of the score is not sufficient to identify them. A reviewer can test whether a downstream classification rule changed its meaning when the sorting convention changed. Coordinate equivalence doesn't automatically preserve an arbitrary threshold applied to just one sign.
Keep downstream calculations consistent with the basis
Another analysis may take component scores as inputs. If a later prediction model uses the first component with a positive slope, negating the score and keeping that slope unchanged would generally change the prediction. To preserve an equivalent representation, negate the corresponding slope or continue producing scores under the original basis. The same logic applies to saved labels, thresholds and graphical legends. A legitimate sign flip is only harmless if all accompanying positional relationships are handled consistently. It is not enough to change the loading table and assume nothing else uses it.
A simple reconstruction check is a useful guard. Choose one known cover, compute its centered or standardized coordinates, calculate its score, and project it back using the loading column. Then reverse both the loading and score and verify that the projection is unchanged in units of the fitted representation. Finally undo the stated preprocessing to compare the reconstructed physical coordinates where needed. The toy's 23-by-34 cover provides such a check without relying on a particular program. This can distinguish a valid axis convention from an accidental file mismatch.
A reproducibility review can separately check the reported explained variances. Match features and units first; confirm the same input sample and preprocessing, and compare the relevant values. The sum of squared scores on a reflected axis should stay fixed. The relationship between score differences for all retained coordinates should also be preserved under a sign reversal, provided the same metric is used. If those properties do not hold, investigate what else changed. A large numeric difference on an individual arrow by itself is weaker evidence than broken invariants after alignment.
Work through three differences that an alignment cannot hide
The first difference is a change of feature order. One file lists width first and height second; another lists height first and width second. Correcting the display order moves entries between rows rather than negating them. A column of (0.8, 0.6) might be exactly the same physical direction when labels are reversed, but a genuinely different direction when labels are not. Match features explicitly before forming dot products. The position of a number in an exported table is not a reliable identifier for the variable it describes. A good import preserves units and names rather than relying on the apparent neatness of the ordering.
The second difference is a change in which direction was labelled first. Suppose a data update makes the previous secondary component carry slightly more variance than the previous primary one. A routine that sorts its components by variance can switch their order. Negating the new first column will not match the old first because it is closer to the old second. This can be a valid result rather than a numerical error. Compare the associated variances and the closeness of different directions. If the preserved two-dimensional span stayed nearly the same, the summary can explain the swapping without overstating stability of the individual rank labels.
The third difference is a change of scale that was not applied consistently to all analyses. A width-height cloud can change its mathematical principal axes after widening one numeric feature relative to the other. That might be an appropriate standardization choice, but it needs its own explanation and cannot be fixed by aligning arrows. When possible, recompute both analyses under a common preprocessing definition to isolate the effect of the data change. If that is not possible, say which results concern raw variation and which concern standardized features. Their numbers can both be defensible even if a direct visual comparison is not.
A useful report can present these distinctions along with a readback of one cover's projected coordinates. If the same original point yields equivalent projection after one global reflection, the sign explanation is plausible. If matching requires also expanding one axis, reassigning observations or moving the center, more than sign changed. If two dimensions were changed by a common rotation within an exactly tied subspace, the combined projection can still agree even though individual loadings do not. The evidence preferred should match the claim: preservation of projection for a common space, or preservation of direction for a named one-dimensional component.
A fixed baseline and a refit answer different archive questions
Suppose the archive continues to receive records after the original map is established. A fixed-reference projection uses the first analysis's center, scaling and directions to place the new covers. Movement in the displayed score distribution can then concern the new dimensions measured against that stable basis. This is useful for consistent visual comparison. The fixed projection does not require that the old direction explain the largest amount of variation in the new collection. If the new point cloud spreads perpendicular to it, some meaningful diversity can be poorly represented on that display. Show what was retained and what the fixed view was designed to do.
A refit can ask instead about the most prominent directions in the current collection. That may be valuable when the purpose is to understand newly variable cover shapes. It introduces a new center and possibly new scaling or directions. Comparing raw score signs before and after without reconciling these decisions can manufacture a story. Scores centered separately can make both periods look centered even when average width and height changed. Preserve the original measurements and show changes in the averages or physical spreads separately. The principal score axis describes what remains after its stated preprocessing.
There may be good reasons to produce both views. A conservator might want a stable map to compare batches and a later analysis to study whether the dimensions of newly added covers vary in different proportions. Label one as projection onto the original basis and the other as a current refit. If arrows are aligned for presentation, document the reference convention on both. Do not use a stronger explanation than the evidence supports: a sign alignment can make the labels visually comparable without proving that the refitted component was substantially the same physical line.
A third possibility is an intentionally pooled basis that is estimated once from both periods for a descriptive retrospective chart. That establishes one coordinate system for the observed periods, but it is not a map that would have been available at the time of the first period. If a project evaluates a forward prediction or workflow, using the later covers to select the earlier basis can change the meaning of the evaluation. The point is not to ban pooling. It is to describe whether the analysis is retrospective or prospective and why those data entered the fit.
See how much a signed distance can and cannot represent
The first score in the toy is a projection, not a radial distance. A cover with score zero may be at the center, or it may be displaced entirely along the omitted direction. Its width and height can differ substantially even when its first coordinate is shared with several other covers. This distinction becomes important when someone tries to use a low first score as a measure of being close to an average shape. A distance across multiple retained directions, or a comparison in the original measurement space, would be needed to answer that different question.
The unretained direction can matter even when its share of overall variance is smaller. A storage decision could depend on a specific width or on the difference between a cover's shape and a holder's dimensions. The first component, although it accounts for much of the variation in the invented four points, may not encode the dimension that controls such a decision. Compare the relevant physical measurements to the stated use instead of ranking importance by the component order. Explained variance is a description of the entered data and metric; it is not a design judgment about every possible use.
The toy's positive loadings describe a particular line, but they do not imply each real cover's width and height move together exactly. Other components describe residual directions within the retained or full space. Reversing the score orientation does not alter their contribution. The explicit projection arithmetic is helpful precisely because it lets the reader distinguish a shift in coordinates from a change in which variation was modeled. Once the mapping is transparent, a group can intentionally show shapes from the perspective most useful for the archive without having to pretend the perspective was a measurement result.
Set up a small reproduction checklist
For the invented covers a verifier can check the column means, reconstruct the centered coordinates, and compute the first and second score columns under the two orthogonal vectors. The first score column should sum to zero, and its squared sum should be fifty. The second squared sum should be eight. The sample variance ratio should not change after reversing any full score-direction pair. The extreme scores switch positions on a signed plot, but the positions reconstructed in width and height remain unchanged. These checks expose several distinct errors without needing a machine-specific convention about which sign to print.
A reproducible figure can save more than a scatter image. Keep the center, scaling, feature order, basis version, axis sign rules and the relevant scores in inspectable form. If the graph was redrawn with a different visual convention, preserve which transformed columns accompanied each label. A future analyst should be able to run the projection check without inferring model parameters from the graphic alone. Saving the comparison evidence is also the only way to distinguish a benign sign reversal from a reversed axis in the image-making stage that was never applied to the actual data.
One common comparison deserves a final qualification. Different packages can report component variances with different normalization conventions, so matching square-root values may require checking the divisor used. For example, a covariance-based quantity using the number of rows minus one is not numerically identical to a mean-square calculation dividing by the number of rows. This difference is neither a sign change nor necessarily an error. Verify the metric and denominator before comparing, and search for genuine data or preprocessing differences only after accounting for the conventions that were intentionally applied.
Give the next person enough of the original representation
A concise analysis note can preserve the input feature definitions, physical units, center and scaling, loadings, scores under those loadings, component variances, and the sign rule used for presentation. Identify the rows and any changes between releases. If the intended comparison involves a nearly tied group of components, keep its explained variance and describe which aspects of the space can be compared confidently. A future viewer should be able to tell which fixed basis was used for new projections rather than imposing a new one accidentally when recreating the chart.
When a plot contains arrows, say whether they are direction vectors, correlations, or values placed with a separate plotting scale. A principal component biplot can show both observations and variables, but how those marks are scaled changes what their distances and angles mean. In the toy a simple arrow diagram is enough. A presentation that rescales long arrows to fit the axes can help readability if it does not invite quantitative comparisons that require the original coordinates. Put the actual loading table beside it when precise interpretation matters.
A short caption can then say: “The two columns are the same chosen axis with opposite orientation. Scores on that axis were reversed alongside its loadings, so variance and reconstructed positions did not change.” That statement can be checked from the arithmetic and keeps the claim to one component. If a later analysis found a genuinely different shape, use another caption identifying the different feature basis or the direction shift after alignment. Both explanations are useful; confusing them obscures whether the data changed or only the map labels did.
The original cover still measures 23 by 34 in the toy. Its coordinate of five or minus five is a coherent alternative description of the same projection, provided it travels with its corresponding direction. Preserve the physical units, treat sign-alignment as a convention, and examine changes that survive alignment on their own merits. That is how an archive can compare principal-component maps without mistaking an arrowhead for a change in the books.