Skip to content

Added shrink_covariance_matrix.shrink_covariance_matrix()#15

Open
jasonstrimpel wants to merge 3 commits into
quantopian:masterfrom
jasonstrimpel:master
Open

Added shrink_covariance_matrix.shrink_covariance_matrix()#15
jasonstrimpel wants to merge 3 commits into
quantopian:masterfrom
jasonstrimpel:master

Conversation

@jasonstrimpel

Copy link
Copy Markdown

Shrinks towards constant correlation matrix
If shrink is specified then this const is used for shrinkage

The notation follows Ledoit and Wolf (2004)
http://www.ledoit.net/honey_abstract.htm
This version: 06/2009

Parameters

x : N x N sample covariance matrix of stock returns
shrink : given shrinkage intensity factor; if none, code calculates

Returns

tuple
: numpy.ndarray which contains the shrunk covariance matrix
: float shrinkage intensity factor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant