Research Article

Research on the national income prediction based on Python

Wanping Sun*
Beijing Wuzi University

* Corresponding author: [email protected]

Abstract

The national income level has always been a topic of concern, and there are many influences that affect the income. This paper focuses on the national work, age, education, marriage, gender, weekly working hours and other dimensions to explore the types of people with annual income above $50,000. In this paper, we select the data collected from the U.S. Census as the data set, divide the training set and the test set, and then construct logistic regression and decision tree models to predict the national income respectively. The experimental results show that the ACC of the logistic regression model is 0.773 and the AUC is 0.515, and the ACC of the decision tree model is 0.860 and the AUC is 0.900. It is verified that the decision tree has better performance in predicting national income.

Keywords: Income Prediction; Python; Logistic Regression; Decision Trees
Published: October 23, 2023
DOI: 10.54254/2755-2721/22/20231225
Volume: ACE Vol.22
pp. 53-62
Download PDF

References

  1. Y. K. Liu. A disk failure prediction system based on machine learning [D]. Huazhong University of Science and Technology,2015.
  2. Tan Bo,Pan Qingwen,Cheng Wen. GBDT-based individual income level prediction[J]. Computer and Digital Engineering,2020,48(03):550-552+602.
  3. Liang J, Chen JH, Zhang Xueqin et al. Anomaly detection based on unique thermal coding and convolutional neural network[J]. Journal of Tsinghua University (Natural Science Edition),2019,59(07): 523-529.DOI:10.16511/j.cnki.qhdxxb.2018.25.061.
  4. Chen J,Liu Zunxiong. Spam filtering based on non-negative matrix decomposition feature extraction[J]. Journal of East China Jiaotong University,2010,27(06):75-79.
  5. Li Zhuo Ran. Principles and applications of logistic regression methods[J]. China Strategic Emerging Industries, 2017(28): 114-115.DOI:10.19474/j.cnki.10-1156/f.001686.
  6. Chen J. Credit bond default risk measure based on KMV-random forest model [D]. Shanghai University of Finance and Economics, 2020. DOI:10.27296/d.cnki.gshcu.2020.000571.
  7. Wang Jingxiang. Principle research and practical application of decision tree algorithm[J]. Computer Programming Skills and Maintenance, 2022, No.446(08): 54-56+72.DOI:10.16184/j.cnki.comprg.2022.08.043.
  8. Belen Wang. Machine learning [M]. Nanjing Southeast University Press:, 202111.355.
  9. Feng, X. H.. Research on fuzzy decision tree algorithm based on axiomatic fuzzy sets [D]. Dalian University of Technology, 2013.
  10. Xue-Chen Zhang,Yuan-Yuan Zheng,Yao Chen. Research on early warning technology of thunderstorm and windy weather based on decision tree method[C]//Chinese Meteorological Society.S1 Disaster Weather Research and Forecasting. [publisher unknown],2012:5.