Problem 1
Consider a sample data point x\in\mathbb{R}^{d}. Let \hat{e}\in\mathbb{R}^{d} be a principal component with unit length.
Part 1.1
Let d=3. Consider vector
v=\begin{bmatrix}1\\ -2\\ 3\end{bmatrix}.
Let \hat{e} be in the same direction as v. We can write \hat{e} in the following form:
\hat{e}=\frac{1}{\sqrt{a}}\begin{bmatrix}b\\ c\\ d\end{bmatrix}.
where b, c, d are integers and a is not a perfect square. What is the value of a+b+c+d?
- A. 0.
- B. 12.
- C. 14.
- D. 16.
- E. 20.
Part 1.2
Let
x=\begin{bmatrix}-1\\ -4\\ 6\end{bmatrix}.
Compute the projection of x onto \hat{e}. Your answer can be written as \frac{b}{\sqrt{a}}, where b is an integer and a is not a perfect square. What is the value of a+b?
- A. 14.
- B. -6.
- C. -11.
- D. 34.
- E. 39.
Part 1.3
Let r be the residual after x is projected onto \hat{e}. We can write r in the following form:
r=\frac{1}{a}\begin{bmatrix}b\\ c\\ d\end{bmatrix}
where b, c, d are integers, a is a positive integer and \text{gcd}(a,b,c,d)=1. What is the value of a+b+c+d?
- A. 14.
- B. -22.
- C. -36.
- D. 50.
- E. 64.