2

I have a linear regression problem

$$ y = a x + b$$

with errors on $x$ and $y$ that are uncorrelated and unitary and I have to find $a$ and $b$. To do this, I want to use principal component analysis (PCA):

  1. Calculate the $n \times 2$ matrix $D = ( x' y' )$, where $x' = x - \langle x \rangle$ and $y' = y - \langle y\rangle$.

  2. Calculate the covariance matrix of the transformed data $C = D^T D$.

  3. Calculate the eigenvectors and eigenvalues of $C$ using SVD.

How do I find $a$ and $b$ from the eigenvectors of $C$?

amoeba
  • 93,463
  • 28
  • 275
  • 317
user3706794
  • 99
  • 1
  • 8
  • 1
    I've edited your question to use LATEX formatting. Please review to see that I haven't introduced any errors and that it still says what you mean. – Sycorax Jan 09 '15 at 14:48

0 Answers0