Under the background of "double carbon", how to reduce carbon emissions is widely concerned by all walks of life. The purpose of the project is to predict and analyze the contribution of the development of new energy vehicles in China to the reduction of traffic carbon emissions by using the data provided by official organizations such as the National Bureau of Statistics and data on new energy vehicles. The grey forecast method is used to predict the quarterly increase of each factor. The following two machine learning techniques (support vector machine and ridge regression) were used. Analyze and compare the accuracy of the two models to the prediction results, and select the most accurate model for analysis. The results show that the development of new energy vehicles plays a crucial role in reducing carbon emissions.