Algorithm Search⌘K

Modeladvanced

Kennedy-O'Hagan calibration model

Also called Bayesian calibration of computer models.

Models data as a simulator at unknown parameters plus a Gaussian process discrepancy plus noise, and infers parameters and discrepancy together.

The Kennedy-O'Hagan model is a statistical model for the calibration of a computer simulator against field measurements. The simulator η(x,t)\eta(x, t) has control inputs xx, which the experimenter sets and knows, and calibration inputs tt, which are physical constants or tuning parameters with an unknown best value θ\theta. The model says that reality is the simulator at θ\theta plus a discrepancy, ζ(x)=ρ η(x,θ)+δ(x)\zeta(x) = \rho\, \eta(x, \theta) + \delta(x), and that each measurement is reality plus noise. Both the simulator, which is too expensive to run everywhere, and the discrepancy are given Gaussian process priors. With Bayes' theorem the model gives a posterior for θ\theta and a prediction of reality at new inputs, with three sources of uncertainty: the noise, the unknown simulator between its runs, and the model error.

A Bayesian inverse problem also puts a prior on θ\theta and takes a posterior, but it assumes that data equals the forward map at θ\theta plus noise, so all misfit is noise. The Kennedy-O'Hagan model adds the term δ\delta for the misfit that the simulator cannot remove at any θ\theta. Gaussian process regression or kriging of the field data alone has no simulator and no θ\theta; the Kennedy-O'Hagan model uses it twice, once as an emulator of η\eta and once for δ\delta.

The machine

The data.

  • Simulator runs: outputs yj=η(xj∗,tj)y_j = \eta(x^*_j, t_j) for j=1,…,Nj = 1, \ldots, N at a design of points (xj∗,tj)(x^*_j, t_j), often from Latin hypercube sampling.
  • Field data: zi=ζ(xi)+eiz_i = \zeta(x_i) + e_i for i=1,…,ni = 1, \ldots, n, with independent noise ei∼N(0,λ)e_i \sim N(0, \lambda).

The model.

zi=ρ η(xi,θ)+δ(xi)+ei.z_i = \rho\, \eta(x_i, \theta) + \delta(x_i) + e_i .
  • θ\theta is the unknown best value of the calibration inputs, with a prior p(θ)p(\theta).
  • ρ\rho is an unknown scale, often fixed to 1.
  • η(⋅,⋅)\eta(\cdot, \cdot) has a Gaussian process prior with mean h1(x,t)Tβ1h_1(x, t)^T \beta_1 and covariance σ12c1((x,t),(x′,t′))\sigma_1^2 c_1((x, t), (x', t')), for example a squared exponential with one length scale per input.
  • δ(⋅)\delta(\cdot) has an independent Gaussian process prior with mean h2(x)Tβ2h_2(x)^T \beta_2 and covariance σ22c2(x,x′)\sigma_2^2 c_2(x, x').
  • The hyperparameters are ϕ=(β1,σ12,β2,σ22,λ,ρ)\phi = (\beta_1, \sigma_1^2, \beta_2, \sigma_2^2, \lambda, \rho) and the length scales.

The joint distribution. Given θ\theta and ϕ\phi, the vector d=(y,z)d = (y, z) is Gaussian, because it is linear in the two processes and the noise. Its covariance has the block form

Vd(θ)=(σ12C1(D1,D1)ρσ12C1(D1,D2(θ))ρσ12C1(D2(θ),D1)ρ2σ12C1(D2(θ),D2(θ))+σ22C2(X,X)+λI),V_d(\theta) = \begin{pmatrix} \sigma_1^2 C_1(D_1, D_1) & \rho \sigma_1^2 C_1(D_1, D_2(\theta)) \\ \rho \sigma_1^2 C_1(D_2(\theta), D_1) & \rho^2 \sigma_1^2 C_1(D_2(\theta), D_2(\theta)) + \sigma_2^2 C_2(X, X) + \lambda I \end{pmatrix},

where D1D_1 is the design of the runs, D2(θ)D_2(\theta) is the set of points (xi,θ)(x_i, \theta), and XX is the set of the xix_i. So the likelihood of θ\theta is a Gaussian density with a covariance that depends on θ\theta.

The inference.

  • Kennedy and O'Hagan estimate the hyperparameters first, those of η\eta from the runs alone and the rest from all data, and then plug them in.
  • The posterior of θ\theta is p(θ∣d,ϕ^)∝p(θ) N(d;md(θ),Vd(θ))p(\theta \mid d, \hat\phi) \propto p(\theta)\, N(d; m_d(\theta), V_d(\theta)), computed by numerical integration over a low-dimensional θ\theta.
  • A full Bayesian version also samples ϕ\phi, for example by Metropolis-Hastings.

The prediction. For a new xx, the posterior of ζ(x)\zeta(x) given dd and θ\theta is Gaussian by the conditioning formulas of Gaussian process regression, and the prediction averages it over the posterior of θ\theta.

What it counts

The model gives three outputs:

  • the posterior of the calibration parameters θ\theta;
  • the posterior of the discrepancy δ(x)\delta(x);
  • the predictive distribution of reality ζ(x)\zeta(x) and of new measurements.

The main cost is the Gaussian likelihood. Each value of θ\theta needs a Cholesky factorization of the (N+n)×(N+n)(N + n) \times (N + n) matrix Vd(θ)V_d(\theta), which costs O((N+n)3)O((N + n)^3) in the real RAM model, and O((N+n)2)O((N + n)^2) memory. A grid over θ\theta or an MCMC run multiplies this by the number of evaluations. The simulator itself is only run at the NN design points, before the inference.

Relation to other models

  • Bayesian inverse problems. With δ=0\delta = 0, an exact simulator (N=∞N = \infty, or a cheap η\eta) and ρ=1\rho = 1, the model is the Bayesian inverse problem z=η(X,θ)+ez = \eta(X, \theta) + e. The well-posedness theorem of that setting applies to the posterior of θ\theta for fixed hyperparameters.
  • Least squares calibration. Fitting θ\theta by least squares between zz and η(X,θ)\eta(X, \theta) gives a point estimate with no discrepancy and no code uncertainty.
  • Gaussian process regression. With no simulator (ρ=0\rho = 0), the model is Gaussian process regression of the field data with the covariance of δ\delta and noise λ\lambda. The emulator part alone is the regression of the runs, as in kriging of computer experiments.
  • Approximate Bayesian computation. ABC also calibrates simulators by Bayes, but with simulated data instead of a likelihood, and usually with no explicit discrepancy.
  • Forward propagation. After calibration, the posterior of θ\theta is the input distribution for forward uncertainty propagation of the simulator.

Known results in the model

Non-identifiability (theorem, by hand). Take a scalar θ\theta with the prior N(0,1)N(0, 1), the simulator η(x,t)=t\eta(x, t) = t, ρ=1\rho = 1, and a discrepancy that is a constant bias, δ(x)=b\delta(x) = b with b∼N(0,s2)b \sim N(0, s^2) (a Gaussian process with c2≡1c_2 \equiv 1). Then every measurement is zi=θ+b+eiz_i = \theta + b + e_i with ei∼N(0,λ)e_i \sim N(0, \lambda). The mean zˉ\bar z is sufficient, and zˉ=θ+b+eˉ\bar z = \theta + b + \bar e with eˉ∼N(0,λ/n)\bar e \sim N(0, \lambda / n). By the formulas for a Gaussian pair,

Var⁡(θ∣z)=1−11+s2+λ/n=s2+λ/n1+s2+λ/n ≥ s21+s2,E⁡(θ∣z)=zˉ1+s2+λ/n.\operatorname{Var}(\theta \mid z) = 1 - \frac{1}{1 + s^2 + \lambda / n} = \frac{s^2 + \lambda / n}{1 + s^2 + \lambda / n} \ \ge\ \frac{s^2}{1 + s^2}, \qquad \operatorname{E}(\theta \mid z) = \frac{\bar z}{1 + s^2 + \lambda / n}.

The data only fix θ+b\theta + b. As n→∞n \to \infty, the posterior variance goes to s2/(1+s2)s^2/(1 + s^2), not to 0, so θ\theta cannot be learned beyond its prior information and the prior of bb. The same holds in the general form: for Σ=s2C2(X,X)+λI\Sigma = s^2 C_2(X, X) + \lambda I, Var⁡(θ∣z)=1/(1+1TΣ−11)\operatorname{Var}(\theta \mid z) = 1 / (1 + \mathbf{1}^T \Sigma^{-1} \mathbf{1}), and with C2=11TC_2 = \mathbf{1} \mathbf{1}^T the Sherman-Morrison formula gives 1TΣ−11=n/(λ+ns2)\mathbf{1}^T \Sigma^{-1} \mathbf{1} = n / (\lambda + n s^2), which is the formula above.

Overconfidence without a discrepancy (by hand). Let s2=1s^2 = 1, λ=0.25\lambda = 0.25, n=10n = 10, the true θ=0.6\theta = 0.6 and the true bias b=0.4b = 0.4, and let the noise average to 0, so zˉ=1\bar z = 1.

  • With the discrepancy, the posterior is N(1/2.025,1.025/2.025)=N(0.494,0.506)N(1 / 2.025, 1.025 / 2.025) = N(0.494, 0.506), with the standard deviation 0.711, and the true value 0.6 is well inside it.
  • Without the discrepancy (s2=0s^2 = 0), the posterior is N(1/1.025,0.025/1.025)=N(0.976,0.0244)N(1 / 1.025, 0.025 / 1.025) = N(0.976, 0.0244), with the standard deviation 0.156. The true value is 0.376/0.156=2.40.376 / 0.156 = 2.4 standard deviations away, and more data makes this worse, since the variance goes to 0 while the mean goes to θ+b=1\theta + b = 1.

The meaning of θ\theta. Brynjarsdóttir and O'Hagan showed with a simple machine example that a discrepancy with a vague Gaussian process prior does not fix the problem: the posterior of θ\theta is then wide or still away from the true value, because the data are explained equally well by many pairs of θ\theta and δ\delta. Physical parameters are only learned well when the prior of δ\delta has real information, for example that it is 0 at x=0x = 0. If the goal is only to predict ζ\zeta, the confounding matters less, because the predictions of different pairs agree where there is data.

Code uncertainty. When the simulator is replaced by its emulator, the posterior variance of ζ(x)\zeta(x) includes the emulator variance. At the design points of the runs this part is 0, and it grows between them, so a poor design widens the posterior of θ\theta.

References

  1. Marc C. Kennedy and Anthony O'Hagan, Bayesian calibration of computer models, Journal of the Royal Statistical Society Series B 63(3), 2001, 425-464, the model for the field data with the simulator, the scale parameter and the discrepancy, the Gaussian process priors, and the estimation of the hyperparameters before the posterior of the calibration parameters
  2. Jenný Brynjarsdóttir and Anthony O'Hagan, Learning about physical parameters: the importance of model discrepancy, Inverse Problems 30(11), 2014, 114007, the simple machine example, and the bias and overconfidence of calibration without a discrepancy or with an uninformative one

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/6BFBPS/text.yaml