Machine Learning for Estimation: Comparing Tree Ensembles and Deep Learning on Tabular Data
Abstract
Parametric models widely used in estimation often violate assumptions in practical research. As flexible alternatives, machine learning methods, especially tree ensembles and deep neural networks, impose fewer prior assumptions on functional forms for parameter estimation. This paper systematically examines eight estimation methods—ordinary least squares, ridge regression, lasso, random forest, XGBoost, LightGBM, multilayer perceptron (MLP), and deep neural networks—across four simulation regimes (linear, semiparametric, nonlinear, and high-dimensional sparse) and two real-world datasets: the Home Credit Default Risk dataset (307,511 samples) and the PIMA Indians Diabetes dataset (768 samples). This study evaluate model bias, mean squared error (MSE) and computational overhead to determine the applicable scenarios for each method category. Experimental results demonstrate that tree-based methods perform steadily across various scenarios. Although deep neural networks incur higher computational overhead, they achieve the minimal MSE when facing strong nonlinearity with moderate or large sample sizes. These findings provide actionable guidance for selecting estimation methods based on data characteristics, bridging theoretical advances in machine learning and practical estimation. The results verify that no single estimator outperforms all others across all data scenarios. The optimal selection relies on the joint effects of data nonlinearity, dimensionality and sample size, which highlights the necessity of diagnosis-oriented method selection in empirical studies.
References
- Lehmann, E.L., Romano, J.P. (2006) Testing statistical hypotheses. 3rd ed. Springer, New York.
- Hastie, T., Tibshirani, R., Friedman, J. (2009) The elements of statistical learning: data mining, Inference, and Prediction. 2nd ed. Springer, New York.
- Breiman, L. (2001) Random forests. Machine Learning, 45: 5–32.
- Friedman, J.H. (2001) Greedy function approximation: A gradient boosting machine. Annals of Statistics, 29: 1189–1232.
- Goodfellow, I., Bengio, Y., Courville, A. (2016) Deep Learning. MIT Press, Cambridge, MA.
- Wager, S., Athey, S. (2018) Estimation and inference of heterogeneous treatment effects using random forests. Journal of the American Statistical Association, 113: 1228–1242.
- Chernozhukov, V., Chetverikov, D., Demirer, M., Duflo, E., Hansen, C., Newey, W., Robins, J. (2018) Double/debiased machine learning for treatment and structural parameters. The Econometrics Journal, 21: C1–C68.
- Hayashi, F. (2000) Econometrics. Princeton University Press, Princeton, NJ.
- Tibshirani, R. (1996) Regression shrinkage and selection via the lasso. Journal of the Royal Statistical Society: Series B, 58: 267–288.
- Chen, T., Guestrin, C. (2016) XGBoost: a scalable tree boosting system. In: Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 785–794.
- Ke, G., Meng, Q., Finley, T., Wang, T., Chen, W., Ma, W., Ye, Q., Liu, T.-Y. (2017) LightGBM: a highly efficient gradient boosting decision tree. In: Advances in Neural Information Processing Systems 30 (NeurIPS), 3146–3154.
- Scornet, E., Biau, G., Vert, J.-P. (2015) Consistency of random forests. Annals of Statistics, 43: 1716–1741.
- Farrell, M.H., Liang, T., Misra, S. (2021) Deep neural networks for estimation and inference. Econometrica, 89: 181–213.
- Mentch, L., Hooker, G. (2016) Quantifying uncertainty in random forests via confidence intervals and hypothesis tests. Journal of Machine Learning Research, 17: 1–41.
- Angelopoulos, A.N., Bates, S. (2023) A gentle introduction to conformal prediction and distribution-free uncertainty quantification. Foundations and Trends in Machine Learning, 16: 495–607.
- Athey, S., Imbens, G. (2016) Recursive partitioning for heterogeneous causal effects. Proceedings of the National Academy of Sciences, 113: 7353–7360.
- Künzel, S.R., Sekhon, J.S., Bickel, P.J., Yu, B. (2019) Metalearners for estimating heterogeneous treatment effects using machine learning. Proceedings of the National Academy of Sciences, 116: 4156–4165.
- Lei, J., G'Sell, M., Rinaldo, A., Tibshirani, R.J., Wasserman, L. (2018) Distribution-free predictive inference for regression. Journal of the American Statistical Association, 113: 1094–1111.
- Biau, G., Scornet, E. (2016) A random forest guided tour. TEST, 25: 197–227.