Life Expectancy Prediction
Machine learning is not only a technology for training AI but can also be used for making predictions. In this project, I used a linear regression model in R to predict life expectancy. The model includes various features such as country, year, development status, health behavior, demographic, lifestyle, and disease-related factors. To enhance the accuracy of the predictions, I used LASSO feature selection, log transformation, and outlier removal for the model optimization.
機器學習不僅作為訓練人工智慧的核心技術,亦可用於進行精確的預測分析。在本專案中,我使用R裡的線性回歸模型進行預期壽命的預測,模型涵蓋了多種特徵變數,包括國家、年份、發展水平、健康行為、人口統計學特徵、生活方式及疾病相關因子。為了進一步提升預測模型的精準度,我運用了LASSO進行特徵選擇,並結合對數轉換及異常值移除來進行模型的優化與調整。