ArticleslgStudy

mathematics

Centering matrix

Centering matrix is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Centering matrix rather than just read about it. In short: In mathematics and multivariate statistics, the centering matrix is a symmetric and idempotent matrix, which when multiplied with a vector has the same effect as subtracting the mean of the components of the vector from every component of that vector. Definition The centering matrix of size n is defined as the n-by-n matrix Cn=In−1nJn where In is the identity matrix of size n and Jn is an n-by-n matrix of all 1's.

Key takeaways

  • Centering matrix belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Centering matrix to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Centering matrix from memory before moving on to harder problems.

Reference excerpt

In mathematics and multivariate statistics, the centering matrix is a symmetric and idempotent matrix, which when multiplied with a vector has the same effect as subtracting the mean of the components of the vector from every component of that vector.

Definition The centering matrix of size n is defined as the n-by-n matrix

Cn=In−1nJn where In is the identity matrix of size n and Jn is an n-by-n matrix of all 1's. For example

C1=[0], C2=[1001]−12[1111]=[12−12−1212] , C3=[100010001]−13[111111111]=[23−13−13−1323−13−13−1323]

Properties Given a column-vector, 𝐯 of size n, the centering property of Cn can be expressed as

Cn𝐯=𝐯−(1nJn,1T𝐯)Jn,1 where Jn,1 is a column vector of ones and 1nJn,1T𝐯 is the mean of the components of 𝐯. Cn is symmetric positive semi-definite. Cn is idempotent, so that Cnk=Cn, for k=1,2,…. Once the mean has been removed, it is zero and removing it again has no effect. Cn is singular. The effects of applying the transformation Cn𝐯 cannot be reversed. Cn has the eigenvalue 1 of multiplicity n − 1 and eigenvalue 0 of multiplicity 1. Cn has a nullspace of dimension 1, along the vector Jn,1. Cn is an orthogonal projection matrix. That is, Cn𝐯 is a projection of 𝐯 onto the (n − 1)-dimensional subspace that is orthogonal to the nullspace Jn,1. (This is the subspace of all n-vectors whose components sum to zero.) The trace of Cn is n(n−1)/n=n−1.

Application Although multiplication by the centering matrix is not a computationally efficient way of removing the mean from a vector, it is a convenient analytical tool. It can be used not only to remove the mean of a single vector, but also of multiple vectors stored in the rows or columns of an m-by-n matrix X. The left multiplication by Cm subtracts a corresponding mean value from each of the n columns, so that each column of the product CmX has a zero mean. Similarly, the multiplication by Cn on the right subtracts a corresponding mean value from each of the m rows, and each row of the product XCn has a zero mean. The multiplication on both sides creates a doubly centred matrix CmXCn, whose row and column means are equal to zero. The centering matrix provides in particular a succinct way to express the scatter matrix, S=(X−μJn,1T)(X−μJn,1T)T of a data sample X, where μ=1nXJn,1 is the sample mean. The centering matrix allows us to express the scatter matrix more compactly as

S=XCn(XCn)T=XCnCnXT=XCnXT. Cn is the covariance matrix of the multinomial distribution, in the special case where the parameters of that distribution are k=n, and p1=p2=⋯=pn=1n.

References

Worked examples

Example 1 — a first encounter with Centering matrix

Start with the simplest possible case. Write down what Centering matrix claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Centering matrix before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Centering matrix ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Centering matrix

In research
Centering matrix appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Centering matrix in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Centering matrix is common in secondary-school and first-year university syllabi. It links to neighbouring topics Data processing, Matrices (mathematics), so understanding it makes those chapters shorter.
In everyday life
Look for Centering matrix outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Centering matrix” →

How to study Centering matrix in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Centering matrix means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Centering matrix out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Centering matrix in simple terms?

In mathematics and multivariate statistics, the centering matrix is a symmetric and idempotent matrix, which when multiplied with a vector has the same effect as subtracting the mean of the components of the vector from every component of that vector. Definition The centering matrix of size n is de…

Why does Centering matrix matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Centering matrix?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Centering matrix.

Tags

  • Data processing
  • Matrices (mathematics)

Keep exploring