Skip to content

Commit c5c2b37

Browse files
okbalefthandedagramfort
authored andcommitted
Update OAS estimator description (scikit-learn#6758)
* Updated the OAS estimator description * Update shrunk_covariance_.py
1 parent 22cf46e commit c5c2b37

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sklearn/covariance/shrunk_covariance_.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,10 @@ class OAS(EmpiricalCovariance):
486486
The formula used here does not correspond to the one given in the
487487
article. It has been taken from the Matlab program available from the
488488
authors' webpage (http://tbayes.eecs.umich.edu/yilun/covestimation).
489+
In the original article, formula (23) states that 2/p is multiplied by
490+
Trace(cov*cov) in both the numerator and denominator, this operation is omitted
491+
in the author's MATLAB program because for a large p, the value of 2/p is so
492+
small that it doesn't affect the value of the estimator.
489493
490494
Parameters
491495
----------

0 commit comments

Comments
 (0)