AI engineering glossary · Linear algebra

What is projection matrix?

Projection matrix (also called Hat matrix): A matrix P that performs a projection when it multiplies a vector, satisfying P times P equals P because projecting twice changes nothing. For projection onto the columns of X it equals X (X^T X)^-1 X^T, the 'hat matrix' of regression.

Level: advancedTopic: Linear algebra

Projection matrix: an example

P = [[1,0],[0,0]] projects any 2-D vector onto the x-axis: P [3, 4] = [3, 0].

Related terms

More Linear algebra terms

Where you learn it

Projection matrix is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.