Tutorials › Bayesian Clinical Trials › Priors for Continuous-Outcome Variability

Choosing and Eliciting Priors · Tutorial 52 of 696

Priors for Continuous-Outcome Variability

Compare three common priors for a continuous outcome’s standard deviation and assess what their scales and tails imply in clinically meaningful units.

Intermediate 10 min read

What You'll Learn

  • State the support and parameterization of half-normal, half-t, and inverse-gamma priors for variability.
  • Compare their behavior near zero and in the upper tail.
  • Calculate prior probabilities for clinically chosen standard-deviation thresholds.
  • Translate an inverse-gamma prior on variance into implications for the standard deviation.
  • Identify diagnostics and limitations when selecting a variability prior.

Why the Prior for Variability Matters

In a trial with a continuous outcome, the standard deviation describes how widely individual outcomes vary around their modeled mean. It is not usually the treatment effect of direct interest, but it can strongly affect uncertainty about that effect: a model that assigns substantial prior probability to very large standard deviations also anticipates highly variable observations. A prior concentrated on unrealistically small values can have the opposite problem.

The prior should therefore be assessed on the clinical measurement scale, such as points on a symptom score or millimeters of mercury, rather than judged only by its mathematical form. This tutorial compares three choices for the outcome standard deviation \(\sigma\): a half-normal, a half-\(t\), and an inverse-gamma prior on the variance \(\sigma^2\). Each is proper under the parameter conditions stated below.

Definition: A half-normal prior with scale \(A>0\) assigns \(\sigma>0\) the density \(2\phi(\sigma/A)/A\), where \(\phi\) is the standard normal density. A half-\(t\) prior with degrees of freedom \(\nu>0\) and scale \(A>0\) assigns \(\sigma>0\) the density \(2t_\nu(\sigma/A)/A\), where \(t_\nu\) is the standard Student \(t\) density. Both have zero probability at \(\sigma=0\), and their densities on positive values are twice the corresponding symmetric density.

The scale \(A\) has the same units as \(\sigma\). It is not generally the prior mean or standard deviation of \(\sigma\). The inverse-gamma alternative is usually placed on the variance, so its parameters have a different interpretation.

Definition: In this tutorial, \(V=\sigma^2\sim\operatorname{IG}(a,b)\) means that \(V>0\) has density \(b^a v^{-a-1}\exp(-b/v)/\Gamma(a)\), with shape \(a>0\) and scale parameter \(b>0\). Here \(b\) has units of outcome squared. This parameterization must be stated because inverse-gamma conventions differ.

Support, Behavior Near Zero, and Tail Weight

All three priors put their continuous probability on positive standard deviations, which respects the definition of a standard deviation. None assigns point mass to exactly zero. They differ in how much density they place near zero and how quickly their upper tails decline.

The half-normal density is finite at zero and declines exponentially in \(\sigma^2\). The half-\(t\) density is also finite at zero, but declines polynomially in the tail. The inverse-gamma density on \(V\), when expressed as a density on \(\sigma\), approaches zero as \(\sigma\) approaches zero and has a polynomial upper tail. For \(a,b>0\), the transformation \(v=\sigma^2\) gives

$$ f_\sigma(\sigma) = f_V(\sigma^2)\left|\frac{d(\sigma^2)}{d\sigma}\right| = \frac{2b^a}{\Gamma(a)}\sigma^{-2a-1} \exp\left(-\frac{b}{\sigma^2}\right),\qquad \sigma>0. $$

The factor \(\exp(-b/\sigma^2)\) drives this density toward zero near zero. For large \(\sigma\), that factor approaches one, leaving a density proportional to \(\sigma^{-2a-1}\); the corresponding survival probability declines approximately as \(\sigma^{-2a}\). For a half-\(t\), the density declines approximately as \(\sigma^{-(\nu+1)}\), and its survival probability as \(\sigma^{-\nu}\). A half-normal tail declines much faster, at an exponential rate in \(\sigma^2\).

PriorSupport for \(\sigma\)Upper-tail behaviorScale interpretation
Half-normal\(\sigma>0\)Exponential in \(\sigma^2\)\(A\) is in outcome units
Half-\(t\)\(\sigma>0\)Polynomial; heavier for smaller \(\nu\)\(A\) is in outcome units
Inverse-gamma on \(\sigma^2\)\(\sigma>0\)Polynomial, with survival approximately proportional to \(\sigma^{-2a}\)\(b\) is in outcome units squared; \(a\) is dimensionless

Tail weight is not automatically a measure of quality. A heavier tail can reduce the influence of an upper scale choice, but it can also give appreciable prior probability to clinically implausible variability. Conversely, a light tail may express a well-supported upper bound, or may be unjustifiably restrictive.

Calibrating on the Clinical Scale

A useful calibration question is: what prior probability should be assigned to the outcome standard deviation exceeding a threshold with a clear clinical interpretation? The threshold might correspond to variability that would make a planned measurement instrument difficult to use, or to a range of dispersion considered implausible from prior studies. The answer is a prior judgment, not a fact established by the distribution family.

For a half-normal with scale \(A\), the cumulative probability at \(c>0\) is \(2\Phi(c/A)-1\), where \(\Phi\) is the standard normal cumulative distribution function. For a half-\(t\), the corresponding cumulative probability is \(2T_\nu(c/A)-1\), where \(T_\nu\) is the \(t_\nu\) cumulative distribution function. These formulas make it possible to evaluate a proposed scale and degrees of freedom using clinically chosen thresholds.

Worked Example: Interpreting a Half-Normal Scale

Suppose a trial outcome is a symptom score measured in points. A team considers a half-normal prior with \(A=3\) points and wants to understand its implications at \(6\) points.

The prior probability that the standard deviation exceeds \(6\) points is

$$ P(\sigma>6) = 2\left[1-\Phi\left(\frac{6}{3}\right)\right] = 2[1-\Phi(2)] = 2(0.02275) \approx 0.04550. $$

Thus, this prior assigns about \(4.55\%\) probability to a standard deviation above \(6\) symptom-score points. Its mean is \(A\sqrt{2/\pi}=3\sqrt{2/\pi}\approx 2.394\) points. Its 95th percentile is \(A\Phi^{-1}(0.975)\approx 3(1.960)=5.880\) points. These summaries are distinct: the scale is \(3\) points, the mean is about \(2.394\) points, and the 95th percentile is about \(5.880\) points.

The calculation checks the prior against meaningful units, but it does not establish that \(A=3\) is appropriate. That choice requires substantive justification.

Worked Example: The Half-\(t\) Tail at a Clinical Threshold

For the same kind of score, consider a half-\(t\) prior with \(\nu=3\) degrees of freedom and scale \(A=2\) points. What probability does it assign to \(\sigma>4\) points?

If \(T\sim t_3\), folding the symmetric \(t\) distribution at zero gives \(\sigma=2|T|\). Therefore,

$$ P(\sigma>4) = P(|T|>2) = 2P(T>2) \approx 2(0.06966) = 0.1393. $$

The prior assigns approximately \(13.93\%\) probability to a standard deviation above \(4\) points. Although its scale is smaller than the half-normal scale in the preceding example, this half-\(t\) gives more probability to sufficiently large values because its tail is polynomial. The comparison also illustrates why a scale alone cannot characterize a prior: the degrees of freedom affect the tail.

Inverse-Gamma Priors and a Variance-to-Standard-Deviation Calculation

An inverse-gamma prior is specified for variance, not directly for standard deviation. Its parameters should not be read as though \(b\) were a typical standard deviation. For the stated parameterization, \(E(V)=b/(a-1)\) when \(a>1\); this is an expectation of variance and has squared outcome units. Moreover, moments of \(\sigma\) need not exist for all \(a\): \(E(\sigma^r)\) is finite only when \(r<2a\).

A convenient way to calculate prior probabilities is to use the transformation \(Y=b/V\). If \(V\sim\operatorname{IG}(a,b)\), then \(Y\) has a gamma distribution with shape \(a\) and rate \(1\). Thus \(V>c^2\) is equivalent to \(Y<b/c^2\). For integer \(a=3\), the gamma cumulative distribution function is \(1-\exp(-y)(1+y+y^2/2)\).

Worked Example: A Probability Under an Inverse-Gamma Variance Prior

Suppose \(V=\sigma^2\sim\operatorname{IG}(3,18)\), where the outcome is measured in points, so \(b=18\) points squared. Find the prior probability that \(\sigma>4\) points.

Because \(\sigma>4\) is equivalent to \(V>16\), the transformed gamma variable satisfies \(Y=18/V<18/16=1.125\). Therefore,

$$ \begin{aligned} P(\sigma>4) &=P(Y<1.125)\\ &=1-e^{-1.125}\left(1+1.125+\frac{1.125^2}{2}\right)\\ &=1-(0.32465)(2.75781)\\ &\approx 0.1047. \end{aligned} $$

The prior probability that the standard deviation exceeds \(4\) points is approximately \(10.47\%\). As a separate check on the variance parameterization, \(E(V)=18/(3-1)=9\) points squared. This does not mean that the prior mean standard deviation is \(3\) points: in general, \(E(\sqrt V)\ne\sqrt{E(V)}\).

Justification for the Tail Comparison

The contrasting upper tails follow directly from the densities. For the half-normal, the density is proportional to \(\exp[-\sigma^2/(2A^2)]\), so its exponential factor becomes very small as \(\sigma\) grows. For the half-\(t\), the standard \(t_\nu\) density is proportional in the tail to \((1+t^2/\nu)^{-(\nu+1)/2}\). Substituting \(t=\sigma/A\), the density is proportional to \(\sigma^{-(\nu+1)}\) for large \(\sigma\). Integrating a density with this power-law behavior gives survival probability proportional to \(\sigma^{-\nu}\).

For the inverse-gamma prior, the density transformation above gives a factor \(\sigma^{-2a-1}\exp(-b/\sigma^2)\). As \(\sigma\) grows, \(\exp(-b/\sigma^2)\) tends to one. Integrating the resulting power law yields survival probability proportional to \(\sigma^{-2a}\). This establishes the stated tail-rate comparison; it does not imply that one prior always has a heavier tail than another, because the parameters must also be considered.

Model Checks, Alternatives, and Limitations

A variability prior is interpreted within a likelihood model. For example, if a continuous outcome is modeled as \(X\mid\mu,\sigma\sim N(\mu,\sigma^2)\), the prior describes plausible values of the residual standard deviation in that model, conditional on its assumptions. It does not by itself account for skewness, outliers, measurement error, or unmodeled subgroups. A prior that looks reasonable in isolation may still produce implausible outcomes when combined with the likelihood.

Useful checks include calculating prior probabilities at several clinically interpretable thresholds and simulating prior-predictive outcomes under the proposed outcome model. Look for values that are implausibly concentrated, implausibly dispersed, or incompatible with the instrument’s possible range. Also check the units: converting an outcome from points to tens of points changes the numerical standard deviation and requires rescaling \(A\), or \(b\) by the square of the unit-conversion factor. In particular, failing to square a unit conversion for \(b\) changes the implied prior.

The three families offer different compromises. A half-normal is simple and has a rapidly declining tail; it can be suitable when very large variability is genuinely implausible, but may be too restrictive if that judgment is uncertain. A half-\(t\) allows more upper-tail probability, with \(\nu\) controlling how heavy the tail is; it still requires careful scale selection. An inverse-gamma prior works naturally when a model is parameterized in terms of variance, but its two parameters can be harder to interpret clinically, and its behavior near zero and in the tail may not match substantive beliefs. Other positive distributions may also be considered, but changing families does not remove the need for scale-based calibration and predictive checks.

Common mistake: Treating the scale of a half-normal or half-\(t\) as the prior mean standard deviation, or treating the inverse-gamma parameter \(b\) as a standard-deviation scale, leads to incorrect interpretations. The correction is to calculate the relevant summaries or threshold probabilities under the explicitly stated parameterization, then assess them in outcome units.

Sensitivity analysis is especially useful when the clinical evidence does not determine the upper tail clearly. Compare a small set of defensible priors—for example, a half-normal and a half-\(t\) calibrated to have similar probabilities below a clinically important threshold—and examine whether trial conclusions change. Sensitivity analysis cannot make an implausible prior acceptable; each candidate must first be checked against clinical knowledge and the outcome scale.

Check Your Understanding

Answer each question, then compare your reasoning with the solutions.

  1. A half-normal prior has \(A=2\) points. What is \(P(\sigma>4)\)?
  2. Why can a half-\(t\) with a smaller scale still assign more probability to very large standard deviations than a half-normal with a larger scale?
  3. For \(V\sim\operatorname{IG}(a,b)\), what units does \(b\) have, and what condition is needed for \(E(V)\) to be finite?
  4. Explain why \(\sqrt{E(V)}\) is not generally equal to \(E(\sigma)\).

Solutions. (1) \(P(\sigma>4)=2[1-\Phi(4/2)]=2[1-\Phi(2)]\approx 0.04550\), or about \(4.55\%\). (2) The half-\(t\) has a polynomial upper tail, whereas the half-normal tail declines exponentially in \(\sigma^2\). At sufficiently large values, the polynomial tail can dominate even if its scale is smaller; the exact comparison depends on both scales and the degrees of freedom. (3) \(b\) has squared outcome units, and \(E(V)=b/(a-1)\) is finite when \(a>1\). (4) In general, expectation does not commute with the square-root transformation: \(E(\sqrt V)\ne\sqrt{E(V)}\). They summarize different aspects of the distribution.

Clinical Biostats