首页|期刊导航|现代信息科技|基于机器学习的二手房价格预测研究

基于机器学习的二手房价格预测研究OA

Research on Second-hand House Price Prediction Based on Machine Learning

中文摘要英文摘要

二手房交易价格评估具有重要参考价值,可为政府、购房者、出售者、房产中介公司决策提供依据.文章以山西省太原市的二手房价格为研究对象,构建预测模型,并通过模型效果比较筛选最优方案.首先,利用网络爬虫技术获取链家网上太原二手房数据,最终获得包含63个最具代表性特征变量的8 394条数据用于房价的预测.其次,利用Python的matplotlib库,从区位特征、建筑特征、交易特征 3 个维度进行可视化研究,初步判断出房价与多种变量之间的影响关系.最后,为选出最优模型预测太原市二手房价的变化,分别对CART决策树模型和XGBoost模型进行构建.模型对比结果表明,XGBoost模型具有较高准确率,更适合用于二手房价格预测.

Second-hand housing transaction price evaluation has important reference value and provides a basis for the decision-making of governments,house buyers,sellers and real estate agencies.This paper takes second-hand house prices in Taiyuan city,Shanxi Province as the research object,constructs prediction models and selects the optimal scheme by comparing model effects.Firstly,Web crawler technology is used to obtain second-hand housing data of Taiyuan from Lianjia website,and 8 394 data records including 63 most representative characteristic variables are finally obtained for house price prediction.Secondly,the matplotlib library of Python is used to conduct visual research from three aspects:location characteristics,building characteristics and transaction characteristics,and the influence relationship between house prices and various variables is initially determined.Finally,in order to select the optimal model to predict the changes of second-hand house prices in Taiyuan,the CART Decision Tree model and the XGBoost model are constructed respectively.The model comparison results show that the XGBoost model has high accuracy and is more suitable for second-hand house price prediction.

朱丽丽;李岩松

山西能源学院,山西 晋中 030600山西能源学院,山西 晋中 030600

信息技术与安全科学

二手房价格CART决策树模型机器学习XGBoost模型

second-hand house priceCART Decision Tree modelMachine LearningXGBoost model

《现代信息科技》 2026 (5)

46-50,5

2025年山西省高等学校科技创新项目(2025W066)2025年山西省哲学社会科学规划课题(2025QN274)2024山西能源学院教育教学改革和实践项目(NJ202416)

10.19850/j.cnki.2096-4706.2026.05.009

评论