3
$\begingroup$

I am trying to understand how to calculate the conditional distribution of probabilistic principal component analysis. This is explained in the book "Pattern Recognition and Machine Learning" by Christopher Bishop, 2006.

This is the distribution from which the observed variables are sampled: $p(x|z) = N(x|Wz + \mu, \sigma^2 I) \tag{12.32}$ But how exactly does this matrix math work?

Lets say that our observed data is a 4x3 matrix with four samples and three different observations (i.e., features) from each sample. For example: \begin{bmatrix} a_{11} & a_{12} & a_{13} \\ a_{21} & a_{22} & a_{23} \\ a_{31} & a_{32} & a_{33} \\ a_{41} & a_{42} & a_{43} \end{bmatrix}

Our W matrix (i.e., weight matrix) is a 2x3 matrix, where the two columns are principal components and the rows are the features of the observed data. For example: \begin{bmatrix} b_{11} & b_{12} \\ b_{21} & b_{22} \\ b_{31} & b_{32} \end{bmatrix}

The Z matrix (i.e., latent variable matrix) is a 4x2 matrix, where the two columns are the first two principal components and the rows are the samples. For example:

\begin{bmatrix} c_{11} & c_{12} \\ c_{21} & c_{22} \\ c_{31} & c_{32} \\ c_{41} & c_{42} \end{bmatrix}

In this case σ2 is a scalar and I is the identity matrix. But let's focus on Wz. How can we multiply W by z when the number of columns in W does not equal the number of rows in Z? Could someone maybe show be a very simple example with the dimensions of matrices I've provided, explain the idea behind everything, and the terminology used for the operations?

Thank you very much.

$\endgroup$

1 Answer 1

1
$\begingroup$

The model factorizes over observations. In other words, this probabilistic representation is only about one multi-dimensional sample:

Thus $x$ is $D \times 1$, $W$ is $D \times M$ and $z$ is $M \times 1$. This is expressly mentioned just above equation 12.33.

$\endgroup$
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.