The surface between the corners

When the best setting is outside the region

On a flat surface at twice the noise the fitted optimum lands outside the experimental region on 24.9% of studies and more than three coded units out on 11.8%. The answer is a ridge — the best setting at each radius, with a closed form — and the two obvious rules for using it turn out to be within four per cent of each other.

Worth reading first: Walking up the gradient.

A fitted surface returns a stationary point. The experiment was run over a square with sides at ±1, which is where the equipment reaches and the process is stable, and the point that comes back is at a radius of 2.29.

It is not a recommendation. It is a place the model has been extrapolated to — the quadratic was fitted over a square of side two and is being read at two and a quarter times that square’s own radius — and it happens often.

The ridge, when the fitted optimum is outside the regionOne fitted surface. Its stationary point is at a radius of 2.289 and the fit calls the shape a maximum. The ridge is the best setting at each radius, found by the Lagrange condition (B̂ − μI)x = −ĝ/2; the fitted response rises along it from 59.93 at the centre to 62.10 at the edge. The true optimum is at (0.4, 0.3).-101-101x₁x₂the true optimumthe best point inside the regionfitted stationary point at radius 2.29one fit, σ = 2, thirteen runsthe shaded square is where runs can be made
Fig. 1 One fitted surface at twice the noise, on a truth whose own optimum is well inside the region at (0.4, 0.3). The fitted stationary point is at a radius of 2.289. The path is the ridge — the best setting at each radius — and the fitted response rises along it from 59.93 at the centre to 62.10 at the region’s edge.

The shape is a familiar one, and it has two close relatives. A bias-corrected persistence leaves the stationary region on a third of series and something has to be done about it; a variance estimated by subtraction returns its own boundary on a third of datasets. Here a fitted optimum leaves the region a procedure can reach on a quarter of studies. In all three the output is a well-formed number that is not a value the quantity can take, and in all three the handling is undocumented.

How often

The stationary point is 12B^1g^-\tfrac12\hat{\mathbf B}^{-1}\hat{\mathbf g}, a ratio whose denominator is an estimated curvature, so it wanders exactly where the curvature is hard to read — which is the flat surfaces, which are the interesting ones.

How often the fitted optimum is not a setting. A truth whose own optimum is inside the region, at (0.4, 0.3). At σ = 2 the fitted stationary point is outside on 24.9% of studies and more than three units out on 11.8%, and the best point inside the region is on its boundary on 47.3%.
Fig. 2 Against a truth whose optimum is at (0.4, 0.3), inside the region. At twice the noise the fitted stationary point is outside the region on 24.9% of studies and more than three coded units out on 11.8%, and the best point inside the region sits on its boundary on 47.3%.

A quarter of studies at σ=2\sigma = 2, and one in eight producing a recommendation more than twice the region’s own radius away. Those are not pathological runs: the truth has a well-defined interior optimum and the design is the standard thirteen-run composite.

And the two rates are different questions. The stationary point being outside is a fact about the fit. The best point inside the region sitting on the boundary is the operational consequence, and it happens nearly twice as often — because it also happens whenever the fit reads a saddle, where there is no interior maximum to find.

400 fits of the same surface, σ = 3. Each point is the stationary point of one fitted quadratic, from one central composite design run on the same true surface — which has a maximum at (0.91, 0.35), marked. 8% of the fits are saddles rather than maxima, so their stationary point is not an optimum of anything, and 39% land outside the region the design explored. The median distance from the centre is 1.18 against a true 0.98.
Fig. 3 Where the stationary point lands, over four hundred studies. The cloud has a long tail rather than a shape, because the point is a ratio whose denominator is an estimated curvature — and on a flat surface that denominator is close to zero on a substantial share of studies.

The ridge

What replaces a stationary point that cannot be run is the path of best settings at each radius, and it has a closed form.

Maximising b^0+g^x+xB^x\hat b_0 + \hat{\mathbf g}'\mathbf x + \mathbf x'\hat{\mathbf B}\mathbf x subject to x=r|\mathbf x| = r gives the Lagrange condition

(B^μI)x=12g^(\hat{\mathbf B} - \mu\mathbf I)\,\mathbf x = -\tfrac12\hat{\mathbf g}

and the family of solutions as μ\mu varies is the ridge. Each μ\mu gives one point and one radius; the radius falls as μ\mu rises, so solving for a stated radius is a bisection in one variable.

Which μ\mu matters and it is where this essay’s arithmetic was wrong first. For the maximiser on each sphere, B^μI\hat{\mathbf B} - \mu\mathbf I has to be negative semidefinite, so μ\mu sits above the largest eigenvalue. The branch below the smallest eigenvalue is the minimiser, and a ridge built on it walks downhill: at a radius of one it reaches 54.31 where the maximum is 61.69.

That error was caught by a stated requirement rather than by inspection: a ridge has to rise along itself out to the stationary point’s radius, and the first version did not.

Two intervals for the same optimum, counted. 6,000 datasets at each curvature, with both constructions applied to each. Fieller's set covers 95.1% on average and never departs from its claim; the delta method covers 68.4% where the curvature is barely visible and 95.3% where it is sharp. It fails in the direction that matters — too narrow, so it understates how little the experiment has settled.
Fig. 4 The interval version of the same instability, measured earlier: the delta method reports a finite interval for the optimum every time and covers 68.8% where the curvature is weak, while Fieller’s set covers 95% by being unbounded. An unbounded interval and a stationary point outside the region are the same fact reported two ways.

Two routes

A Lagrange solve is an algebraic claim about a maximisation nobody performed, so it is checked against one.

At each of four radii the ridge point is compared with the best of three thousand six hundred evaluations around the circle. The two agree to 2.4 × 10⁻⁶, sharing only the fitted coefficients: one route inverts a two-by-two matrix at a bisected μ\mu, the other evaluates a quadratic at every tenth of a degree.

The refusal beside it is the wrong branch, and it is required to fail — the minimiser must be more than half a unit below the maximiser. A check in which both branches agreed would be a check that had never been shown the case it exists to catch.

The bisection deserves one sentence about its bracket, because the bracket is where a solve like this usually goes wrong. The radius is monotone in μ\mu on the branch above the largest eigenvalue — falling from infinity at the eigenvalue itself to zero as μ\mu grows — so a bisection needs an upper end where the radius is already below the target. That end is found by doubling rather than assumed, which is the same lesson two routes to every number draws from a fixed bracket that returned its own endpoint instead of failing.

What to recommend

Two rules are available once the ridge exists and they differ in one clause.

Report the stationary point, pulled back onto the boundary if it left the region. Crude: it takes the direction the fit points in and stops at the edge.

Report the maximum of the fitted surface over the region. The textbook answer: if the stationary point is inside and is a maximum, use it; otherwise the maximum is on the boundary and the ridge at the region’s radius finds it.

What each rule gives up, against a true best of 60.73. The true optimum is worth 60.726. Reporting the fitted stationary point, pulled back onto the boundary where it left, gives up 0.493 at σ = 2; taking the maximum of the fitted surface over the region gives up 0.514. The two rules are within 4% of each other there and the ordering between them changes across the sweep.
Fig. 5 What each rule gives up, measured as the true response at the setting it recommends against the true response at the true optimum. At twice the noise they give up 0.493 and 0.514 out of a best of 60.726 — within four per cent of each other — and the ordering between them changes across the sweep.

That is a negative result and it is the useful one. The careful rule requires an eigendecomposition, a branch choice, a bisection and a case split; the crude rule requires dividing a vector by its own length. They differ by four per cent of a quantity that is itself under one per cent of the response.

The difficulty is not which rule. It is that the fit is pointing in a direction that is only roughly right, and neither rule can improve on the direction it was given.

Why the two rules agree

The four per cent is worth explaining rather than only reporting, because “the crude rule is nearly as good” is the kind of claim that is usually an artefact.

The two rules differ only on the studies where the fitted stationary point is outside the region and the fit reads a maximum. On those, the crude rule takes the direction from the centre to the stationary point and stops at the boundary; the careful rule takes the ridge to the boundary. Those two boundary points are close, because the ridge bends towards the stationary point as the radius grows and by the region’s edge it is most of the way there.

On every other study the two rules agree exactly: where the stationary point is inside and is a maximum, both report it, and where the fit reads a saddle the crude rule projects a point that is not a maximum of anything while the careful rule takes the boundary maximum — which is where the ordering between them comes from and why it changes with the noise.

So the four per cent is a real comparison of two genuinely different rules that happen to disagree on a minority of studies and disagree mildly there. It is not that the careful rule is unnecessary; it is that the direction the fit points in is doing almost all of the work, and both rules inherit it.

What the ridge is actually for

The rules above use the ridge at one radius. Its value is that it is a path, and the path answers a question the point cannot.

An experimenter reading the ridge sees the fitted response at every radius from the centre out to the edge and can see where the gain stops being worth the move:

radius the setting the fit predicts
0.05 (0.04, 0.03) 59.934
0.52 (0.25, 0.45) 61.000
0.98 (0.30, 0.94) 61.666
1.39 (0.30, 1.36) 62.054

Moving from the centre to radius 0.52 buys 1.07 of response. The next half a unit buys 0.67, and the last four tenths buy 0.39. If the settings at larger radius are more expensive, less stable or further from a known operating point, the ridge prices the trade and a point recommendation does not.

That is the difference between a recommendation and a curve. A stationary point says “go here” and the ridge says “here is what each distance is worth”, and only the second survives the fit being roughly right rather than right.

The ridge, when the fitted optimum is outside the region. One fitted surface. Its stationary point is at a radius of 11.235 and the fit calls the shape a saddle. The ridge is the best setting at each radius, found by the Lagrange condition (B̂ − μI)x = −ĝ/2; the fitted response rises along it from 59.74 at the centre to 64.49 at the edge. The true optimum is at (0.4, 0.3).
Fig. 6 The same construction at four times the noise. The fitted surface is a different shape, the ridge points somewhere else, and the picture is worth including because it is what a reader gets on a bad study: a confident path leading away from an optimum at (0.4, 0.3).

Where this does not happen

The rates above are measured on a truth that is genuinely flat in one direction, and the contrast with a well-curved one says how much of the difficulty is the surface rather than the method.

With eigenvalues of −3 and −2.5 — a clean bowl, curved in every direction — the fitted stationary point leaves the region on 2.1% of studies at the same noise, against 24.9% on the flat truth. The whole phenomenon is a phenomenon of flat surfaces.

That is not reassuring, because flat is the interesting case. A surface with strong curvature in every direction has an obvious optimum that a coarse search would find; a surface with a flat direction is where the experiment has something to say that intuition does not, and it is exactly where the fit’s stationary point wanders off. The method is least reliable on the problems it was built for, which is the shape the hierarchical field found for its own estimator and which recurs whenever a procedure’s difficulty is division by a small estimated quantity.

Why the fit points the wrong way

The direction the ridge sets off in is the gradient at the centre, and how wrong that is has already been measured in this field.

Walking up the gradient computes the angle between the fitted gradient and the true one in closed form — σ/(βN)\sigma/(|\beta|\sqrt N) — and what that angle costs as its squared cosine, twelve per cent at twenty degrees. The ridge inherits the same error, because it starts from the same gradient, and adds a second one: the curvature that bends the path is estimated too.

So the ridge’s accuracy is bounded by the steepest-ascent field’s arithmetic, and the boundary points it recommends are boundary points chosen by a direction with a known error. The shortfalls in the cost figure — 0.27 at σ=1\sigma = 1 rising to 0.75 at σ=3\sigma = 3 — are that error arriving in response units.

400 fits of the same surface, σ = 3. Each point is the stationary point of one fitted quadratic, from one central composite design run on the same true surface — which has a maximum at (0.91, 0.35), marked. 8% of the fits are saddles rather than maxima, so their stationary point is not an optimum of anything, and 39% land outside the region the design explored. The median distance from the centre is 1.18 against a true 0.98.
Fig. 7 Where the stationary point lands, over four hundred studies. The cloud has a long tail rather than a shape, because the point is a ratio whose denominator is an estimated curvature — and on a flat surface that denominator is close to zero on a substantial share of studies.

The ridge is right about the fit and the fit is wrong about the truth

One more number belongs in the account and it is deflating, which is why it is here rather than in a footnote.

On the study drawn in the first figure, the ridge ends at (0.30, 1.36) and the fit predicts 62.05 there. The truth at that setting is 59.92, and the true optimum — at (0.4, 0.3), inside the region — is worth 60.73. So the recommended setting is worse than the true optimum by 0.81, and the fit was expecting it to be better by 1.32.

Everything about the ridge is correct. It is exactly the maximum of the fitted surface on each sphere, verified against a walk, and it rises along itself as it should. What it is a ridge of is a surface estimated from thirteen runs at twice the noise, and on that study the estimate points in a direction the truth does not go.

A correct answer to the wrong question is what most of this field’s failures look like, and it is the reason the cost figure is measured against the truth rather than against the fit. An analysis that checked its own ridge against its own surface would pass every test in this essay and recommend a setting that gives up more than a unit of response.

What an experimenter should do with all of this

Four statements, in the order they are useful.

Check whether the stationary point is in the region before reporting it. It is one comparison of a radius against a bound and it fails on a quarter of studies at twice the noise. A report that quotes a stationary point outside the region has extrapolated a quadratic fitted over ±1 to a radius of two or more, and quadratics extrapolate badly by construction.

Use the crude rule if a single setting is wanted. It is within four per cent of the careful one and it needs no eigendecomposition.

Report the ridge if anything more than a setting is wanted. It is the object that prices the move, it costs a bisection at each of twenty-five radii, and it is what a reader deciding how far to shift an operating point actually needs.

And treat all of it as a direction rather than a destination. The recommended setting on the study drawn here gives up 0.81 of response against the true optimum, and that is not fixed by any of the rules above. The response to a fit that points roughly in the right direction is another experiment centred where it points, which is what the steepest-ascent field does with a first-order fit and is the same discipline one order up.

What is claimed here, and what is not

The claim is what to do when a fitted optimum is outside the region: that on a flat truth with an interior optimum the fitted stationary point is outside on 24.9% of studies at twice the noise and more than three units out on 11.8%; that the best point inside the region is on its boundary on 47.3%; that the ridge maximises the fitted surface on each sphere, checked against a walk to 2.4 × 10⁻⁶, on the branch above the largest eigenvalue rather than below the smallest; and that the two rules for using it differ by four per cent of a shortfall that is itself under one per cent of the response.

Every rate is two thousand studies with the same thirteen-run design. The truth is built with stated eigenvalues of −3 and −0.4 so that it is genuinely flat in one direction, which is the case at issue; on a well-curved truth the stationary point rarely leaves the region at all.

What stays out: the sampling distribution of the ridge itself, which would need an interval at each radius and is the natural next measurement; ridges in three and more factors, where the arithmetic is identical and the picture is not; the rising-ridge case, where the fitted surface has a near-zero eigenvalue and a gradient along it, so the ridge runs to infinity and the region’s boundary is the only thing stopping it; and constraints that are not a sphere — a box, a simplex, a cost budget — where the Lagrange condition is replaced by a general constrained optimisation and the closed form is gone.

Still open: the run that confirms it

Every setting recommended in this essay is a setting the fitted surface says is good, and the fit predicts a response there. The obvious next step, and the one every response-surface text recommends, is a confirmation run: go to the recommended setting and measure it.

What that run will find is not what the fit predicts, and the gap is not noise. The setting was chosen because the fitted surface was highest there, so the fitted height at it is a maximum over a random field and is biased upwards — by 0.858 at twice the noise, which is 0.72 of the prediction’s own standard error. That is what the confirming run finds.

The check, and the refusal

Three claims are gated. That the ridge is defined at every radius out to the region’s edge, which would fail on a fit whose curvature made the solve singular. That the fitted response rises along the ridge to the stationary point’s own radius and falls beyond it — unimodal rather than rising, because the rising version held on the frames where the stationary point was outside and failed where it was inside — a claim about one setting dressed as a claim about the family. And that the peak, where it is inside the walked range, is at that radius.

The refusal is the branch: the Lagrange solution below the smallest eigenvalue must be the minimum on the sphere, more than half a unit below the maximum. It is 54.31 against 61.69. If the two branches agreed, the essay’s whole construction would be indifferent to a choice it makes deliberately, and the first version of the arithmetic — which took the wrong one — would have produced a figure nobody could have told was wrong.

What links here

Computed from the collection, not written here: the essays that point at this one.

Shares its objects with

Essays that name at least two of the same things, and that neither author linked.

Named objects

A flat tag is an object no other essay names yet.

Canonical analysisConstrained optimisationCurvatureEigenvalueExperimental designPrediction varianceResponse-surfaceRidge analysisSaddle pointStationary point