This is an algorithm that clusters stocks based on a set of fundamentals (I have used Max's set of 4 fundamental ratios as a basis). The algo clusters the stock universe around fundamental data. It then tries (and this is where this needs improving) to rank the clusters and take long-short positions on top and bottom clusters. The ranking for now is done on past performance, which is somewhat naive. I am calling on Q's best and brightest to suggest improvement on rank the clusters. Or maybe this is just a dead end.
Some of the code for cluster manipulation comes from a post from Jonathan Larkin.
/Luc