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):
Calculate the $n \times 2$ matrix $D = ( x' y' )$, where $x' = x - \langle x \rangle$ and $y' = y - \langle y\rangle$.
Calculate the covariance matrix of the transformed data $C = D^T D$.
Calculate the eigenvectors and eigenvalues of $C$ using SVD.
How do I find $a$ and $b$ from the eigenvectors of $C$?