Knowing the rate of penetration of a drill bit in rocks is among the most important parameters in their behaviour measurement. However, the direct measurement of ROP in rocks is a high-cost and time-intensive process. Therefore, obtaining the ROP parameter through a method other than direct measurement can be very useful and effective. Predictive machine learning methods are among the strong and precise techniques for the indirect measurement of ROP. To this end, 492 samples were tested under different UCS, µ, WOB, and ω conditions to obtain the corresponding ROP. To achieve an accurate model, three methods of linear regression analysis, lasso regression, and ridge regression were compared in terms of prediction accuracy. These models were compared through performance criteria of the prediction process and error-based charts. The performance criteria were measured using three measures: mean absolute percentage error, D-squared pinball score, and mean Poisson deviance error. For the MAPE index, the Lasso and Ridge models performed the best with values of 0.2557. Concerning the D2PS index, the linear regression model and Ridge performed better with values of 0.4083 and 0.4025, respectively. Finally, for the MPDE index, the Ridge model provided a more accurate performance with a value of 0.0105. For a better comparison, an objective function was created and calculated by combining these three indicators. The results showed the best rank for the Ridge model with an estimated value of 659.475. Finally, it was concluded that the Ridge model is a reliable and accurate model for predicting the ROP.