Suppose I want to calculate a sample variance/covariance matrix:
cov(x) = $ \frac{\sum _{i=1} ^k (x_i - \overline{x})(x_i - \overline{x})^T}{k} $
I was wondering, if I calculate
$ \frac{\sum _i n_i(x_i - \overline{x})(x_i - \overline{x})^T}{k}$ , where n$_i>0$ are scalar
Would the resulting matrix still be positive semi definite?
Thank you for any insight on this.