Benchmarking Linear, Ridge, and Lasso Regression on Indonesian Life Expectancy
DOI:
https://doi.org/10.33795/jip.v13i1.10341Keywords:
life expectancy, prediction, lasso regression, linear regression, ridge regressionAbstract
Life Expectancy (LE) is a principal indicator of a population’s quality of life and health status, and a component of the Human Development Index. This study compares simple linear regression, Ridge regression (L2 regularization), and Lasso regression (L1 regularization) for predicting Indonesian LE. The data are the Gapminder life expectancy at birth series sourced from the Institute for Health Metrics and Evaluation (IHME), restricted to Indonesia over 1950-2017, giving 68 observations with the year as the single feature. Five train-test split ratios were tested (90:10, 80:20, 70:30, 60:40, and 50:50), and each model was evaluated with the Root Mean Squared Error (RMSE), the Mean Absolute Error (MAE), and the coefficient of determination (R²). At the 80:20 ratio, judged the most balanced, Lasso regression gave the best result with an RMSE of 3.12, an MAE of 2.40, and an R² of 0.91. Lasso leads at every ratio, but at 80:20 its margin is small (0.10 in RMSE, 0.06 in MAE, 0.01 in R²), which indicates that regularization has limited effect with a single temporal feature. A walk-forward validation over 1984-2017, refitting each model every year and forecasting one year ahead, gives the same ordering, with Lasso reaching an MAE of 2.86 years against 3.11 for the other two. All 34 forecasts lie above the observed value, because the relationship is not fully linear. These findings provide a baseline for multivariate models in future work.
Downloads
References
Badan Pusat Statistik. (2024): Angka harapan hidup (AHH) menurut provinsi dan jenis kelamin, [Data set]. https://www.bps.go.id/id/statistics-table/2/NTAxIzI=/angka-harapan-hidup-ahh-menurut-provinsi-dan-jenis-kelamin.html
Bali, V., Aggarwal, D., Singh, S., & Shukla, A. (2021): Life expectancy: Prediction & analysis using ML, In 2021 9th International Conference on Reliability, Infocom Technologies and Optimization (Trends and Future Directions) (ICRITO) (pp. 1–8). IEEE. https://doi.org/10.1109/ICRITO51393.2021.9596123
Chicco, D., Warrens, M. J., & Jurman, G. (2021): The coefficient of determination R-squared is more informative than SMAPE, MAE, MAPE, MSE and RMSE in regression analysis evaluation, PeerJ Computer Science, 7, Article e623. https://doi.org/10.7717/peerj-cs.623
Dewi, K. S., Ainun, O. S. B. P., Rosni, R., & Saefulloh, A. H. G. K. (2026): Pengaruh indikator sosial ekonomi dan kesehatan terhadap angka harapan hidup menggunakan regresi data panel, Mandalika Mathematics and Education Journal, 8(2), 1513–1525. https://doi.org/10.29303/jm.v8i2.11750
Fauzan, M. D., Najib, M. K., Nurdiati, S., Khoerunnisa, N., Maulia, S. D., Triwulandari, R. R. C., & Aziz, M. F. (2024): Prediksi angka harapan hidup menggunakan regresi linear berganda, Lasso, Ridge, elastic net, dan kuantil Lasso, Jurnal Sains Matematika dan Statistika, 10(2), 192–206. https://doi.org/10.24014/jsms.v10i2.27916
GBD 2019 Diseases and Injuries Collaborators. (2020): Global burden of 369 diseases and injuries in 204 countries and territories, 1990–2019: A systematic analysis for the Global Burden of Disease Study 2019, The Lancet, 396(10258), 1204–1222. https://doi.org/10.1016/S0140-6736(20)30925-9
Gibson, J., & Olivia, S. (2020): Direct and indirect effects of Covid-19 on life expectancy and poverty in Indonesia, Bulletin of Indonesian Economic Studies, 56(3), 325–344. https://doi.org/10.1080/00074918.2020.1847244
Hodson, T. O. (2022): Root-mean-square error (RMSE) or mean absolute error (MAE): When to use them or not, Geoscientific Model Development, 15(14), 5481–5487. https://doi.org/10.5194/gmd-15-5481-2022
Hoerl, A. E., & Kennard, R. W. (1970): Ridge regression: Biased estimation for nonorthogonal problems, Technometrics, 12(1), 55–67. https://doi.org/10.1080/00401706.1970.10488634
Joseph, V. R. (2022): Optimal ratio for data splitting, Statistical Analysis and Data Mining: The ASA Data Science Journal, 15(4), 531–538. https://doi.org/10.1002/sam.11583
Kurniawan, W., & Indahyanti, U. (2024): Prediksi angka harapan hidup penduduk menggunakan metode XGBoost, Indonesian Journal of Applied Technology, 1(2), 1–18. https://doi.org/10.47134/ijat.v1i2.3045
Lipesa, B. A., Okango, E., Omolo, B. O., & Omondi, E. O. (2023): An application of a supervised machine learning model for predicting life expectancy, SN Applied Sciences, 5(7), Article 189. https://doi.org/10.1007/s42452-023-05404-w
Mustikasari, A., & Pahrany, A. D. (2025): Lasso regression and elastic net in analysing factors affecting the open unemployment rate, Jurnal Varian, 8(2), 151–164. https://doi.org/10.30812/xey50x64
Nisa, K., Susianto, A. S., Syahfitri, D., Rahayuningtyas, D., & Aulia, E. B. (2025): Prediksi angka harapan hidup di Indonesia berdasarkan jenis kelamin menggunakan regresi linear, Jurnal Ilmiah Media Sisfo, 19(2), 116–123. https://doi.org/10.33998/mediasisfo.2025.19.2.2510
Nur, A. R., Jaya, A. K., & Siswanto, S. (2023): Comparative analysis of Ridge, LASSO, and elastic net regularization approaches in handling multicollinearity for infant mortality data in South Sulawesi, Jurnal Matematika, Statistika dan Komputasi, 20(2), 311–319. https://doi.org/10.20956/j.v20i2.31632
Pisal, N. S., Abdul-Rahman, S., Hanafiah, M., & Kamarudin, S. I. (2022): Prediction of life expectancy for Asian population using machine learning algorithms, Malaysian Journal of Computing, 7(2), 1150–1161. https://doi.org/10.24191/mjoc.v7i2.18218
Prayogi, M. B., Apriani, F., & Nirma. (2025): Prediksi angka harapan hidup menggunakan random forest dan XGBoost regression, JICode: Jurnal Informatika dan Komputer, 2(1), 112–121. https://doi.org/10.30599/ht1k1h53
Rahmawati, F., & Suratman, R. Y. (2022): Performa regresi Ridge dan regresi Lasso pada data dengan multikolinearitas, Leibniz: Jurnal Matematika, 2(2), 1–10. https://doi.org/10.59632/leibniz.v2i2.176
Ronmi, A. E., Prasad, R., & Raphael, B. A. (2023): How can artificial intelligence and data science algorithms predict life expectancy—An empirical investigation spanning 193 countries, International Journal of Information Management Data Insights, 3(1), Article 100168. https://doi.org/10.1016/j.jjimei.2023.100168
Rubi, M. A., Bijoy, H. I., & Bitto, A. K. (2021): Life expectancy prediction based on GDP and population size of Bangladesh using multiple linear regression and ANN model, In 2021 12th International Conference on Computing Communication and Networking Technologies (ICC-CNT) (pp. 1–6). IEEE. https://doi.org/10.1109/ICCCNT51525.2021.9579594
Tibshirani, R. (1996): Regression shrinkage and selection via the lasso, Journal of the Royal Statistical Society: Series B (Methodological), 58(1), 267–288. https://doi.org/10.1111/j.2517-6161.1996.tb02080.x







