An Application of Principal Component Analysis to Stock Portfolio Management