Other functions

shrink_estim(x, mse=True)[source]

Shrinkage of the covariance matrix

Shrinkage of the covariance matrix according to Schafer and Strimmer (2005).

Parameters

x: ndarray

A numeric matrix containing the residuals.

mse: bool, default True

When True, residual moments are not mean-corrected (i.e., MSE rather than unbiased variance). When False, apply mean correction.

Returns

A shrunk covariance matrix.

References

  • Schafer, J.L. and Strimmer, K. (2005), A shrinkage approach to large-scale covariance matrix estimation and implications for functional genomics, Statistical Applications in Genetics and Molecular Biology, 4, 1

See Also

tecov cscov