With the development of the country, China has entered a decisive year to build an all-round well-off society. Therefore, in order to achieve the goal of an all-round well-off society, we should pay more attention to the contribution of tourism to the national economy and it also plays an important role in the development of the rural economy. China's territory is vast and culturally diverse, so the development of tourism is full of great potential. Against the background of tourism, this paper shows the process of multiple regression modelling and the analysis method of regression model using R language to influence the total cost of tourism in China.