Analyze historical stock market data to spot patterns