Most clinical decisions are not only about what to do but about when to do it. Should a patient with low risk prostate cancer be treated now or watched? Should dialysis start at a given level of kidney function or wait for symptoms? Should antiretroviral therapy begin at diagnosis or when the immune system weakens? Should a trial stop now or collect another hundred patients? Each of these is a choice between acting on the current posterior and waiting for a better one, at the cost of what may happen in the meantime.
4.1 The threshold approach
The simplest clinical decision has two actions, treat and do not treat, and a single unknown, whether the patient has the disease. Let \(p\) be the current probability of disease. Let \(B\) be the net benefit of treating a patient who has the disease and \(H\) the net harm of treating one who does not. Treatment has expected value \(pB - (1-p)H\), which is positive when
\[
p > p_T = \frac{H}{B+H}.
\tag{4.1}\]
Pauker and Kassirer (1980) called \(p_T\) the treatment threshold. A treatment with large benefit and little harm has a low threshold; a toxic treatment for a mild disease has a high one. It is the clinical form of the Bayes rule of Chapter 1: the threshold is a ratio of losses.
A diagnostic test adds a third option. Let the test have sensitivity \(s\) and specificity \(f\), and suppose for now that it is free. A patient with prior probability \(p\) moves, after a positive test, to the posterior
\[
p^+ = \frac{ps}{ps + (1-p)(1-f)},
\]
and after a negative test to
\[
p^- = \frac{p(1-s)}{p(1-s)+(1-p)f}.
\]
Testing is worthwhile only if it can change the action, that is if \(p^- < p_T < p^+\). Solving these inequalities gives two thresholds, a testing threshold below which one should neither test nor treat and a test treatment threshold above which one should treat without testing. Between them the test has positive value of information. This is the expected value of sample information of Chapter 11 applied to a single patient, and it is related to the information yield of Section 3.7.
The two thresholds are easy to compute on the odds scale. Setting \(p^+ = p_T\) gives a testing threshold with odds \(\frac{H}{B}\cdot\frac{1-f}{s}\), and setting \(p^- = p_T\) gives a test treatment threshold with odds \(\frac{H}{B}\cdot\frac{f}{1-s}\). Take a treatment with net benefit \(B = 10\) QALY units for patients with the disease and net harm \(H = 1\) for those without, and a free test with sensitivity 0.9 and specificity 0.8.
Show the R code
B <-10; H <-1; s <-0.9; f <-0.8pT <- H / (B + H)odds2p <-function(o) o / (1+ o)c(treat = pT, test =odds2p(H / B * (1- f) / s), test_treat =odds2p(H / B * f / (1- s)))
treat test test_treat
0.09090909 0.02173913 0.44444444
Treatment alone is worthwhile above a probability of 0.091. A patient below 0.022 should be left alone, a patient above 0.444 should be treated without testing, and the test is worth doing for probabilities in between.
4.2 Timing as optimal stopping
Now let time enter. A patient’s state evolves, information arrives, and delay has a cost. Let \(\pi_t\) be the posterior at time \(t\), let \(U(\pi)\) be the expected utility of acting now under posterior \(\pi\), let \(\beta\) be the per period discount factor, and let \(c\) be the per period cost of waiting, which includes the risk that the disease progresses while one waits. The value function satisfies
Waiting is optimal when the expected value of the better informed decision next period, net of the cost of waiting, exceeds the value of acting now. The difference
\[
\Delta(\pi_t) = \beta\,\mathbb{E}\bigl[V(\pi_{t+1})\mid\pi_t\bigr] - c - U(\pi_t)
\]
is the option value of waiting. It can be positive only when the posterior is uncertain and the next observation is informative, and then only if the information is worth more than the cost of waiting. It depends on where the posterior lies relative to the decision threshold more than on how concentrated it is, and it shrinks as the cost of delay rises.
Proposition 4.1 (Waiting for one observation has value only near the threshold) In the two action problem with treatment threshold \(p_T\), suppose the next observation is a fixed experiment, one whose distribution given disease status does not depend on \(p_t\), and let \(p_{t+1}\) be the posterior after it, so that \(\mathbb{E}[p_{t+1}\mid p_t] = p_t\). The one period value of information is
where \(U_1\) and \(U_0\) are the linear utilities of treating and not treating. It is zero when \(p_{t+1}\) lies on the same side of \(p_T\) as \(p_t\) with probability one, and it is largest when \(p_t = p_T\).
Proof. The function \(p\mapsto\max\{U_1(p),U_0(p)\}\) is convex and piecewise linear with a kink at \(p_T\). By Jensen’s inequality the value of information is nonnegative, and it is zero exactly when the posterior next period stays on one linear piece. For a fixed experiment with likelihoods \(L_1(y)\) under disease and \(L_0(y)\) without, normalize \(U_0=0\), so that \(U_1(p)=pB-(1-p)H\). Then the first term of \(\mathrm{VOI}(p_t)\) equals \(\sum_y\max\{p_tL_1(y)B-(1-p_t)L_0(y)H,\,0\}\), a sum over \(y\) of maxima of functions linear in \(p_t\), so it is convex in \(p_t\). The second term is linear on each side of \(p_T\). Hence \(\mathrm{VOI}\) is convex on \([0,p_T]\) and on \([p_T,1]\), and since it is zero at \(p_t=0\) and \(p_t=1\) its maximum is at \(p_T\). For the two result test of the previous section the value is piecewise linear in \(p_t\), rising from zero at the testing threshold to its peak at \(p_T\) and falling to zero at the test treatment threshold.
The proposition formalizes a clinical intuition. When a patient is clearly in need of treatment or clearly not, there is nothing to wait for. Waiting one period for a single observation has value only when the patient is near the threshold and that observation might move them across it, and then only if the cost of delay is smaller than the value of the information. Over several periods, observations that together can move the patient across the threshold can make waiting worthwhile even when the next one alone cannot. Figure 4.1 shows the value of the test of the previous section as a function of the current probability of disease.
Show the R code
p <-seq(0, 1, length.out =501)U <-function(p) pmax(p * B - (1- p) * H, 0)pp <- p * s + (1- p) * (1- f)post <-function(p, pr, lik) p * lik / prvoi <- pp *U(post(p, pp, s)) + (1- pp) *U(post(p, 1- pp, 1- s)) -U(p)ggplot(data.frame(p, voi), aes(p, voi)) +geom_line() +geom_vline(xintercept = pT, linetype =2) +labs(x ="Probability of disease", y ="Value of the test (QALY units)") +theme_minimal()
Figure 4.1: Expected value of one test (sensitivity 0.9, specificity 0.8) for a treatment with benefit 10 and harm 1, by the current probability of disease. The test is a fixed experiment with two results, so the value is piecewise linear, zero outside the testing and test treatment thresholds, and peaks exactly at the treatment threshold (dashed).
4.3 Quickest detection: when to intervene in surveillance
Active surveillance of low risk prostate cancer, watchful waiting for an aneurysm, and monitoring of a premalignant lesion share a structure. The disease is indolent now but may change to an aggressive state at an unknown time \(\nu\). Observations, a PSA level, an imaging study, a biopsy, carry noisy information about whether the change has occurred. Intervening too early exposes the patient to the harms of treatment for a disease that might never have progressed; intervening too late lets the disease advance.
Shiryaev (1963) gave the Bayesian formulation, the problem of quickest detection. Let \(\nu\) have a geometric prior with parameter \(\rho\), the per period probability of progression. Given \(\nu\), let the observations be independent, with density \(g_0\) before the change and \(g_1\) after it. Choose a stopping time \(\tau\) to minimize
the probability of a false alarm plus a cost \(c\) per period of delay after progression. Let \(\pi_t = \Pr(\nu\le t\mid y_{1:t})\) be the posterior probability that progression has occurred, starting from \(\pi_0 = 0\). It updates by
Theorem 4.1 (Shiryaev) The optimal rule intervenes the first time the posterior probability of progression exceeds a threshold, \(\tau^\star = \inf\{t:\pi_t\ge A^\star\}\), where \(A^\star\in(0,1)\) depends on \(c\), \(\rho\) and the densities \(g_0\) and \(g_1\).
The theorem says that surveillance protocols should be written in terms of a posterior probability, not in terms of a fixed change in a single marker. A PSA rise that would trigger intervention in a patient whose earlier values were stable should trigger less concern in a patient whose values have always been noisy, and the posterior recursion does this when \(g_0\) and \(g_1\) describe each patient’s own marker variability, for example through a hierarchical model fitted to his earlier values. In the limit of rare changes, the Shiryaev rule becomes the Shiryaev Roberts procedure, a close relative of the CUSUM procedure used in industrial quality control, which is the frequentist cousin of the same idea.
4.4 Timing medical examinations: screening intensity
Surveillance requires deciding not only when to intervene but when to look. Parmigiani (1997) posed this as a decision problem in its own right. The motivating case is screening asymptomatic people for a hidden disease, such as breast cancer, with an examination that is costly and imperfect; the same structure applies whenever a stochastic process is monitored over time with a costly and possibly faulty measurement. His central device is to model the decision not as a list of examination dates but as a function, the screening intensity \(k(t)\), the rate at which examinations are carried out at age \(t\). Approximating schedules by functions, a device that Keller (1974) had used for inspecting equipment, replaces an optimization over sequences of examination ages, which needs recursive systems of nonlinear equations and heavy numerical integration, by a variational problem. The solution is only an approximation to the optimal schedule, but it is fast to compute and yields explicit rules for whether a person of a given age and risk profile should be screened at all, and, after an examination today, when the next should take place.
A stylized version shows the logic. Let disease arise at rate \(\lambda(t)\), let each examination cost \(c_e\) (money, discomfort, false positive workups), let each unit of time that a disease remains undetected cost \(d\) (the loss from later detection), and let the examination have sensitivity \(s\). With examinations equally spaced at intensity \(k\) and misses independent, an arising case waits on average about \((1/s - 1/2)/k\) before detection: half an interval for the next examination, plus further intervals for each miss. The expected cost per unit time is approximately
Proposition 4.2 (Square root screening intensity) In the stylized model, the optimal examination intensity is proportional to the square root of the incidence: doubling the risk multiplies the optimal frequency of examination by \(\sqrt2\), not by two. At the optimum the cost of examinations equals the cost of delay, each equal to \(\sqrt{c_e\,\lambda(t)\,d\,(1/s - 1/2)}\).
Proof. \(C(k)\) has the form \(ak + b/k\) with \(a = c_e\) and \(b = \lambda d(1/s-1/2)\), minimized at \(k = \sqrt{b/a}\), where both terms equal \(\sqrt{ab}\).
The square root appears again, as it did for the trial size in the companion volume, and for the same reason: a cost linear in effort balanced against a loss inversely proportional to it. Kirch and Klein (1974) derived the same law for screening schedules. They minimized the expected delay in detecting a disease for a given expected number of examinations and showed that the number of examinations in an age period is proportional to the square root of the age specific incidence, so that a fourfold risk calls for examinations twice as often (pp. 1403, 1406). They assume that examinations never miss the disease. The law is exact when the time between the disease becoming detectable and the patient reporting symptoms is fixed and examinations are frequent enough to find the disease before that; otherwise it holds approximately, and when that time varies from patient to patient a higher risk period gets more examinations than the square root gives (p. 1407). In their breast cancer example, based on incidence in Connecticut, the optimal schedule with the same expected detection delay as annual examination examines women every 20 months at ages 35 to 39 and every 10 months from age 65, and it needs about 2 percent fewer examinations; matched to semiannual examination, the saving is about 3 percent (pp. 1408 to 1409). Parmigiani (1997) obtains the same square root law in a special case of his model: when the loss from later detection does not depend on the interval between examinations, the optimal interval between examinations is \(\{2c_e/(\lambda(t)\tilde L(t))\}^{1/2}\), where \(\tilde L\) measures that loss, so the interval grows with the cost of an examination and shrinks with incidence (p. 809). In his breast cancer example a less sensitive examination leads to a later first examination and more frequent examinations after it (p. 813). The stylized model suggests the following rules. Screening intensity should rise with age where incidence rises, but more slowly. A high risk woman, for example a carrier of a pathogenic BRCA variant, should be screened more often than average, but not in proportion to her relative risk. A less sensitive examination calls for more frequent examination.
The Bayesian element enters through \(\lambda(t)\). A person’s risk is not known; it is a posterior, updated by family history, genetic testing and breast density. In Parmigiani (1997) the schedule depends only on age, and uncertainty about the natural history of the disease is handled by averaging the transition distributions over their posterior (p. 814). Letting the intensity respond to what an examination finds, as when a low grade cervical lesion calls for more frequent Pap tests, is an extension he proposes but does not carry out (pp. 804, 814). Inoue and Parmigiani (2002) extended the analysis to the design of follow up times in studies, where the same tradeoff between the cost of an examination and the information it yields determines when patients should be seen.
4.5 Examples
When to start antiretroviral therapy. Before 2015 many guidelines recommended deferring antiretroviral therapy for HIV until the CD4 count fell below a threshold, on the reasoning that early treatment exposed patients to toxicity and cost before it was needed. The START trial randomized 4685 adults with CD4 counts above 500 to immediate or deferred therapy and found that immediate therapy substantially reduced serious AIDS and non AIDS events (INSIGHT START Study Group 2015). In the language of this chapter, the trial showed that the cost of waiting, the per period hazard of serious events with untreated infection, was larger than had been assumed, which lowered the treatment threshold to the point of diagnosis.
When to start dialysis. The IDEAL trial randomized 828 adults with progressive chronic kidney disease to start dialysis early or late, defined by estimated kidney function, and found no significant difference in survival (hazard ratio for death with early start 1.04, 95% CI 0.83 to 1.30) (Cooper et al. 2010). Here the trial suggested that the cost of waiting was small: patients in the late group started dialysis a median of 7.4 months after randomization against 1.8 months in the early group, with no significant difference in survival or adverse events, although the interval does not rule out a moderate harm from waiting.
Active surveillance.Chapter 3 showed that for low risk prostate cancer the Bayes action is now active surveillance with escalation on progression. Surveillance is a quickest detection problem. Its protocols, repeat biopsy at fixed intervals, MRI, PSA kinetics, are a schedule for collecting observations, and the decision to intervene should be a threshold on the posterior probability of progression, updated by each observation.
4.6 Timing a trial
The same mathematics governs the timing of a trial’s decision. The sequential problem treated in the companion volume is an optimal stopping problem whose state is the posterior for the treatment effect, whose action is to stop and recommend a treatment, and whose cost of waiting is the welfare of patients randomized to the inferior arm plus the delay to everyone after the trial. The calendar savings of adaptive designs, also in the companion volume, are the value of stopping at the right time. And the regulator’s decision about when to grant accelerated approval on a surrogate endpoint, with confirmation to follow, is a decision to act on the current posterior while continuing to collect information: the regulatory analogue of starting treatment while continuing surveillance.
4.7 Delay has a price
Every timing decision trades the value of better information against the cost of waiting for it. Three costs are commonly underestimated. The disease may progress while one waits, which START showed for HIV. Patients outside the trial continue to receive the inferior treatment while the trial runs, which is the patient horizon cost of the companion volume. And time itself is valuable to a patient with a limited horizon, which is why a patient’s discount rate, not the health system’s, should govern personal timing decisions (Chapter 2). A Bayesian analysis makes each of these costs explicit and compares it with the value of information.
NoteKey points
A treatment has a threshold probability \(H/(B+H)\), a ratio of harm to total stakes; a test is worth doing only between a lower testing threshold and an upper test treatment threshold.
Waiting one period for a single observation has value only when the posterior is near a decision threshold and that observation can move it across.
In surveillance, the Bayes rule intervenes when the posterior probability of progression crosses a threshold, not when a single marker changes by a fixed amount.
In the stylized screening model, the optimal examination frequency grows with the square root of incidence.
START showed that the cost of waiting was higher than assumed; IDEAL found no significant survival cost of waiting.
NoteDiscussion questions
Prove that the testing threshold and the test treatment threshold bracket \(p_T\) for any test with \(s + f > 1\).
Implement the Shiryaev recursion (Equation 4.2) for independent Gaussian observations with variance 1, mean 0 before the change and mean 1 after, with \(\rho = 0.02\). Find by simulation the threshold \(A^\star\) that minimizes the risk with \(c = 0.05\).
In the dialysis example, suppose waiting carries a per month hazard \(h\) of a serious event that costs \(L\) QALYs and saves one month of dialysis valued at \(u\) QALYs. Derive the condition under which waiting is optimal, and interpret the IDEAL result in terms of \(h\), \(L\) and \(u\).
In the screening model, suppose \(\lambda\) doubles between ages 40 and 50. By what factor should the screening interval shrink? Compare with a policy that halves the interval.
Explain why a fixed PSA velocity trigger for intervention is not a Bayes rule, and write down the posterior quantity that should replace it.
Cooper, B. A. et al. 2010. “A randomized, controlled trial of early versus late initiation of dialysis.”New England Journal of Medicine 363.
Inoue, L. Y. T., and G. Parmigiani. 2002. “Designing follow up times.”Journal of the American Statistical Association 97.
INSIGHT START Study Group. 2015. “Initiation of antiretroviral therapy in early asymptomatic HIV infection.”New England Journal of Medicine 373.
Keller, Joseph B. 1974. “Optimum checking schedules for systems subject to random failure.”Management Science 21 (3): 256–60. https://doi.org/10.1287/mnsc.21.3.256.
Kirch, R. L. A., and M. Klein. 1974. “Surveillance schedules for medical examinations.”Management Science 20 (10): 1403–9. https://doi.org/10.1287/mnsc.20.10.1403.