[Paper Review] Optimizing Prediction Intervals by Tuning Random Forest via Meta-Validation
This paper proposes a meta-validation approach to tune Random Forest hyperparameters for constructing reliable and narrow prediction intervals in software defect and effort estimation. By evaluating eight validation techniques and introducing three meta-validation strategies, the study finds that 75/25 holdout consistently outperforms others, reducing unreliable intervals and improving both coverage and width compared to default configurations.
Recent studies have shown that tuning prediction models increases prediction accuracy and that Random Forest can be used to construct prediction intervals. However, to our best knowledge, no study has investigated the need to, and the manner in which one can, tune Random Forest for optimizing prediction intervals { this paper aims to fill this gap. We explore a tuning approach that combines an effectively exhaustive search with a validation technique on a single Random Forest parameter. This paper investigates which, out of eight validation techniques, are beneficial for tuning, i.e., which automatically choose a Random Forest configuration constructing prediction intervals that are reliable and with a smaller width than the default configuration. Additionally, we present and validate three meta-validation techniques to determine which are beneficial, i.e., those which automatically chose a beneficial validation technique. This study uses data from our industrial partner (Keymind Inc.) and the Tukutuku Research Project, related to post-release defect prediction and Web application effort estimation, respectively. Results from our study indicate that: i) the default configuration is frequently unreliable, ii) most of the validation techniques, including previously successfully adopted ones such as 50/50 holdout and bootstrap, are counterproductive in most of the cases, and iii) the 75/25 holdout meta-validation technique is always beneficial; i.e., it avoids the likely counterproductive effects of validation techniques.
Motivation & Objective
- To investigate whether tuning Random Forest hyperparameters improves prediction interval reliability and width.
- To evaluate eight validation techniques for tuning Random Forest in the context of prediction interval construction.
- To develop and validate meta-validation techniques that automatically select the best tuning strategy.
- To assess the impact of dataset order and time-sensitivity on validation technique performance.
- To provide a practical, data-driven method for selecting optimal Random Forest configurations for prediction intervals in industrial software analytics.
Proposed method
- The study uses two real-world datasets: one from Keymind Inc. for post-release defect prediction and one from the Tukutuku project for Web effort estimation.
- A single hyperparameter (max_features) is tuned across multiple configurations using an exhaustive search with various validation techniques.
- Eight validation techniques are evaluated: 50/50 holdout, 75/25 holdout, 66/33 holdout, time series cross-validation, time series HV cross-validation, bootstrap, and two variants of non-repeated holdout.
- Three meta-validation techniques are proposed to automatically select the best-performing validation method for each dataset.
- Performance is measured using coverage (actual confidence), nominal confidence (stated confidence), and interval width, with reliability defined as coverage ≥ nominal confidence.
- The 75/25 holdout meta-validation technique is used to select the optimal validation method, ensuring consistent improvement across datasets.
Experimental results
Research questions
- RQ1Which validation technique, when used for tuning Random Forest, produces prediction intervals that are both reliable and narrow?
- RQ2Can meta-validation techniques automatically select the most effective validation method for tuning prediction intervals?
- RQ3How does dataset order and time-sensitivity affect the performance of different validation techniques in tuning?
- RQ4Does tuning Random Forest hyperparameters improve prediction interval reliability and width compared to the default configuration?
- RQ5Is the 75/25 holdout validation technique consistently superior across different software analytics datasets?
Key findings
- The default Random Forest configuration frequently produces unreliable prediction intervals, with coverage falling short of the nominal confidence level.
- Most standard validation techniques, including 50/50 holdout and bootstrap, are counterproductive and often lead to wider or less reliable intervals.
- The 75/25 holdout validation technique is consistently beneficial and avoids the pitfalls of other methods, ensuring reliable and narrow prediction intervals.
- The proposed meta-validation approach successfully identifies the best tuning strategy, with 75/25 holdout emerging as the optimal choice across both datasets.
- Tuning Random Forest via meta-validation leads to prediction intervals that are significantly more reliable and narrower than those from default configurations.
- The study demonstrates that time-sensitivity in industrial datasets affects validation performance, particularly for non-order-preserving methods like bootstrap.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.