What is the matrix expression for the correlation coefficient r in terms of the matrices A, X, and B that also accounts for the sign of r?

profileblackbaizer