Question: $$corr(x,y) = a, corr(y,z) = b, corr(x,z) = ?$$ Here $corr$ is the correlation.
I know the answer
$$cos(\alpha + \beta) \leq corr(x,z) \leq cos(\alpha - \beta), \textrm{where } cos(\alpha) = a, cos(\beta) = b.$$
And the idea is making the correlation matrix positive semi-definite: $$ \left|\begin{pmatrix} 1 & a & x \\ a & 1& b \\ x & b& 1 \\ \end{pmatrix}\right| \geq 0$$ But from the point view of sample vectors $\textbf{x}, \textbf{y}, \textbf{z},$ without loss of generality , we assume they are all mean 0. Then the correlation is the $cos$ angle of two vectors. Thus $$corr(x,z) = cos(\alpha - \beta)\textrm{ or } cos(\alpha + \beta).$$
Why will it be a range? Can anyone point my mistake?