Set two instrument cases next to each other on a bench. Their lids differ in width by one centimeter, and their masses differ by one hundred grams. An analyst enters the differences as one and one hundred and builds a squared distance by adding their squares. The result is 10,001. Another analyst says that one centimeter and one hundred grams are the reference increments of interest and divides each difference by its corresponding reference before squaring. Now both differences are one and the squared distance is two. Neither person altered a case. They changed what the columns contributed to the calculation.

The raw result is not a distance measured in centimeters, grams, or any physical combination of the two. It is a number in a coordinate system whose choices were left implicit. The scaled result is a dimensionless sum of squared differences in units of declared reference increments. It is not a newly accurate reading of how far apart the cases are on the bench. It answers a different, better described question: how far apart are these feature records when a difference of one centimeter means one step on one axis and a difference of one hundred grams means one step on the other?
The bookend of the article is the possibility that clusters change when the numerical convention changes. That possibility is not a claim that every cluster must change. Nor does the two-case distance by itself show that a particular grouping program will move a particular object. To see a grouping change, we will use a second small example with more cases and account for the alternative pairings directly. The separation matters: a pairwise calculation explains the geometry, while the clustering example demonstrates what that geometry can do.
Toy squared distances under two conventions
Illustrative only. Invented values, not taken from a source dataset or an official target. The unit is numeric distance squared. The bars describe different coordinate conventions, not interchangeable readings of one physical quantity.
| Convention | Numeric distance squared |
|---|---|
| Unscaled numeric calculation | 10001 |
| Scaled by stated references | 2 |
For the first bar, take the entered width difference of 1 and the entered mass difference of 100. Square each separately and then add: 1 squared plus 100 squared is 10,001. Do not square their sum; that would be another operation. The table leaves off a physical unit because the addition was made on numeric coordinates without a common physical unit. The physical quantities remain distinct, even though a software routine can sum their entered numbers.
For the second bar, divide the width difference by one centimeter, yielding one reference-width increment. Divide the mass difference by one hundred grams, yielding one reference-mass increment. Squaring and adding those normalized differences gives one plus one, or two. The resulting value is in squared numerical coordinates normalized to these references. You could take the square root to report Euclidean distance under that convention, giving the square root of two. The queue chart uses the squared quantity, so neither square root belongs in the bars.
A linear bar chart spanning 10,001 and 2 can make the second bar nearly invisible. That technical inconvenience is a useful editorial warning. The large numerical ratio is not evidence that two is objectively superior or that the cases became thousands of times closer physically. It indicates arithmetic on two different axis conventions. Showing exact values next to the bars and repeating them in a table preserves the meaning even if the tiny bar becomes hard to see. A different graphical scale might change the visibility; it would not change which convention the values came from.
Unit conversion exposes an implicit choice
Imagine the first analyst sends the sheet to a colleague who routinely records mass in kilograms, not grams. The cases now differ by a recorded mass number of 0.1, while the width difference stays one centimeter. The raw squared calculation becomes one plus 0.01, or 1.01. This does not mean the cases underwent a third physical change. It reveals that the unscaled calculation implicitly gives different influence to a gram-coded feature and a kilogram-coded feature. If the analyst cared which labels were attached to the apparent distance, this result should prompt them to identify their chosen numerical geometry.
By contrast, a declared physical reference should be converted consistently with the measurement. One hundred grams is 0.1 kilograms. Divide the kilogram difference, 0.1, by the kilogram reference, also 0.1, and the contribution stays one before squaring. The width contribution stays one as long as its reference also follows the measurement unit. Nothing forces the analyst to choose these two references, but once chosen they can be represented consistently in multiple unit systems. That invariance is a useful property when the units are just alternative encodings of the same measurement.
This distinction applies whether the numerical columns look dramatically different or deceptively similar. If width is in centimeters and mass is in kilograms, their common-looking decimals may feel comparable. The underlying choice is still there. A difference of one in the width column and one in the mass column would mean a centimeter and a kilogram respectively. Equal-looking digits are not an argument for equal importance. If an analysis deliberately assigns them equal numerical weight, it should state what those digits stand for and why their tradeoff fits the question.
One can think of a reference scale as a declaration about how changes enter a comparison, not an assertion that two different physical changes are substantively identical in all respects. For a packing problem, a centimeter could represent a meaningful shelf clearance; for a shipping problem, one hundred grams might represent a workload distinction. The present reference numbers are illustrative, not official standards or tolerances for instrument cases. Defining them makes the weighting explicit. It does not tell us that real decisions about size and mass should give those two differences identical priority.
From distance to a group
The R k-means documentation identifies the relevant objective: partition points into a chosen number of groups with an aim of minimizing the total squared distances of points from their assigned centers. The center of a group for this objective is its mean coordinate vector. This description makes the effect of coordinate scaling intelligible. A feature given a large numerical contribution can dominate the cost of placing observations together. Scaling the feature changes that cost, so a different partition can become preferable under the revised objective.
Consider two cases grouped by themselves. Their center is halfway between their coordinates. Their total squared distance to that center is half their squared distance from one another. The algebra follows from halving each coordinate difference for each case, squaring the halves, and adding two equal contributions. That identity is useful below because it lets us compare small candidate pairings by hand. It does not imply that k-means generally groups every nearest pair greedily; larger groups have joint centers, and assigning one member can alter the costs of assigning others.
A cluster center can also be a synthetic point. Its mean width and mean mass need not be the exact measurements of any real case. In arithmetic terms it is the point associated with minimum within-group squared deviations for that group. In editorial terms it is a summary, not the pictured object that automatically stands for every member. Rescaling preserves the fact that a center is a mean in the transformed coordinates. What may change is which observations determine that mean. A report that shows centers but not memberships can obscure this part of the story.
Four cases make the switch visible
Place four invented records at the corners of a simple feature rectangle. Case A has a width of 40 centimeters and a mass of 2,000 grams. Case B is 41 centimeters and 2,000 grams. Case C is 40 centimeters and 2,050 grams. Case D is 41 centimeters and 2,050 grams. These values are a second example, distinct from the pair that differs by one centimeter and one hundred grams. They are chosen to show a change of best grouping without the need to rely on a particular random start.
Suppose we ask for two nonempty clusters and compare the sums of squared deviations. Under the raw convention, grouping A with B and C with D keeps each group at one mass level. A and B differ by one width unit and no mass units, so their pair contributes one half of one squared, or 0.5. C and D contribute the same. The total is one. Grouping by width instead, with A next to C and B next to D, gives pairs that differ only by fifty mass units. Each contributes half of fifty squared; together they contribute 2,500. The large numeral in the mass column is decisive here.
Now divide the width values by one centimeter and the mass values by one hundred grams. Width separation remains one transformed unit, while mass separation is one half. Grouping by mass still gives a total cost of one because the differences within those pairs are all in width. Grouping by width now costs one quarter: each width-matched pair differs by one half in the transformed mass coordinate and contributes one half of the square of that difference. The larger of the two transformed separations is now width, so eliminating within-group width differences yields the smaller squared objective.
It is worth checking that those two candidate groupings are not simply beating each other while some third option wins. For four distinct records and two nonempty groups, the layouts include a pair against a pair or a singleton against a triple. The third pairing puts opposite corners in each pair. Each of its within-pair distances uses both dimensions, so its cost is the sum of the two coordinate separations squared. That is 2,501 raw or 1.25 scaled. The triple case can be checked because any three corners span one whole side of each coordinate with one level appearing twice. Along each axis its total squared deviation is two thirds of the separation squared, while the singleton costs zero. The triple therefore costs two thirds of 2,501 raw or two thirds of 1.25 scaled. Both exceed the respective winning costs.
This proves a switch in the optimal partition for the invented four records. It is not only a switch in the first solution returned by a software run. The raw objective favors the two equal-mass pairs; the scaled objective favors the two equal-width pairs. Nothing in the derivation says either solution is universally correct for organizing actual instrument cases. It does say that an algorithm optimizing the specified objective can legitimately return a different answer when the input geometry changes. The material cases, the two dimensions recorded, and the number of requested clusters were held fixed.
The example also makes clear why the chart's two-case numbers did not by themselves prove a switch. A cluster compares relative costs across many possible assignments. If every relevant difference shrank by the same factor, the best partition would not change merely because all costs were smaller. If a collection had an overwhelming separation aligned with both dimensions, a change of scale might leave the memberships intact. Here the two dimensions compete: one suggests grouping by mass and one by width. The reported switch becomes possible because changing their relative influence changes the ordering of candidate costs.
Scaling and centering are not the same move
The R documentation for centering and scaling matrix-like objects separates column centering from scaling and documents numeric vectors for declaring column-specific values. Centering subtracts a chosen reference location from every value in a column. When the subtraction is the same for every case, pairwise differences in that column do not change. Scaling divides by a specified quantity and does change the coordinates of differences. The two operations often appear together in an analysis pipeline, but they should not be credited with the same geometric effect.
For example, subtract 40 centimeters from each width in the four-case rectangle and 2,000 grams from each mass. The large coordinate offsets vanish, but the separations remain one centimeter and fifty grams before scaling. If cases A and C had identical widths before centering, they still do. If B and D differed by fifty grams, they still do. These statements are exact for the same offsets applied to all cases. Centering can be helpful for interpretation or computation, but it cannot solve the unequal relative contributions illustrated by the raw squared calculation.
The default settings of a software command are another question. A predefined physical reference is not the same as a sample standard deviation. Standard-deviation scaling responds to the spread of observations in the dataset; a fixed physical reference can deliberately remain unchanged when a new batch arrives. The R manual explains the behavior of its column operations for stated choices. It does not decide which choice best serves a curator's question. A report that says only “we called a scaling function” leaves the substantive weighting unexplained, even if the command executed without error.
A useful way to describe fixed reference scales in this example is to hold the measured columns and specify separate divisors in their own units. If the stored columns contain centimeters and grams, the numeric reference values are one and one hundred. If they contain centimeters and kilograms, the corresponding second value is one tenth. Refer to the columns in the order assumed and state the units next to the scale values. If an editor copies only the two divisors into a methods note and drops the column labels, the note does not tell the next reader which geometry was actually used.
What equal numerical influence does and does not mean
The chosen reference scales make a one-centimeter difference contribute the same squared amount as a one-hundred-gram difference when considered alone. That is an explicit tradeoff for this convention. It is not a claim about equal physical severity, cost, or convenience. If the comparison's goal is to fit cases safely within a fixed space, lid width might matter in a discontinuous way near a limit. If the goal is to organize stock for hauling, mass might be more relevant. A distance metric serves a particular use. It does not turn features into universal measures of similarity.
The same point can be expressed with weights. After squaring, division by a reference scale of two would reduce that feature's squared contribution to one quarter of its unscaled value. A feature's effect on the objective is therefore tied to the square of the inverse divisor, not merely the fact that numbers got smaller. This is why unit changes that look modest can matter noticeably in a squared objective. It is also why a report should not compare two different scaling conventions by inspecting an unlabeled total cost. The costs each reflect their respective weighting rules. An unrelated analytical choice is how many adjacent features represent much the same concept. Suppose one analyst includes both mass in grams and mass in kilograms as separate columns. The two columns describe the same underlying observation. Even after sensible conversion of their scale references, counting both can double that signal's contribution relative to width. A report can accidentally overweight a concept through feature repetition as well as through the numerical units on one column. Declaring scales is a necessary part of defining its geometry, not a substitute for deciding which features belong in the comparison.
Some feature tradeoffs may be unsuitable for a smooth distance altogether. If an object exceeds a rack's width limit, a sufficiently small mass does not make it fit. A squared distance can treat benefits along one coordinate as offsetting costs along another in the comparison of possible neighbors. A hard rule about eligibility might require an explicit filter or a separately reported constraint rather than another coefficient in a distance formula. The two-case arithmetic shows how a metric weights differences; it does not show that this metric should replace every operational rule about the actual objects.
One kind of scaling can reveal structure and another can obscure it
Data-dependent scaling can be helpful when the goal is to ask whether measurements differ by a notable share of their usual spread. A feature varying widely in raw numbers may otherwise overwhelm another feature with a narrow but meaningful range. Giving deviations their empirical scale can restore visibility to the narrower feature. Yet a small empirical spread is not necessarily evidence that every small difference matters. It could reflect a measurement that varies only modestly or one measured with limited resolution. Applying a rule without checking the measurement context can inadvertently magnify noise.
With a fixed reference, the analyst is stating in advance which increments should be comparable. This can make successive groups of objects easier to compare because the geometry remains the same. The tradeoff is that a chosen reference might be poorly matched to a later collection with materially different sizes or uses. One cannot infer whether the reference is defensible from the numerical proximity it creates. The right question is how the reference was chosen, what practical meaning it has, and whether that meaning still applies to the intended analysis.
A standard deviation computed from the data can also have limitations when the feature is constant. A constant column provides no observed differences and has zero standard deviation. Dividing by zero is not a usable geometry. The practical analytical question becomes whether to omit a feature with no variation in that dataset, describe it independently, or use a separately defined nonzero reference for a comparability purpose. None of these choices changes the fact that observed pairwise differences in the constant column are zero. It changes how the analysis documents the feature and how it might handle future values not yet represented.
Highly unusual values can affect empirical scale as well. Imagine a collection where nearly all cases have similar masses and one unusually massive object enters the sheet. If the mass divisor is derived from the combined spread, existing objects might have numerically closer scaled masses even though no label or measurement changed for those objects. The transformation responded to the changing set. A fixed-reference process would not make that particular change to existing coordinates. This does not establish that one choice is always better. It explains why publication dates, reference populations, and scaling rules can affect reproducibility and comparison across editions.
What would count as a stable result?
A useful stability question declares the perturbation first. If mass is simply reported in another unit and the physical reference scales are converted consistently, the scaled geometry should agree. One can check that invariance without guessing the intent of a cluster. If the references themselves are changed to reflect a different practical purpose, there is no requirement that the clusters stay the same. A changed result then communicates sensitivity to the weighting decision. Confusing those two kinds of change can cause a perfectly reproducible analysis to be labeled fragile, or a convention-sensitive grouping to be labeled an enduring property of the objects.
There is another stability issue inside the clustering computation. Many methods that search for clusters can reach different solutions depending on starting values or algorithmic choices. The R documentation distinguishes algorithms and discusses multiple random starts. If two runs disagree after a unit change, the discrepancy might reflect altered geometry, a different start, or both. The four-case example avoids that ambiguity by explicitly comparing the possible partitions. For a larger report, document initialization and assess whether distinct solutions represent distinct memberships rather than merely swapped group labels. Cluster numbers are names, not an intrinsic rank.
Suppose a raw run assigns cases A and B to group one and C and D to group two. A second output assigns C and D to group one and A and B to group two. Nothing moved as a partition. Only the labels changed. In contrast, the switch to width grouping puts A with C and B with D. That is a difference in which cases belong together. A report comparing partitions across conventions can describe memberships or shared pairs before treating any label change as meaningful. This is another example of when numbers have a procedural role rather than a measurement role.
A shifted partition is not automatically a problem requiring a winner. Suppose the mass-oriented groups are useful to describe handling arrangements, while the width-oriented groups are useful to describe fitting cases into different spaces. Both can be valid analytical summaries if labeled for their purposes. An unsupervised method does not announce which use was intended. It finds a structure under the conditions supplied to it. This is why report titles such as “grouping by the declared width–mass reference scales” are stronger than “the true case types.” The first describes something a reader can reconstruct. The latter claims something that the distance objective did not establish.
A minimal record another reader could reconstruct
List the measured features with units, the chosen transformations, the scale references with units, and the clustering objective and number of groups. Include enough detail to identify which records entered the fit, especially if some were omitted or transformed under missing-data rules. Keep the original measurements available where appropriate and display the scaled version separately. If records are compared over time, note whether the references are fixed or derived from each batch. These details can be written compactly; the point is not to overwhelm the reader with logs but to identify what makes the geometry reproducible.
A note on sensitivity can likewise be short. It might say that equivalent reporting units produced the same scaled coordinates when references were converted, but a different defensible reference changed some memberships. Or it might report that several examined scale choices produced the same partition for a selected number of clusters. Neither sentence establishes that every possible analysis would give the same answer. Both are evidence about the changes actually examined. Showing this scope gives a practical reader information they can use without forcing them to infer it from a glossy grouping chart.
Another check asks what exact case a reader can verify by hand. The width difference of one centimeter and mass difference of one hundred grams supplies a useful test pair. The reviewer should obtain 10,001 from entered raw values in centimeters and grams and two after matching each difference to its reference. A kilogram-coded test can then verify that the reference-scaled pair stays at two. The cluster example supplies a second test at a different level. Unlike a large set of output numbers, these small targets expose whether the preprocessing and the interpretation agree.
Comparability across datasets requires particular care when reports present total within-cluster sums of squares. A low value can result from a finer or coarser scale convention, a different number of cases, a different cluster count, or a genuinely tight set of groups. It is not a universal score comparable across arbitrary geometries. Even in the four-case construction, comparing the winning raw cost of one with the winning scaled cost of one quarter is not a fair vote on which system represents the objects better. Each wins within its own objective. A review concerned with fit can compare candidate partitions within stated conventions rather than conflate cost units.
Neither weights nor units are a substitute for checking measurements
Suppose that widths are printed to the nearest centimeter and masses to the nearest gram. A one-unit difference in the width column may be close to the scale on which the width instrument or archive distinguishes measurements, while a hundred-gram difference may be far above the mass resolution. The reference increments are still legitimate to declare for the analytical question. But the report should not suggest that two equal squared contributions have equal certainty. Geometry describes how deviations are weighted. Measurement quality describes what confidence those deviations deserve. These questions can interact without becoming the same question.
A related problem arises if one recorded column has a hidden systematic shift between groups. Imagine that one set of cases was measured with the lid closed, and another set was measured across a protruding latch. Both could appear under the simple heading lid width even if they encode subtly different quantities. Adjusting the scale to make those differences quieter does not resolve the definition mismatch. The first task is to determine whether the feature represents the same object property across rows. Once the measurement is settled, the reference scale can express its intended role. Reversing those tasks can turn a data problem into what looks like a substantive cluster.
Geometry also makes missingness consequential. Consider an invented row where the mass is absent. If the software silently treats it as zero, the case might look unlike every other object even though the zero was never measured. If the software drops the row, the set of included cases and centers can change. A carefully justified estimate could be appropriate for a particular use, but it carries uncertainty that neither original bar chart measures. The important point for this feature is to distinguish the recorded measurement, the declared divisor, and the status of a missing value. Each answers a separate question about why the input to the clustering routine looks the way it does.
Ask what happens near the crossing point
The four-case example can be read as a competition between two simple distances. With a width separation of one in the width coordinate and a mass separation of fifty in the gram coordinate, the grouping changes when the normalized separations exchange their relative sizes. Hold the width divisor at one centimeter for the fictional rectangle. A mass divisor of fifty grams makes the two normalized side lengths both one. Under that particular convention, grouping by width and grouping by mass have the same objective value. A result that depends on breaking the tie should not be presented as evidence that one dimension naturally dominates the other.
Now imagine a mass divisor slightly below fifty grams. The transformed mass separation becomes a little larger than one, so holding mass fixed within each group again has a lower cost. A divisor slightly above fifty grams does the opposite. Those nearby conventions are not numerically extreme, and the records have not changed at all. The grouping can still switch sharply because choosing a partition is a discrete step. The underlying distance changes smoothly with the divisor. A colorful two-group diagram can conceal the nearness of another equally persuasive partition if the report never asks how close the costs were.
This suggests a useful sensitivity report beyond simply naming the winning partition. State whether another plausible partition had a nearly identical within-cluster cost under the same convention, or whether the winner remained substantially better than the other reasonable candidates. In a large dataset, complete enumeration will usually not be as practical as it is in the rectangle. One can still distinguish an explored set of alternatives from a guarantee that no others exist. That distinction helps readers assess whether the reported grouping is a crisp summary under the adopted choices or one of several close descriptions.
Scaling a display is not scaling an analysis
An axis drawn on paper can be stretched for readability after the computation is complete. That visual change need not affect any cluster assignment. In contrast, changing the numeric feature coordinates before computing distances can change the optimization. It is possible to plot an unscaled partition on normalized axes for explanatory purposes, but the legend should say that the plotted coordinates and the fitted coordinates differ. Otherwise a reader might look at the displayed distance and naturally wonder why the apparent nearest cases were not grouped together. The answer would be that the plot was showing a geometry the analysis did not use.
A publication could also use a balanced-looking aspect ratio to make width and mass variation appear equally prominent even when the original numeric scaling allowed one feature to dominate. The opposite mistake is to draw a plot where a meaningful variation is nearly invisible and assume that the algorithm ignored it. Neither follows from the graphic alone. A graph has coordinate units and a visual layout; a distance calculation has inputs and an objective. If both are disclosed, a reader can learn from the graphic without treating every centimeter on a screen as a numerical step in the analysis.
An effective caption can therefore describe three things in sequence. First, identify the raw records and units. Second, say which transformations were actually applied when fitting groups. Third, state how the displayed axes represent those records or group centers. In the toy chart the values are paired squared quantities under two declared conventions, so no claim about an axis view of the collection is needed. In a full clustering report, that separate display note may prevent a long chain of misunderstandings. It is a small editorial expense compared with asking readers to reverse engineer the feature geometry from the arrangement of dots.
Finally, if an illustration contains a measuring tape and a scale, the objects should not be treated as records of the invented data. They remind readers that equipment reports quantities under units. The article supplies the cases and the arithmetic independently. This separation between visual illustration and evidence is parallel to the separation between a cluster plot and the calculation that underlies it. Show both when they help. Let neither secretly substitute for the other.
Make the visible claim match the invisible calculation
Imagine a caption that says the cases were very different under the first analysis but nearly identical after scaling. That wording sounds as if something happened in the collection. A stronger version says the two recorded differences contributed very unequally when the columns were taken as raw numbers, and equally when the specified unit increments were used. Now the caption identifies which part of the result changed. It also gives readers a useful question to ask next: is equal contribution for those increments the intended choice for the comparison?
A smaller wording error calls the scaled distance “two centimeters.” The output does not inherit the width unit when the input includes width; the ratio to a centimeter and the ratio to a hundred grams have each been expressed numerically in their own reference increments. Squaring and adding those normalized quantities yields two, not a physical length. The raw result is even less suited to an ordinary unit because the entered coordinates had incompatible meanings. A well-labeled table can make these distinctions immediately apparent. No reader should have to guess whether the author measured an object or compared data records.
Finally, the title is about interpretation, not a rejection of grouping. There really can be meaningful groups of cases. A distance-based analysis can reveal patterns a reader would not notice from one feature alone. It can also create groups aligned to a choice of measurement scale. By putting that choice on the page, the author does not throw away the result. The author supplies enough information to see which similarities would survive a mere unit conversion and which depend on the decision to emphasize one kind of difference over another. That is a better basis for trusting a result than simply seeing distinct colors in a plot.
Return to the two cases on the bench. They never changed width or mass while we went from 10,001 to two. What changed was the question we represented in the coordinate space. Once each axis has its unit, reference, and intended role, a cluster can become a useful statement about similarity under a defined convention. Until then, a cluster may tell readers more about the way a spreadsheet stored the numbers than about a meaningful grouping of the objects.
Sources
- R statistical manual, K-Means Clustering. Primary documentation for the partitioning objective, centers, within-group sums of squares, and labeling.
- R base manual, Scaling and Centering of Matrix-like Objects. Primary documentation for column-specific transformations and declared inputs. Neither source supplies the invented case measurements or chart values.