Bayesian additive regression trees model a conditional mean as a regularised sum of trees. Separate tree summation, posterior function uncertainty and noise in a new observation.
Bayesian additive regression trees
Bayesian additive regression trees (BART) is a Bayesian regression method that represents a conditional mean as a sum of small decision trees, with priors limiting each tree's influence. A quant can use it to model nonlinear relationships and interactions—for example, how expected execution cost changes with order size and liquidity—while obtaining a posterior distribution over the fitted function. The original model is a continuous-response regression model; the word “Bayesian” does not make its forecasts automatically calibrated for financial data.
Here Tj contains a tree's splitting rules, and Mj contains its terminal-node values. Following the rules routes x to one leaf and returns that leaf's value. Splits on multiple predictors let a component represent interactions. Each tree contributes only part of the conditional mean. See Chipman, George and McCulloch, §§1–2.1.
Consider a fictional centred execution-cost response, measured in basis points relative to a training-period reference level. For one order's features, stipulate that three component trees in one posterior draw, expressed on this response scale, return:
Component
Contribution
Tree 1
+0.4 bp
Tree 2
−0.1 bp
Tree 3
+0.2 bp
Their function value is f(s)(x)=0.4−0.1+0.2=0.5 bp. Dividing by three would give approximately 0.167 bp and would change the model. In a regression random forest, tree predictions are averaged; BART's component contributions are summed. These stipulated numbers demonstrate the aggregation rule, not a trained forecast or evidence of trading value.
Fictional centred execution-cost contributions of plus 0.4, minus 0.1 and plus 0.2 basis points sum to 0.5 in one posterior draw. A separate Normal curve conditional on this draw has mean 0.5 and noise standard deviation 0.2 basis points.
Original stipulated illustration, not fitted market data. Panel A sums component trees within one draw. Panel B adds observation noise conditional on that draw; it is not a posterior credible band for the conditional mean.
Why the trees stay small
The original regularising prior favours shallow trees and shrinks terminal-node values toward a common centre after response centring. This lets many weak components share the fit. “Additive” refers to addition of trees, not a ban on predictor interactions.
Bayesian backfitting repeatedly revisits a fixed collection of trees. To update tree j, it forms partial residuals
Rij=yi−k=j∑g(xi;Tk,Mk),
then samples an update of that tree conditional on these residuals, the noise scale and the prior. The sampler also updates the noise scale. It revisits earlier components rather than permanently appending each tree as in gradient boosting. See the original paper, §§2.2–3.1.
Two different uncertainties
After burn-in, retained Markov chain Monte Carlo draws give different ensembles and hence values f(s)(x). Average those complete function draws for a posterior mean; use their quantiles for a pointwise credible interval. One ensemble draw cannot supply that interval. The official dbarts documentation distinguishes expected-value draws from posterior predictive draws.
A future observation requires an additional step:
Y∗(s)=f(s)(x∗)+ϵ∗(s),ϵ∗(s)∼N(0,(σ(s))2).
If our single illustrative draw has σ2=0.04 bp squared, its noise standard deviation is 0.2 bp. Conditional on that draw, a new centred cost has mean 0.5 bp and variance 0.04 bp squared. That variance is not the posterior variance of the function. Across the full posterior, the predictive variance combines both sources:
Var(Y∗∣x∗,D)=Var(f(x∗)∣D)+E[σ2∣D].
Here D is the training data. This decomposition assumes the stated conditionally independent, mean-zero observation model. Financial cost noise may change with liquidity or have heavy tails; a constant Gaussian noise model does not capture those features merely by using flexible trees.
Prediction is the starting point
For execution-cost research, construct predictors using information available before the order decision. Fit response centring, preprocessing and prior calibration within each training window. Evaluate on later orders, handle overlapping outcome windows, and inspect predictive coverage across liquidity conditions. A narrow posterior interval under the fitted model does not account for an omitted regime change. The Finance-aware validation lesson develops overlap exclusions; its full teaching requires membership, with a public preview available.
A binary default outcome needs a suitable likelihood and link: the probit BART extension models P(Y=1∣x)=Φ(f(x)), rather than treating the raw tree sum as a probability. See dbarts: numeric versus binary responses.
Nor does including an execution-policy indicator automatically identify its causal effect. An observational comparison still needs consistency, conditional exchangeability and overlap. Bayesian causal forests modify the response model and priors to separate prognostic effects from treatment-effect heterogeneity; they are a related extension, not another name for ordinary BART. See Hahn, Murray and Carvalho, §§2–3.