Tutorials › Group Sequential Methods and Sample Size Re-Estimation › Adaptive Integration Near a Stopping Boundary

Computing Boundaries and Power · Tutorial 249 of 699

Adaptive Integration Near a Stopping Boundary

Learn to integrate survivor densities accurately near stopping boundaries, choose local quadrature refinements, and assess when a uniform grid is inadequate.

Advanced 12 min read

What You'll Learn

  • Write the survivor-density recursion for a canonical group-sequential normal process.
  • Separate integration over the continuation region from calculation of boundary-crossing tails.
  • Use boundary-aligned intervals and local quadrature refinement.
  • Compare adaptive and uniform-grid calculations on a boundary-near integral.
  • Recognize symptoms of poor boundary resolution and understand adaptive quadrature’s limitations.

Why Boundary-Local Integration Matters

In a group-sequential calculation, a path contributes to later looks only if it has not crossed a stopping boundary. The survivor density is therefore integrated over a continuation region whose endpoints are the boundaries themselves. A small numerical error near an endpoint can change how much probability is assigned to stopping now versus surviving to a later look. Refining the whole state space uniformly can be wasteful, while leaving a boundary poorly resolved can distort the quantities of interest.

Adaptive integration addresses this imbalance: it places more quadrature work where the integrand changes rapidly or where an interval endpoint matters, and less where the integrand is smooth. The essential practice is not simply to request more precision from a routine. It is to represent the stopping boundary explicitly, split the integral there, and refine locally rather than allowing a quadrature rule to straddle a discontinuity.

Model and Survivor-Density Recursion

Use the canonical Gaussian group-sequential model. Let \(Z_i\) be the standardized statistic at look \(i\), and let \(0<t_1<\cdots<t_K\) be the information fractions. Under a drift parameter \(\theta\), assume the canonical joint normal model: \(E(Z_i)=\theta\sqrt{t_i}\) and \(\operatorname{Cov}(Z_i,Z_j)=\sqrt{t_i/t_j}\) for \(i\leq j\). Under the null, \(\theta=0\). The model assumes the specified information fractions and drift are appropriate and that the process has the stated Gaussian distribution.

These assumptions imply the Markov transition \(Z_i\mid Z_{i-1}=x\sim N\!\left(\sqrt{t_{i-1}/t_i}\,x+\theta(t_i-t_{i-1})/\sqrt{t_i},(t_i-t_{i-1})/t_i\right)\). For the first look, \(Z_1\sim N(\theta\sqrt{t_1},1)\). At look \(i\), let \(l_i\) and \(u_i\) be the lower and upper boundaries; a value in the continuation region \(C_i=(l_i,u_i)\) does not stop the trial at that look. An infinite endpoint represents the absence of a boundary on that side.

Define \(q_i(y)\) as the density at \(Z_i=y\) of paths that have survived every look through \(i\). It is an unconditional density: its integral over \(C_i\) is the probability of surviving through look \(i\), not one. The recursion integrates the previous survivor density against the conditional transition density and then retains only the current continuation region.

$$ q_1(y)=\phi(y-\theta\sqrt{t_1})\,\mathbf{1}_{C_1}(y),\qquad q_i(y)=\mathbf{1}_{C_i}(y)\int_{l_{i-1}}^{u_{i-1}}q_{i-1}(x)f_i(y\mid x)\,dx . $$

Here \(\phi\) is the standard normal density, \(f_i(y\mid x)\) is the normal transition density just specified, and \(\mathbf{1}_{C_i}\) is one inside \(C_i\) and zero outside. The limits of the integral are the previous look’s continuation boundaries; they are not arbitrary grid limits. Once \(q_i\) is available, the probability of crossing an upper boundary at look \(i\) is obtained by integrating the conditional upper-tail probability against \(q_{i-1}\). A lower crossing uses the corresponding conditional lower tail.

Where to Refine the Quadrature

There are two related integrations to distinguish. The survivor update computes \(q_i(y)\) by integrating over the previous survivor region. A stopping probability integrates over that same previous region, but its integrand includes a conditional tail probability. In both cases, the previous continuation endpoints should be explicit integration endpoints. Do not integrate across a region where the survivor density is abruptly set to zero and expect a smooth-integrand quadrature rule to behave as if no discontinuity were present.

A practical adaptive calculation proceeds as follows. First, express the integration interval using the exact boundary values. Next, evaluate the integrand on that interval and estimate the local quadrature error using an adaptive rule, such as an embedded Gauss–Kronrod rule. If the estimated error is too large, subdivide the interval; give particular attention to intervals adjacent to a boundary or to a region where the integrand has marked curvature. Finally, sum the accepted subinterval integrals. The embedded-rule difference is a useful refinement indicator, not an absolute guarantee of the true error.

1
Align endpoints.
Use the stopping boundaries as integration limits, so the calculation does not blur survivor and stopped regions.
2
Inspect local behavior.
Evaluate whether the integrand changes appreciably near an endpoint or over a candidate quadrature panel.
3
Refine selectively.
Subdivide panels with large estimated quadrature error, including panels next to the boundary when necessary.
4
Check stability.
Repeat with a tighter local tolerance or altered initial partition and verify that the probability of interest is stable to the precision being reported.

Adaptive quadrature is especially useful when a boundary cuts through a coarse uniform grid, when survivor density is steep close to an endpoint, or when repeated recursive updates make grid spacing costly. It is not a substitute for a correct recurrence: if the transition model, boundary convention, or integration limits are wrong, a highly accurate integral will still give the wrong answer.

Worked Example: Probability in a Narrow Boundary-Adjacent Strip

Suppose the first-look statistic is standard normal under \(H_0\), and an upper stopping boundary is \(b=1.8\). To examine the density immediately below that boundary, calculate the probability in the strip \([1.6,1.8]\). This is a diagnostic strip, not the entire continuation probability.

The model assumption is \(Z_1\sim N(0,1)\), so the density is \(\phi(z)\). The strip probability is \(\int_{1.6}^{1.8}\phi(z)\,dz=\Phi(1.8)-\Phi(1.6)\). Using \(\Phi(1.8)\approx0.96407\) and \(\Phi(1.6)\approx0.94520\), the probability is \(0.01887\).

A single midpoint panel uses width \(h=0.2\) and midpoint \(1.7\): \(h\phi(1.7)=0.2(0.09405)=0.01881\). Its absolute difference from the CDF value is about \(0.000059\). Simpson’s rule with two subintervals of width \(0.1\) gives \(\frac{0.1}{3}\{\phi(1.6)+4\phi(1.7)+\phi(1.8)\}\) \(=\frac{0.1}{3}\{0.11092+4(0.09405)+0.07895\}\approx0.01887\). The finer result agrees with the CDF calculation to the displayed precision. This small example illustrates why a narrow strip near a boundary deserves its own resolution check, even when its probability is modest.

Conditional Crossing Integrals and Local Refinement

For an upper crossing at look \(i\), the conditional probability given \(Z_{i-1}=x\) is a normal tail. Write \(m_i(x)\) and \(v_i\) for the conditional mean and variance under the canonical transition. The stagewise upper-crossing probability is \(\int_{l_{i-1}}^{u_{i-1}}q_{i-1}(x)\{1-\Phi((u_i-m_i(x))/\sqrt{v_i})\}\,dx\). The lower-crossing probability replaces the braced term by \(\Phi((l_i-m_i(x))/\sqrt{v_i})\). These integrands are generally smoother than a density multiplied by a discontinuous indicator, but they still inherit any sharp variation in \(q_{i-1}\). Boundary-aligned integration and local refinement remain important.

Worked Example: A Conditional Upper-Crossing Probability

Consider two looks with \(t_1=0.5\), \(t_2=1\), and no drift under \(H_0\). At the first look, suppose \(Z_1=0.5\), which is inside a first-look continuation region with upper boundary \(1\). The second-look upper stopping boundary is \(u_2=2\). Calculate the conditional probability of crossing it.

Under the canonical transition, the conditional mean is \(\sqrt{0.5/1}(0.5)=0.3536\), and the conditional variance is \((1-0.5)/1=0.5\). Thus the conditional standard deviation is \(\sqrt{0.5}=0.7071\). The standardized distance from the conditional mean to the boundary is \((2-0.3536)/0.7071=2.328\).

Therefore \(P(Z_2\geq2\mid Z_1=0.5)=1-\Phi(2.328)\approx0.00996\). This is a conditional probability for a path at \(Z_1=0.5\), not the overall probability of stopping at look 2. The overall stagewise probability integrates this conditional tail over all first-look survivor values, weighted by \(q_1(x)\).

Worked Example: Uniform and Boundary-Local Quadrature

Again take a standard normal density, now examining the interval \([1.8,2.0]\) immediately above an upper boundary at \(1.8\). This interval is useful when checking the upper-tail mass adjacent to the boundary. The exact mass is \(\Phi(2.0)-\Phi(1.8)\approx0.97725-0.96407=0.01318\).

A single uniform midpoint panel gives \(0.2\phi(1.9)=0.2(0.06562)=0.01312\), about \(0.000057\) below the exact value. Splitting at \(1.9\) and applying Simpson’s rule gives \(\frac{0.1}{3}\{\phi(1.8)+4\phi(1.9)+\phi(2.0)\}\) \(=\frac{0.1}{3}\{0.07895+4(0.06562)+0.05399\}\approx0.01318\).

The comparison is deliberately local: a two-panel rule resolves the density’s change across the interval better than this one-panel midpoint calculation. A real recursive update may have a more complicated integrand than \(\phi\), so its adaptive routine must assess that integrand itself rather than assume this numerical difference will generalize.

Adaptive Integration Versus a Uniform Grid

ApproachStrengthBoundary-related risk
Uniform gridSimple, regular, and convenient for repeated evaluations or vectorized calculations.A boundary may fall between nodes; interpolation or cell assignment can misallocate probability unless the boundary is handled explicitly.
Adaptive quadratureConcentrates evaluations in panels where the integrand changes or the error estimate is large.Results depend on the quality of the error indicator and may be costly when many related integrals must be evaluated.
Boundary-aligned grid with local refinementPreserves regular computation in smooth regions while resolving selected endpoint neighborhoods.Requires careful construction and convergence checks; refinement cannot fix an incorrect density or boundary definition.

A uniform grid is not inherently inaccurate. It can be reliable when its spacing is sufficiently fine, the boundaries are represented accurately, and results are stable under refinement. Adaptive integration is an alternative allocation of computational effort, not an automatic guarantee of superiority. For many recursive calculations, a useful comparison is to compute the same probability using a boundary-aligned adaptive rule and a successively refined uniform grid, then examine whether the two stabilize at a common value.

Derivation: Why Splitting at the Boundary Helps

Suppose a calculation is written over an interval containing a stopping boundary \(b\), with an integrand that equals a smooth function \(g(x)\) on the survivor side and zero on the stopped side. In a simple one-sided case, that integrand is \(g(x)\mathbf{1}(x<b)\). It has a jump at \(b\) whenever \(g(b)\ne0\). A quadrature rule that treats the whole interval as smooth may sample on both sides of the jump without locating it, so its usual smooth-function accuracy can be lost.

Instead, separate the integral at the known boundary: \(\int_a^c g(x)\mathbf{1}(x<b)\,dx=\int_a^b g(x)\,dx\), for \(a<b<c\). The integral on \([a,b]\) now has the smooth integrand \(g\), and no panel crosses the jump. The same logic applies to a continuation interval with two finite endpoints: integrate only from \(l_i\) to \(u_i\), and refine panels within that interval. This does not remove error from approximating a difficult smooth integrand, but it removes avoidable error from hiding a known discontinuity inside a panel.

There is also a simple sensitivity interpretation. If an endpoint is accidentally displaced by a small amount \(\varepsilon\), the resulting omitted or added mass is approximately \(g(b)\varepsilon\) when \(g\) is continuous at \(b\). Thus even an accurate interior quadrature cannot compensate for a misplaced boundary when the density near that boundary is appreciable. Boundary values should come from the analysis specification, not from rounding them to the nearest grid node.

Diagnostics and Limitations

Signs that boundary resolution may be inadequate include a reported stopping probability that changes materially when a grid is shifted, a large change under modest grid refinement, or a discrepancy between adaptive and uniform-grid calculations concentrated in the boundary-adjacent region. Also inspect whether the survivor mass responds plausibly when a boundary is moved slightly: moving an upper continuation limit inward should not increase the mass retained at that same look, all else equal. Such checks diagnose numerical behavior; they do not by themselves identify the source of an error.

  • Do not smooth across a stopping rule. A discontinuity in the survivor indicator is a feature of the design. Split at its known location rather than approximating it with a smooth curve.
  • Do not interpret quadrature tolerance as total numerical accuracy. The quadrature routine assesses its own integration approximation, not errors from truncating the state space, interpolating a density, or using rounded boundaries.
  • Do not assume local refinement always saves time. If the integrand is smooth over a small, regular domain, a uniform grid may be simpler and equally effective.
  • Do not confuse numerical stability with model validity. Stable values can still be wrong if the canonical model, drift, information fractions, or stopping boundaries do not represent the intended calculation.

Adaptive quadrature also has limits when the integrand is sharply peaked, has a narrow feature the initial evaluations miss, or is itself obtained from an inaccurate interpolation. In those cases, an error estimator can be falsely reassuring. Supply boundary endpoints explicitly, choose a reasonable initial partition, and compare with a method whose discretization differs. This tutorial’s comparison is about locating integration effort; a comprehensive accounting of all numerical error sources is a separate task.

Key takeaway: In recursive group-sequential calculations, make the continuation boundaries the actual integration endpoints. Then refine locally where the survivor density or conditional crossing integrand changes rapidly, and verify the result against a refined uniform-grid calculation when practical.

Check Your Understanding

Answer each question, then compare with the solutions below.

  1. Why should a quadrature panel not straddle a stopping boundary when the survivor density is set to zero beyond it?
  2. Under the canonical model, what are the conditional mean and variance of \(Z_i\) given \(Z_{i-1}=x\)?
  3. A boundary-adjacent strip has probability \(0.01887\) by a CDF calculation and \(0.01881\) by a one-panel midpoint rule. What is the absolute difference, and what does the comparison suggest?
  4. Does a small adaptive quadrature error estimate prove that the full recursive probability is accurate? Explain.

Solutions. (1) The survivor indicator creates a jump at the boundary, so a smooth-integrand quadrature rule may lose accuracy if it samples across that jump without locating it. Splitting at the boundary leaves a smooth integrand on each side. (2) The conditional mean is \(\sqrt{t_{i-1}/t_i}\,x+\theta(t_i-t_{i-1})/\sqrt{t_i}\), and the conditional variance is \((t_i-t_{i-1})/t_i\). (3) The absolute difference is \(|0.01887-0.01881|=0.00006\), to the displayed precision. The midpoint result is close here, but the calculation shows why a boundary-adjacent interval should be checked rather than assumed accurate. (4) No. The estimate concerns the quadrature approximation under the routine’s error assessment; it does not include errors from such sources as density interpolation, state-space truncation, rounded boundaries, or a misspecified model.

Clinical Biostats