[MRG] fix weighted covariance