Statistical Methods

Assess sensitivity before trusting a two-variable linear solve

Define the task

A linear-system solution can have a small residual while remaining sensitive to small changes in the inputs. Record matrix scaling and the norm used to report its condition number. For the spectral condition number, divide the largest singular value by the smallest. A singular matrix has no finite value under this definition.

Carry out the check

Test both the actual coefficient matrix and a deliberately perturbed right-hand side. Relative forward-error bounds depend on conditioning and on the type and size of perturbation. Treat a condition number as a sensitivity diagnostic. It is not an automatic count of correct decimal places or a statistical goodness-of-fit score.

Worked hypothetical example

A hypothetical diagonal matrix with entries 1 and 0.001 has spectral condition number 1000. Solving against a right-hand side of (1,0) gives (1,0). Changing only the second right-hand component to 0.001 changes the solution to (1,1). Multiplying the entire matrix by a nonzero constant leaves the condition number unchanged. Rescaling only one coordinate can change it, so preserve the unit convention in any comparison.

Method checked 12 November 2026 against R documentation: Compute or Estimate the Condition Number of a Matrix.

Open the two-variable spectral condition check.

Download the linear-system perturbation record.

Related reading

Reading path: Analyze data. Guide 127 of 132. Choose any guide to suit your project.

Statistical Methods

Use a determinant to check a two-variable transformation

Interpret determinant magnitude and orientation for a two-variable transformation. Includes a worked matrix example and reproducibility checks.

Statistical Methods

Audit a linear-system result with its residual

Check a computed linear-system solution using its residual.

Browse this reading pathTools for this stageGuides and downloads for this stage