Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

In $\mathbf X\mathbf X^\prime$, $\mathbf X$ is a matrix contains data points in column fashion, $\mathbf X^\prime$ is its transpose, this looks like a covariance matrix, but does not subtract mean, so what is the different meaning of subtract mean or not subtract it?

share|improve this question
add comment

2 Answers

If you subtract the mean you get the covariance matrix, sample covariance matrix to be precise if you do not take expectations. If you do not subtract the mean, you get only the part of covariance matrix, since as @PEV wrote, to get the covariance matrix you need to subtract the term $\mu\mu^T$.

Now the confusion may arise, since in the regression setting if you subtract the mean from the dependent variable and independent variable the least squares estimates of the coefficients do not change, if your original regression has the intercept.

share|improve this answer
add comment

The covariance matrix is defined as $$\Sigma = E \left[(\textbf{X}-E[\textbf{X}])(\textbf{X}-E[\textbf{X}])^{T} \right]$$

$$ = E(\textbf{X} \textbf{X}^{T})- \mu \mu^{T}$$

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.