A robot-data model fits its recorded responses almost perfectly, yet its individual coefficients change substantially after small changes in those responses. The solver can be doing its stated job correctly. The data may weakly distinguish the effects assigned to nearly parallel feature columns.

Residual size asks how well the fitted predictions match the supplied observations. Conditioning asks how much the fitted result can change when the supplied data change. A small answer to the first question does not guarantee a small answer to the second.

This article uses an invented linear model with two varying features. It is not a robot calibration experiment, an uncertainty certificate, or a diagnosis of a specific solver.

Define the features, units, and objective

Let each observation have two dimensionless normalized features, a_1 and a_2. Model a response y in millimeters as y = a_1 beta_1 + a_2 beta_2. Both coefficients consequently have units of millimeters. No intercept is included in this example.

Stacking observations gives y = A beta. Ordinary unweighted least squares minimizes the squared Euclidean length of the residual vector y − A beta.

NumPy's version 2.3 lstsq documentation identifies the residual objective and separately reports rank and singular values. The author-hosted Fundamentals of Numerical Computation chapter on conditioning distinguishes sensitivity of a mathematical problem from the arithmetic algorithm used to solve it. These references establish the terms. All data below are original.

Three rows that nearly repeat one feature

Use the following feature pairs, one pair per observation:

Row one: (1, 1).

Row two: (2, 2.001).

Row three: (3, 2.999).

The two feature columns are close, but they are not identical. Their differences down the rows are 0, 0.001, and −0.001.

Choose coefficients beta_1 = 2 mm and beta_2 = 3 mm. The modeled responses are:

Row one: 5 mm.

Row two: 10.003 mm.

Row three: 14.997 mm.

Each prediction matches its supplied response exactly, so the mathematical residual is zero. The columns are linearly independent, making the coefficient vector unique for these exact data. A computer's small rounding residual would be a separate numerical detail.

Perturb only the responses

Keep the feature matrix unchanged. Change the response vector by:

Row one: 0 mm.

Row two: +0.1 mm.

Row three: −0.1 mm.

The new supplied responses are 5, 10.103, and 14.897 mm. Each changed value differs from the original by at most 0.1 mm.

Now choose beta_1 = −98 mm and beta_2 = 103 mm. Check the predictions:

Row one gives −98 + 103 = 5.

Row two gives −196 + 206.103 = 10.103.

Row three gives −294 + 308.897 = 14.897.

The residual is again exactly zero. Both coefficients have changed by 100 mm in opposite directions even though the largest response perturbation was 0.1 mm.

This is not two different answers to one unchanged dataset. Each full-rank dataset has its own unique exact fit. The issue is that a small change to the supplied responses causes a large change in that fit.

The weak direction is visible algebraically

The coefficient change is delta_beta = (−100, +100) mm. Multiplying it by A gives 100 times the difference between the second and first feature columns:

A delta_beta = (0, +0.1, −0.1) mm.

Its Euclidean length is approximately 0.141421 mm. The coefficient-change length is approximately 141.421 mm. In this particular direction, the features reduce a large coefficient change to a response change one thousand times smaller.

This directional ratio is not a complete condition number or a universal error bound. It directly exhibits one poorly distinguished combination of coefficients for the stated matrix and units.

Writing gamma = beta_1 + beta_2 makes the structure clearer. The model becomes:

y = a_1 gamma + (a_2 − a_1) beta_2.

Both fits have gamma = 5 mm. The coefficient beta_2 multiplies a feature difference whose magnitude is only 0.001 in the last two rows. Large changes to that coefficient can therefore produce relatively small changes in the recorded predictions.

A small residual cannot settle a different prediction

At a hypothetical new feature pair (1, 0), the first coefficient vector predicts 2 mm. The second predicts −98 mm. Their predictions differ by 100 mm.

This feature pair differs substantially from the nearly equal-feature relationship present in the original observations. It exposes the distinction that the existing rows weakly constrain.

The calculation does not establish that either response is physically correct at that new pair. It shows why agreement on the recorded data does not automatically establish stable predictions throughout another feature region.

Rank and conditioning answer different questions

If the two feature columns were exactly identical, only their coefficient sum would matter. Infinitely many coefficient pairs with the same sum would fit the corresponding exact responses. That would be a rank-deficient, nonunique problem.

The original matrix is different: its columns are independent, so the answer is unique for exact data. They are nevertheless close enough that the response perturbation produces the large coefficient change demonstrated above. Exact uniqueness is not the same as practical insensitivity.

Likewise, adding more rows that reproduce essentially the same feature relationship does not automatically supply the independent variation that distinguishes the coefficient effects.

Numerical precision and modeling choices remain separate

The constructed sensitivity exists in exact arithmetic. More decimal places in a solver can reduce arithmetic error without removing uncertainty or perturbations already present in the input data.

Feature units and parameterization also affect how coefficient magnitudes and condition measures are interpreted. The dimensional conventions were fixed here so the comparisons refer to the same problem. A change of scale can improve numerical representation without creating new observations.

Additional assumptions, such as regularization, can prefer one coefficient vector, but they change the fitting problem. A resulting preference should not be presented as information supplied solely by the original rows.

For robot-data interpretation, retaining residual definition, feature relationships, rank information, and sensitivity evidence gives a fit a clearer meaning. A nearly perfect match to observations can coexist with a poorly determined separation of coefficient effects.

Sources checked October 23, 2026

NumPy, numpy.linalg.lstsq, official version 2.3 documentation:

https://numpy.org/doc/2.3/reference/generated/numpy.linalg.lstsq.html

Fundamentals of Numerical Computation, author-hosted online text, Problems and Conditioning:

https://fncbook.com/conditioning/

The FNC web chapter does not display a page-specific revision date; none is inferred. All feature rows, responses, and perturbations are hypothetical. No source arrays, worked examples, or software outputs are reproduced.

Illustration note: An accompanying generic robot or computing scene is a concept illustration. It does not show an actual fitted dataset, a measured residual, or validated model coefficients.