[Paper Review] Bayesian Additive Regression Trees With Parametric Models of Heteroskedasticity
This paper proposes HBART, a Bayesian Additive Regression Trees model that extends BART to handle heteroskedasticity by modeling the log of the error variance as a linear function of prespecified covariates. The method uses Gibbs sampling with Metropolis-Hastings updates for variance parameters, resulting in more accurate posterior predictive intervals and reduced overfitting in heteroskedastic settings compared to homoskedastic BART.
We incorporate heteroskedasticity into Bayesian Additive Regression Trees (BART) by modeling the log of the error variance parameter as a linear function of prespecified covariates. Under this scheme, the Gibbs sampling procedure for the original sum-of- trees model is easily modified, and the parameters for the variance model are updated via a Metropolis-Hastings step. We demonstrate the promise of our approach by providing more appropriate posterior predictive intervals than homoskedastic BART in heteroskedastic settings and demonstrating the model's resistance to overfitting. Our implementation will be offered in an upcoming release of the R package bartMachine.
Motivation & Objective
- To address the limitation of BART’s assumption of homoskedastic errors in regression modeling.
- To develop a flexible Bayesian framework that models heteroskedasticity through parametric functions of covariates.
- To improve posterior predictive intervals and reduce overfitting in high-variance regions.
- To maintain strong predictive performance on homoskedastic data while extending to heteroskedastic scenarios.
- To enable cross-validation for hyperparameters in the variance model, supporting model selection.
Proposed method
- Model the log of the error variance as a linear function of prespecified covariates, enabling parametric modeling of heteroskedasticity.
- Modify the original BART Gibbs sampler to include variance parameters updated via Metropolis-Hastings steps.
- Use a block Gibbs sampling scheme, updating mean and variance parameters in separate stages.
- Leverage the iteratively reweighted least squares approach from Gamerman (1997) to generate efficient proposal distributions for variance parameters.
- Specify the variance design matrix Z using covariates such as time and time² to capture non-linear variance patterns.
- Implement the model in the R package bartMachine, with code available on GitHub under the hBART branch.
Experimental results
Research questions
- RQ1Can a Bayesian additive regression tree model effectively capture heteroskedastic error structures using parametric variance functions?
- RQ2How does HBART compare to homoskedastic BART in terms of predictive interval accuracy under heteroskedasticity?
- RQ3Does HBART reduce overfitting in regions of high error variance compared to standard BART?
- RQ4Can the extended model maintain predictive performance on homoskedastic data without degradation?
- RQ5To what extent can hyperparameter tuning via cross-validation improve HBART’s performance on variance structure selection?
Key findings
- HBART produces more appropriate posterior predictive intervals than homoskedastic BART in heteroskedastic settings, particularly capturing varying uncertainty across predictor space.
- In the motorcycle crash data, HBART’s predictive intervals are narrower at high time values and wider in the intermediate regime, closely matching the true variance pattern.
- BART’s global variance assumption leads to overly wide intervals at low and high time points and too narrow intervals in the middle, while HBART corrects this mis-specification.
- HBART shows resistance to overfitting in high-variance regions, where BART tends to overfit due to its fixed variance assumption.
- On homoskedastic data, HBART’s posterior mean estimates, predictive intervals, and out-of-sample RMSE are nearly identical to those of BART, indicating no performance loss.
- The replication code is publicly available, and results, tables, and figures can be reproduced using the provided R script in the hbart_paper folder.
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.