arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.18612stat.MEcs.CYcs.LG
收藏

理解随机森林在概率估计中的过拟合:一项可视化与模拟研究

Understanding overfitting in random forest for probability estimation: a visualization and simulation study

KU Leuven(鲁汶大学);University of Oxford(牛津大学);University Hospitals Leuven(鲁汶大学医院);LMU Munich(慕尼黑大学);Leiden University Medical Centre(莱顿大学医学中心)

Lasai Barreñada, Paula Dhiman, Dirk Timmerman, Anne-Laure Boulesteix, Ben Van Calster

AI总结:

本文通过真实案例可视化和192种场景的模拟研究,揭示随机森林在概率估计中通过学习训练集事件周围的局部概率峰值导致训练c统计量接近1的过拟合现象,并表明使用较大最小节点大小而非完全生长树更有利于测试集概率估计。

摘要:

随机森林已在临床风险预测建模中变得流行。在一项关于预测卵巢恶性肿瘤的案例研究中,我们观察到训练c统计量接近1。尽管这表明存在过拟合,但在测试数据上的性能仍具有竞争力。我们旨在通过(1)在三个真实世界案例研究中可视化数据空间,以及(2)一项模拟研究,来理解随机森林的行为。对于案例研究,风险估计在二维子空间中使用热图进行可视化。模拟研究包括48种逻辑数据生成机制(DGM),变化因素包括预测变量分布、预测变量数量、预测变量之间的相关性、真实c统计量以及真实预测变量的强度。对于每种DGM,模拟了1000个规模为200或4000的训练数据集,并使用ranger包以最小节点大小2或20训练随机森林模型,总共产生192种场景。可视化结果表明,模型在训练集中事件周围学习了概率尖峰。事件簇产生更大的峰值,孤立事件产生局部峰值。在模拟研究中,除非存在4个或16个二值预测变量且最小节点大小为20,否则训练c统计量的中位数介于0.97和1之间。测试c统计量的中位数在每变量事件数更高、最小节点大小更大以及预测变量为二值时更高。训练斜率的中位数始终高于1,并且在不同场景中与测试斜率的中位数不相关(相关性为-0.11)。测试斜率的中位数在真实c统计量更高、最小节点大小更大以及样本量更大时更高。随机森林学习局部概率峰值,这些峰值通常产生接近完美的训练c统计量,而不会强烈影响测试数据上的c统计量。当目标是概率估计时,模拟结果与在随机森林模型中使用完全生长树的常见建议相悖。

英文摘要:

Random forests have become popular for clinical risk prediction modelling. In a case study on predicting ovarian malignancy, we observed training c-statistics close to 1. Although this suggests overfitting, performance was competitive on test data. We aimed to understand the behaviour of random forests by (1) visualizing data space in three real world case studies and (2) a simulation study. For the case studies, risk estimates were visualised using heatmaps in a 2-dimensional subspace. The simulation study included 48 logistic data generating mechanisms (DGM), varying the predictor distribution, the number of predictors, the correlation between predictors, the true c-statistic and the strength of true predictors. For each DGM, 1000 training datasets of size 200 or 4000 were simulated and RF models trained with minimum node size 2 or 20 using ranger package, resulting in 192 scenarios in total. The visualizations suggested that the model learned spikes of probability around events in the training set. A cluster of events created a bigger peak, isolated events local peaks. In the simulation study, median training c-statistics were between 0.97 and 1 unless there were 4 or 16 binary predictors with minimum node size 20. Median test c-statistics were higher with higher events per variable, higher minimum node size, and binary predictors. Median training slopes were always above 1, and were not correlated with median test slopes across scenarios (correlation -0.11). Median test slopes were higher with higher true c-statistic, higher minimum node size, and higher sample size. Random forests learn local probability peaks that often yield near perfect training c-statistics without strongly affecting c-statistics on test data. When the aim is probability estimation, the simulation results go against the common recommendation to use fully grown trees in random forest models.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑