It was observed that the R 2 values for models built with the Random Forest algorithm were consistently higher than those obtained using the XGBoost algorithm, albeit within a narrow margin of up to 0.03. Similarly , the MAE values were generally lower for Random Forest models, suggesting superior performance over XGBoost in this dataset.