In response to COVID-19 epidemic and China-US trade frictions, based on the survey data of 413 companies, starting from the descriptive statistical analysis of whether the companies with different characteristics have migrated or not, with the help of the feature selection method in machine learning, The balanced characteristics of the enterprise migration survey data were analyzed by feature selection, and finally 13 important characteristic variables that affect whether the company migrated or not were selected from 102. On this basis, the effects of the dual effects of COVID-19 epidemic and China-US trade friction on the migration of enterprises were further investigated and analyzed through the Probit model. The results show that the growth rates of import and export and export in the first and second half of 2020 have a significant impact on the migration of enterprises. Among them, the growth rate of import and export in the first and second half of the year has a positive and negative effect on the migration of enterprises, while the growth rate of exports The impact on the company's relocation is negative. In addition, the type of business economy, the proportion of foreign trade, and the emotional characteristics of 2021 orders also have a significant impact on the company's relocation.