For coal price influencing factors, firstly, seven factors that may affect coal supply and demand and their data are selected, and a random forest model is used to take the mean value of the contribution made by each influencing factor on each tree to quantitatively investigate the degree of influence of these factors on coal prices and rank them according to their values. A Lasso regression model of coal prices on the influencing factors is then developed through visualisation methods and ten-fold cross-validation to obtain the optimal penalty coefficients based on the minimum mean squared error to forecast monthly coal prices; and through polynomial fitting, forecasts are made for future weekly and daily coal prices. Secondly, using the New Coronavirus outbreak factor as an example, the newly derived equation is modified by introducing dummy variables through multiple regression analysis of the data before the occurrence of the COVID-19, resulting in a modified prediction equation. Finally, in the light of today's social development trends, four policy recommendations are made to safeguard the steady state development of China's coal market.