So far, we use the cosine function to measure the similarity between two vectors. Next, you are asked to do theoretical study of its reasonableness.
Your task is to prove the following theorem.
Theorem:
Let \mathbf{x}, \mathbf{y} \in \Bbb R^d be two independent d-dim vectors that follow the same multi-variate standard normal distribution N \left( \mathbf{0}_d , \mathbf{I}_{d \times d} \right).
That is, the projection of \mathbf{x} onto \mathbf{\hat e} is a standard normal random variable.
Hint: You can directly use the result that \mathbf{\hat e}^\top \mathbf{x} is normal. Therefore, you only need to prove that \mathbf{\hat e}^\top \mathbf{x} has mean 0 and variance 1.