Applying Data Mining Techniques to Stock Market Analysis