Pattern Analysis of Stock Prices Using Machine Learning and Data Visualization