Comprehensive Analysis of Stock Price Dynamics Using Ensemble Machine Learning Models for Enhanced Prediction Accuracy