Description Usage Arguments Value Note Author(s) References
Solve for G that maximises sample r-square of X*G'*B' with X under constraints A*G<=D and Aeq*G=Deq (A,D, Aeq,Deq conformable matrices),as described in A. Meucci, "Risk and Asset Allocation", Springer, 2005.
1 2 |
X |
: [matrix] (T x N) |
B |
: [matrix] (T x K) |
W |
: [matrix] (N x N) |
A |
: [matrix] linear inequality constraints |
D |
: [matrix] |
Aeq |
: [matrix] linear equality constraints |
Deq |
: [matrix] |
lb |
: [vector] lower bound |
ub |
: [vector] upper bound |
G : [matrix] (N x K)
Initial code by Tai-Ho Wang
Xavier Valls flamejat@gmail.com
A. Meucci - "Exercises in Advanced Risk and Portfolio Management" http://symmys.com/node/170. Used in "E 123 - Cross-section factors: generalized cross-section industry factors".
See Meucci's script for "MaxRsqCS.m"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.