-
Notifications
You must be signed in to change notification settings - Fork 0
group_coancestry
Josh Fogg edited this page Jul 31, 2024
·
1 revision
group_coancestry(w, sigma)
A shortcut function for computing the group co-ancestry (
-
w : ndarray
Portfolio vector$\mathbf{w}$ representing a particular selection. -
sigma : ndarray
Relationship matrixd$\Sigma$ for the cohort.
-
float
The group co-ancestry of the selection.
Given some optimal contribution vector
>>> w
array([0.38225694, 0.38225694, 0.11774306, 0.11774306])
and some relationship matrix sigma
, we can compute the group co-ancestry as
>>> robustocs.group_coancestry(w, sigma)
matrix([[0.3199676]])
or equivalently using NumPy as
>>> w.transpose() @ sigma @ w
matrix([[0.3199676]])
This documentation relates to the latest version of the package on GitHub. For past versions, download the zip bundled with the release from here. If anything in this wiki looks incorrect or you think key information is missing, please do open an issue.