sklearn.covariance.ShrunkCovariance
来源:互联网 发布:学vb必看书 编辑:程序博客网 时间:2024/06/03 15:25
from sklearn.covariance import ShrunkCovariance
words from wedia:
Shrinkage estimation[edit]
If the sample size n is small and the number of considered variables p is large, the above empirical estimators of covariance and correlation are very unstable. Specifically, it is possible to furnish estimators that improve considerably upon the maximum likelihood estimate in terms of mean squared error. Moreover, for n < p, the empirical estimate of the covariance matrix becomes singular, i.e. it cannot be inverted to compute the precision matrix.
As an alternative, many methods have been suggested to improve the estimation of the covariance matrix. All of these approaches rely on the concept of shrinkage. This is implicit in Bayesian methods and in penalized maximum likelihood methods and explicit in the Stein-type shrinkage approach.
A simple version of a shrinkage estimator of the covariance matrix is constructed as follows. One considers a convex combination of the empirical estimator (
) with some suitable chosen target ( ), e.g., the diagonal matrix. Subsequently, the mixing parameter ( ) is selected to maximize the expected accuracy of the shrunken estimator. This can be done by cross-validation, or by using an analytic estimate of the shrinkage intensity. The resulting regularized estimator ( ) can be shown to outperform the maximum likelihood estimator for small samples. For large samples, the shrinkage intensity will reduce to zero, hence in this case the shrinkage estimator will be identical to the empirical estimator. Apart from increased efficiency the shrinkage estimate has the additional advantage that it is always positive definite and well conditioned.Various shrinkage targets have been proposed:
- the identity matrix, scaled by the average sample variance;[7][8]
- the single-index model;[9]
- the constant-correlation model, where the sample variances are preserved, but all pairwise correlation coefficients are assumed to be equal to one another;[10]
- the two-parameter matrix, where all variances are identical, and all covariances are identical to one another (although not identical to the variances);[11]
- the diagonal matrix containing sample variances on the diagonal and zeros everywhere else;[8][12]
- the identity matrix.[8]
A review on this topic is given, e.g., in Schäfer and Strimmer 2005.[13] The shrinkage estimator can be generalized to a multi-target shrinkage estimator that utilizes several targets simultaneously.[14] Software for computing a covariance shrinkage estimator is available in R (packages corpcor[15] and ShrinkCovMat[16]), in Python (library scikit-learn), and in MATLAB.[17]
- sklearn.covariance.ShrunkCovariance
- sklearn.covariance.EmpiricalCovariance
- sklearn.covariance.GraphLasso
- sklearn.covariance.EllipticEnvelope
- sklearn.covariance.MinCovDet
- the summary of sklearn.covariance
- covariance
- Covariance
- Covariance Matrix
- covariance matrix
- Sklearn
- sklearn
- sklearn
- Sklearn
- 19.5 Array covariance
- Covariance and Contravariance
- 协方差矩阵Covariance matrix
- Covariance and Contra-variance
- 设计模式:Strategy 策略模式
- Matlab Tricks(二十五) —— 二维图像的 shuffle
- iis 503 错误解决方法:HTTP 错误 503.4 - Service Unavailable FastCGI 池队列已满
- iOS——下拉tableview放大图片
- View、ViewGroup的测量、布局、绘制流程
- sklearn.covariance.ShrunkCovariance
- QT之独立标题栏
- 怎样new Date 时分秒都是0
- Const和readOnly的区别
- 大神教你如何构建面向应用的运维管理新思维
- Android 圆形图片开源项目CircleImageView源码分析
- MarkDown编辑器一直在无线重启
- 真机的沙盒拷贝到电脑
- 加法变乘法(蓝桥杯)