TL;DR
A Hankel matrix is a grid of numbers built from a single sequence, where each entry depends only on the sum of its row and column numbers, so the same value runs along every anti-diagonal. Its rank counts how many independent patterns the sequence contains, which is why it is a standard tool for finding hidden structure in measured data.
Builds on: Matrix, Sequence · Leads to: System Identification, Willems' Fundamental Lemma
Where it's used
Finding the order of a system. An engineer records the response of a machine, such as a motor or a bridge, to a short kick. The recorded values form a sequence, and a Hankel matrix built from it reveals how many internal states the system has. This is the core step in System Identification, where the rank of the matrix gives the order of a Linear Dynamical System.
Time-series analysis. Singular spectrum analysis, a method used on climate and economic data, stacks shifted windows of a series into a Hankel matrix and takes its singular values. The large values separate the trend and the seasonal cycles from the noise.
Data-driven control. Recent methods in control use Hankel matrices of recorded input and output data instead of an explicit model. Willems' fundamental lemma says that, under conditions, the columns of such a matrix span every possible short trajectory of the system, so a controller can be designed directly from the recordings.
How it works
Start with a sequence of five numbers, , , , , . Each step adds one idea.
-
Choose the size. Use a 3 by 3 matrix. Its entries will come from the sequence, and the rule is , where is the row and is the column. Check: the largest index used is , which is in the sequence.
-
Fill the first row. Row 1 uses : the entries are , which are . Check: the first row starts with the first number of the sequence.
-
Shift for each new row. Row 2 uses : the entries are , which are . Row 3 gives . Check: each row is the one above it shifted one place to the left.
-
Notice the anti-diagonals. Put the three rows together:
Along the anti-diagonal from the top right to the bottom left, all three entries are 3. Check: the entries , and all have , and each equals .
-
Count the independent rows. Row 3 equals : indeed . So only two rows are independent, and the rank is 2. Check: the rank is 2 because the sequence follows a rule that uses the two previous values, .
- sequence s_n
The math
Given a sequence , the by Hankel matrix has entries for row from 1 to and column from 1 to , where . Every entry depends only on , so it is constant along each anti-diagonal. A square Hankel matrix is symmetric: .
Step 1 in symbols
For a 3 by 3 matrix, the largest index is , so five values of the sequence are used. This is why must hold.
Step 2 in symbols
Row has , so the first row is .
Step 3 in symbols
Moving down one row shifts the window one place along the sequence: . This is the defining shift property. For example, .
Step 4 in symbols
Entries with the same are equal, because each equals . On the anti-diagonal the value is . Because depends only on , the matrix is symmetric: swapping and leaves the sum unchanged.
Step 5 in symbols
The rank is the number of independent rows. Here , so the rank is . If a sequence obeys a linear recurrence of order , meaning for fixed numbers , then for large enough Hankel matrices the rank is at most . Here with and .
Worked examples
- Take the sequence , , .
- A 2 by 2 Hankel matrix uses , so , .
- Row 2 is and .
- The matrix is .
- Interpretation: the matrix is symmetric, and its two entries on the anti-diagonal are both 7.
- Take the sequence of squares : .
- The 3 by 3 Hankel matrix is .
- Compute the Determinant: .
- Evaluate: .
- Interpretation: the determinant is not zero, so the rank is 3. The squares satisfy a recurrence of order 3 (the third differences are constant), so rank 3 is the expected answer.
Sample a single-frequency signal at five times, so that for . The values are , , , , . The 3 by 3 Hankel matrix starts with the rows and .
- A cosine satisfies , with .
- Apply it to the rows: .
- Multiply out: the first entry is , which matches up to rounding, the entry at .
- The second entry is and the third is , matching the last row up to rounding.
- Interpretation: the third row is a combination of the first two, so the rank is 2. A single sinusoid needs only two numbers to describe its pattern.
Try it: the entry at must equal . What is its value? Answer: , which matches up to rounding.
Common mistakes and tradeoffs
Hankel and Toeplitz are the same. It is tempting to think a Hankel matrix is any matrix with equal diagonals. In fact a Hankel matrix is constant along anti-diagonals, where is fixed. A Toeplitz matrix, which has equal diagonals where is fixed, is a different shape of the same idea. Check which index sum or difference stays fixed before you name the matrix.
A low rank means something is wrong. It is tempting to think a Hankel matrix must have full rank. In fact a low rank is the useful signal: it says the sequence follows a short recurrence. Noisy data usually raises the rank, so methods look for a clear drop in the singular values.
The matrix must be square. It is tempting to think a Hankel matrix must be square. In fact it can be rectangular, as long as does not exceed the number of values in the sequence. Block Hankel matrices stack vector-valued samples and are used in control.
Use a Hankel matrix when your data is a sequence whose entries shift as you move along a window, such as recordings, time series or impulse responses. Do not use it when the entries are unrelated, since the structure would be false. For the rank to be meaningful, you need enough data: a matrix that is too small cannot reveal a long recurrence.
History
The matrices are named after the German mathematician Hermann Hankel, who studied their determinants in the 19th century. In 1966 Ho and Kalman showed that the Hankel matrix built from a system's impulse response leads to a state-space model of the system, and that the rank of that matrix gives the system's order. This made Hankel matrices a central tool in system identification, and later in data-driven control.
Recap
- A Hankel matrix has : constant along each anti-diagonal and symmetric when square.
- Moving down a row shifts the window one place along the sequence.
- The rank of a large Hankel matrix equals the order of the recurrence the sequence obeys.
- A sinusoid gives a Hankel matrix of rank 2.
- Next: System Identification uses this rank to find the order of a system, and Willems' Fundamental Lemma builds controllers from Hankel matrices of recorded data.
Check yourself
QuestionRecall: In a Hankel matrix, what stays the same along each anti-diagonal?Show answer
The entries stay the same, because depends only on , which is constant along an anti-diagonal.
QuestionComputation: For the sequence , , , , write the 2 by 2 Hankel matrix and find its rank.Show answer
The matrix is . Its determinant is , which is not zero, so the rank is 2. (Adding would give a 3 by 3 matrix of rank 2, because this sequence is arithmetic, as in the walkthrough.)
QuestionWhy: Why does a rank-2 Hankel matrix suggest that the sequence follows a two-step recurrence?Show answer
Rank 2 means the third row is a fixed combination of the first two, as in the walkthrough, where row 3 row 2 row 1. Read entry by entry, that row relation is with fixed numbers and , so each new value is determined by the two before it.
QuestionApplied: A measured sequence gives a 5 by 5 Hankel matrix with singular values 10, 7.9, 0.02, 0.01 and 0.01. What is the best estimate of the system order?Show answer
The values drop sharply after the second one, so the signal is dominated by two directions. The best estimate of the order is 2. The small values near 0.01 to 0.02 are most likely noise.