Hi everybody,
I threw together an algo that uses PCA to get the component that explains the most variance in the energy sector. It assumes the principle component is a unit portfolio and buys 500 units of the portfolio.
It is really basic, but could be the baseline for more work. Here are a couple references on the idea.
PCA analysis in an Ipython notebook
Stat Arb in the US Equities Market
This is not a duplication of either, but an overly simplified version of the idea. It uses prices instead of returns, and rebalances on a 5 day schedule. I need to do more work to wrap my head around the math, but it looks like there's a strategy in there somewhere.
David