liveBook · Manning

Confidence interval

As explained in Bayesian Optimization in Action

A confidence interval is an interval constructed to provide a specified long-run coverage level for an unknown parameter.

A confidence interval summarizes uncertainty around an unknown quantity. In Gaussian-process modeling, it surrounds the mean prediction and helps decide where to evaluate an expensive black-box objective. section 1.4 section 2.4.4

For a predictive normal distribution with mean μ and standard deviation σ, a commonly used 95% interval is μ ± 1.96σ. Compute σ by taking the square root of each predictive covariance diagonal entry; the resulting lower and upper endpoints define the interval. section 2.4.4

Changing the standard-deviation multiplier changes both coverage and decision behavior:

  • β = 1 gives the 68% interval, β = 2 gives approximately the 95% interval, and β = 3 gives the 99.7% interval. section 5.2.2
  • In upper confidence bound optimization, μ + βσ becomes the acquisition score: smaller β favors exploitation, while larger β favors exploration. section 5.2.1 section 5.2.2

Plotting a GP confidence interval

Use a predictive distribution's mean for the center line and confidence_region() for the lower and upper bounds. Plot the bounds as a shaded region around the mean; individual samples can reveal nonlinear functions that the interval summarizes. section 2.4.4

predictive_lower, predictive_upper =
        predictive_distribution.confidence_region()

Retrieve the lower and upper confidence-interval endpoints directly from a GPyTorch predictive distribution. section 2.4.4

How Bayesian Optimization in Action covers it

How deep it goes
Derives 95% bounds from predictive covariance and compares β-controlled intervals, stopping short of statistical coverage theory.
Examples
Uses GP prediction plots, shaded 95% regions, sampled functions, normal-distribution intervals, and UCB search points.
What it assumes
Assumes predictive means, covariance matrices, normal distributions, and Gaussian processes; develops interval construction from these quantities.
What you can do after
Apply it via GPyTorch to retrieve, plot, and use predictive bounds in upper confidence bound optimization.
How it connects
Connects Gaussian processes, Bayesian optimization, upper confidence bound policies, acquisition scores, exploration, and exploitation.

Also explained in

Compare how 10 books explain confidence interval →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Bayesian Optimization in Action. The section links point to the parts of the book it draws on.