PDP Confidence Band
Overview
In 1D PDP using GP-FITC or GP-VFE (Gaussian Process), averaging the predicted variance at each grid point over all training data points is theoretically exact but has a computational cost of ( = number of grid points, = number of training points).
Centroid approximation is an approximation method that reduces computational complexity to by selecting only the centroid as the representative point for the non-target dimensions and evaluating variance at that single point.
| Method | Variance computation cost | Number of calls at N=100, G=30 |
|---|---|---|
| Full average (theoretical) | 30,000 calls | |
| Centroid approximation | 30 calls |
Theoretical Background
Definition of Full PDP Variance
The confidence band of a 1D PDP requires the predicted standard deviation at grid point :
where:
- = the non-target dimension components of the -th training point
- = GP predicted variance (described below)
Since the GP predicted variance computation itself is , evaluating this over all points gives , and over grid points gives .
Centroid Approximation
Definition of the Approximation
Use the arithmetic mean (centroid) of each non-target dimension as the representative point:
( = dimension index of the target parameter)
The approximation using this centroid:
With a single variance evaluation ( ), the confidence band for grid points can be computed.
Representativeness of the Mean
For a nonlinear function , in general (Jensen's inequality). However, the approximation is accurate when the following conditions hold:
- Variance changes slowly over space (typical GPs have large length scales )
- Training points are approximately symmetrically distributed (e.g., uniform sampling)
- Many non-target dimensions (high-dimensional averages tend to concentrate — concentration inequality)
Since Bayesian optimization search points are placed to approximately cover the space, conditions 1 and 2 hold in most cases.
GP Predicted Variance (Gaussian Process)
Formula for computing GP predicted variance:
where:
- : Cholesky decomposition (computed only once during training)
- : kernel vector between the prediction point and training points
- : forward substitution ( )
A single variance prediction is (kernel vector computation + forward substitution ).
How Tunny Dashboard Computes This
The centroid of the non-target dimensions is computed once per PDP call, in the same normalized input space used to train the surrogate. For each grid point, the PDP line itself still marginalizes the GP's predicted mean over all training rows (an exact average, not an approximation); only the confidence band's variance is approximated, by evaluating it once at the centroid instead of once per training row. The variance is then back-transformed to the original scale and turned into a 95% confidence band ( ) around the PDP line.
Cost Is Bounded by Inducing Points, Not by Subsampling Training Rows
The mean computation above (full MC over all training rows) is if evaluated against the full training covariance. In practice, GP-FITC / GP-VFE already bound this cost using inducing points (see Gaussian Process) — this is a property of the FITC/VFE approximation itself, independent of . It is not a subsample of the training rows: the mean computation still marginalizes over all training rows.
| Operation | Cost (N=100, G=30) |
|---|---|
| GP training (Cholesky, bounded by inducing points) | operations (once) |
| Mean computation (all grid points, all training rows) | (forward substitution × 3,000 calls) |
| Variance computation (centroid approximation) | (forward substitution × 30 calls) |
Compared to evaluating the predictive variance at every training row for every grid point (instead of once at the centroid per grid point), the variance step alone is roughly faster in this example.
Accuracy Considerations
Tendency to Underestimate
Since the centroid is in the "interior" of the training points, variance tends to be underestimated in sparse regions (the periphery of the search space).
In practice this depends on convexity/concavity, but in GPs, distant points tend to have larger variance and the centroid is closer than each individual point, so slight underestimation is likely.
Practical Accuracy
Since confidence bands are used purely as visual reference indicators, this is not a problem in practice. When an accurate confidence band is required, switch to Monte Carlo approximation (subsample points and average the variances).
References
- Friedman, J. H. (2001). Greedy function approximation: A gradient boosting machine. Annals of Statistics, 29(5), 1189–1232. (Original PDP paper) https://doi.org/10.1214/aos/1013203451
- Goldstein, A., et al. (2015). Peeking inside the black box: Visualizing statistical learning with plots of individual conditional expectation. Journal of Computational and Graphical Statistics, 24(1), 44–65. https://doi.org/10.1080/10618600.2014.907095