Questions tagged [projection-matrices]

This tag is for questions relating to projection matrix, which is an square matrix that gives a vector space projection from to a subspace.

Let $~x ∈ E^n = V ⊕ W~$. Then $~x~$ can be uniquely decomposed into $$~x = x_1 + x_2~ \qquad(\text{where $~x_1 ∈ V~$ and $~x_2 ∈ W~$})~.$$ The transformation that maps $~x~$ into $~x_1~$ is called the projection matrix (or simply projector) onto $~V~$ along $~W~$ and is denoted as $~φ~$. This is a linear transformation; that is, $$φ(a_1~y_1 + a_2~y_2) = a_1~φ(y_1) + a_2~φ(y_2)$$ for any $~y_1,~ y_2 ∈ E^n~$. This implies that it can be represented by a matrix. This matrix is called a projection matrix and is denoted by $~P_{~V \cdot W}~$ .

The vector transformed by $~P_{~V \cdot W}~$ (that is, $~x_1 = ~P_{~V \cdot W}~ x$) is called the projection (or the projection vector) of $~x~$ onto $~V~$ along $~W~$.

${}$

Theorem: The necessary and sufficient condition for a square matrix $~P~$ of order $~n~$ to be the projection matrix onto $~V = \text{Sp}(P )~$ along $~W = \text{Ker}(P )~$ is given by $$P^2 = P$$

  • A square matrix $~{\displaystyle P}~$ is called an orthogonal projection matrix if $~{\displaystyle P^{2}=P=P^{\mathrm {T} }}~$ for a real matrix, and respectively $~{\displaystyle P^{2}=P=P^{\mathrm {H} }}~$ for a complex matrix, where $~{\displaystyle P^{\mathrm {T} }}~$ denotes the transpose of $~{\displaystyle P}~$ and $~{\displaystyle P^{\mathrm {H} }}~$ denotes the Hermitian transpose of $~{\displaystyle P}~$.

  • A projection matrix that is not an orthogonal projection matrix is called an oblique projection matrix.

  • In statistics, the projection matrix $~( {\displaystyle \mathbf {P} })~$, sometimes also called the influence matrix or hat matrix $~( {\displaystyle \mathbf {H} })~$, maps the vector of response values (dependent variable values) to the vector of fitted values (or predicted values). It describes the influence each response value has on each fitted value. The diagonal elements of the projection matrix are the leverages, which describe the influence each response value has on the fitted value for that same observation.

References:

https://en.wikipedia.org/wiki/Projection_(linear_algebra)

https://en.wikipedia.org/wiki/Projection_matrix

http://optics.szfki.kfki.hu/~psinko/alj/menu/04/nummod/Projection_Matrices.pdf

579 questions
2
votes
0 answers

Projection method: What's the 5D rotation matrix to get Penrose lattice

I want to project a 5D periodic grid to 2D Penrose lattice. Although I have a code that seems to do it (image below), with matrix elements related to Golden ratio, I wonder where I can find a reference for it. Thanks.
1
vote
0 answers

What is the relationship between the spectrum of a matrix, and the spectrum after it is projected?

I have a matrix, $Z$, which happens to be diagonal. I am projecting it onto a lower-dimensional subspace, using a set of vectors, $\{y_i\}$. I write this as, $$\xi_{ij} = \langle y_i| Z |y_j\rangle$$ I know the spectrum of Z. I know that it runs…
user826931
1
vote
1 answer

Complementary projection base

I have a projection matrix of type $P_1 = A (A^TA)^{-1}A^T$ The basis of the projected subspace is A. If I have a projection of type $P_2 = I - [A(A^T A)^{-1}A^T]$ Its easy to proove that $A$ is a basis of $P_1$. $P_1 A s = (A (A^T A)^{-1} A^T)As =…
jjcasmar
  • 143
0
votes
1 answer

Projection matrix Z component derivation

Recently I've been trying to implement OpenGL perspective projection matrix, but stuck at understanding of how to derive projected Z value. Here's an example of it Derivation of $x$ and $y$ values is pretty straightforward. Firstly, I need to…
Yurii B
  • 13
  • 3
0
votes
0 answers

What is the formula to perspective projection?

What is the formula to perspective projection? Is: (p * cameraFocal) / pz or: p * (cameraFocal / pz)
0
votes
0 answers

Back-projecting Pixel to 3D Rays with an origin different than zero

I am trying to reproject a pixel in a calibrated camera image into a 3D ray. I have found this answer which helped me a lot, and have almost everything running Back-projecting Pixel to 3D Rays in World Coordinates using PseudoInverse Method However,…
0
votes
2 answers

Question about the orthogonal projection

Is projection matrix and orthogonal projection matrix means same or they are different?
ogirkar
  • 2,681
  • 14
  • 27
0
votes
0 answers

Converting point in a projected plane to a rotation?

Imagine we have a projection matrix $T$ that has a field of view of $90$ degrees. Imagine we also have a plane of pixels $P$ that contains an arbitrary image that was rendered to using projection $T$. Is there a way/equation to find the rotation…
EDD
  • 149
0
votes
1 answer

Projection Matrix and its property as identity element

I just ran over this result: I have a projection (given by the matrix $P = X(X'X)^{-1}X'$ where $X$ is some matrix with full rank) and certain matrix multiplication (with an arbitrary $X$ matrix) yielded $Pw = w$ for $w = $ vector of ones, $w = $…
-2
votes
1 answer

Column space of matrix X

How to show that C(X)=C(XA) when A is a p by p nonsingular matrix? X is a n by p full rank matrix and we can decompose it into (X1,X2)
user10386405
  • 113
  • 6