1
$\begingroup$

I would like to generalize Paul Teetor's A Better Hedge Ratio, which uses prcomp() to determine a ratio between two legs. I am hoping to extend this to multiple legs, but am having trouble finding accurate results. Any suggestions?

$\endgroup$
1
$\begingroup$

In the case of N components:

  1. compute the NxN covariance matrix
  2. compute the N eiggenvectors and take the one that has the signs that you want
  3. the weights of this eiggen vector corresponds to the basket of N components that you wish to create
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.