liveBook · Manning

Surrogate model

As explained in Experimentation for Engineers

A surrogate function is a model that approximates a measured response as a function of parameter values and estimates the response at unmeasured values.

A surrogate model approximates a measured response as a function of one or more parameter values. It interpolates from aggregate experimental measurements to estimate a business metric at settings that have not been measured. Those estimates are cheap to generate—milliseconds rather than the hours or weeks an experiment may require—so they support searching for promising settings before committing to more production measurement. section 4.1 section 4.3

In response surface methodology, the target being approximated is the response surface: the underlying relationship between parameters and a metric such as profit. For a continuously varying metric over a continuous parameter, measured values can be interpolated between. Domain knowledge should first constrain the parameter range to settings where the system can function, and the experiment must include enough useful measurement locations for the analysis. section 4.1.1 section 4.1.3

One-parameter profit model

A trading strategy uses a signal threshold to decide when to buy or sell. After measuring aggregate markout profit at three threshold values, fit a quadratic surrogate with linear regression: profit is modeled as a constant, a linear threshold term, and a squared threshold term. Evaluate the fitted parabola across a fine grid of thresholds, then select the threshold with the largest estimated profit. With exactly three aggregate measurements and three fitted coefficients, the curve fits those measurements exactly; with additional measurements, approximation error is expected. section 4.1.1 section 4.1.3

Use a surrogate model as an iterative experimental decision tool:

  • Choose feasible parameter values using engineering or business knowledge and the needs of the planned analysis. section 4.1.1
  • Measure the business metric at the selected settings and aggregate the individual results. section 4.1
  • Fit the surrogate, search it for an estimated optimum, and redesign the experiment if analysis does not locate one. section 4.1
  • Validate the selected setting experimentally; return to design when the observed result does not agree with the estimate. section 4.1 section 4.3

For two parameters, a quadratic surrogate expands to include a linear and squared term for each parameter plus a cross term. The cross term represents behavior along diagonal regions between design points. A fitted two-dimensional surface can provide many estimates from relatively few measurements, but its complexity raises the need to inspect the experiment: an outlying measurement can violate the assumption that the model is being fit near an optimum, prompting another iteration. section 4.2.2 section 4.2.2

Figure 4.18 A two-dimensional surrogate function, an interpolation of markout_profit_2D over settings of threshold and order_size. The filled dots mark the parameter settings where markout profit was measured in the experiment. In this figure, there are many more estimates of markout profit (around 20,000 interpolation estimates) than measurements (only nine).
04-18

Inspect the fitted surface as a grid of estimates over threshold and order size, with measured settings marked separately from interpolated values. section 4.2.2

A surrogate can also guide which experiment to run next. In Bayesian optimization, it models CPU time versus a parameter from sparse evidence while representing uncertainty: a single measurement can anchor the estimated response at its observed value, with uncertainty assumed to grow away from that point under a continuity assumption. section 6.1.3

How Experimentation for Engineers covers it

How deep it goes
Works through one- and two-parameter quadratic regressions, interpolation grids, optimization, iteration, and validation.
Examples
Uses simulated trading markout profit over threshold and order size, plus CPU time from one Bayesian-optimization measurement.
What it assumes
Assumes aggregate experimental measurements and continuous feasible parameter ranges; defers linear-regression introduction to an appendix.
What you can do after
Apply it via linear regression to estimate and optimize parameter settings, then validate the estimated optimum experimentally.
How it connects
Connects response surface methodology with interpolation, linear regression, Bayesian optimization, continuous parameters, and validation.

Also explained in

Compare how 5 books explain surrogate model →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Experimentation for Engineers. The section links point to the parts of the book it draws on.