Skip to content
Glacius
Linear algebraConcept reference

Singular values

Exact rank is the number of nonzero singular values.

On this page 9 sections
  1. Overview
  2. Understand the idea
  3. Every exact positive scale counts, however small
  4. Suppose a channel edit changes complete singular scales (6,2,0) to (6,0,0)
  5. With measured data, a tiny positive scale may be mostly noise
  6. Key takeaway
  7. Further questions
  8. Sources & further reading
  9. Concept connections

01Understand the idea#

A singular value tells you how strongly a matrix stretches one of its special input directions. In Avi=σiuiAv_i=\sigma_i u_i, both direction vectors have length 1. The output therefore has length σi\sigma_i. These scales are nonnegative; a negative coordinate elsewhere in the factorization is not a negative singular value.

Picture measurements that respond strongly to one input pattern and not at all to another. A zero singular value means changing the input along that second direction changes none of the outputs. Counting directions that survive tells us how many independent directions the matrix can produce: its rank.

A positive singular scale preserves its direction; a zero scale removes it. Complete scales (4,2,0)(4,2,0) preserve two independent directions, so the rank is 2.

Singular scales 4, 2 and 0 share one vertical scale. Two positive bars encode rank 2; the zero is marked at the baseline.Singular scales 4, 2 and 0 share one vertical scale. Two positive bars encode rank 2; the zero is marked at the baseline.
Figure 1Singular scales 4, 2 and 0 share one vertical scale. Two positive bars encode rank 2; the zero is marked at the baseline.
Link to this figure ↗Download SVGDownload PNG

Count nonzero values, not their magnitudes. For a 4×34\times3 matrix with complete exact scales (5,5,0)(5,5,0), both copies of 5 count.

rank(A)=2\operatorname{rank}(A)=2

For complete exact singular values (4,2,0)(4,2,0), ask about each scale separately: 4 preserves a direction, 2 preserves another, and 0 removes one. The rank is 2. Neither the sum 6 nor the largest value 4 counts directions. Check that the list has min(m,n)\min(m,n) entries for an m×nm\times n matrix.

Check your reasoning

Matrix shape 3×43\times4. Complete exact singular values (7,2,1)(7,2,1). Give rank.

Show answer and explanation
3

3 positive scales give rank 33.

02Every exact positive scale counts, however small#

Every exact positive scale counts, however small. Scales (2,0.001,0)(2,0.001,0) give rank 2. Numerical software may choose a tolerance, but that is a separate decision; these tasks use exact values.

Check your reasoning

Shape 3×33\times3; complete exact scales (3,0.01,0)(3,0.01,0). Claimed rank 11. Repair.

  1. A1
  2. B0
  3. C2
Show answer and explanation
2

2 positive scales give rank 22.

03Suppose a channel edit changes complete singular scales (6,2,0) to (6,0,0)#

Suppose a channel edit changes complete singular scales (6,2,0)(6,2,0) to (6,0,0)(6,0,0). One active direction is removed, so rank falls from 2 to 1. Changing 6 to another positive value would preserve the count.

Check your reasoning

Complete exact scales (5,0,0)(5,0,0). Replace the second singular scale with 22. New rank?

  1. A1
  2. B2
  3. C0
Show answer and explanation
2

(5,2,0)(5,2,0): rank 22.

04With measured data, a tiny positive scale may be mostly noise#

With measured data, a tiny positive scale may be mostly noise. A numerical-rank calculation therefore needs a stated tolerance and a scale convention. These exercises supply exact values and ask exact rank; every positive value counts. This distinction matters before declaring that a dataset contains a redundant feature.

Key takeaway

Count positive singular scales once each. Zero scales do not contribute; size and repetition do not change that rule.

  • Infer rank from the nonzero singular values of a matrix.

Further questions

Does a very small positive scale matter beyond rank?
Yes. In a full-rank square system, a small minimum singular value relative to the largest can make the inverse sensitive to perturbations.

Sources & further reading

  1. [1]

Reference this concept

Link to this page, a section, or an individual figure.

Glacius. “Singular values.” Math behind ML. /learn/la-singular-values