Why Prediction for a New Cluster Is Different
A frailty model represents unobserved differences between clusters through a latent cluster effect. For an already observed cluster, its event history contains information about that effect: a cluster with unusually many events may have a higher posterior frailty than the population average. A new cluster has no such history to update on. Its prediction must therefore average over the population distribution of frailty, rather than condition on an estimated cluster-specific value.
This distinction matters whenever the target is a future cluster drawn from the same population as the clusters used to fit the model. The resulting prediction is a population-average probability for a cluster with the stated covariates. It is not the probability conditional on that cluster having a particular latent frailty.
In a proportional hazards specification, one often writes \(H(t\mid x)=H_0(t)\exp(\beta^\mathsf{T}x)\), where \(H_0(t)\) is the baseline cumulative hazard. For the calculations below, write \(h=H(t\mid x)\) to keep expressions compact. Frailty is shared by members of the same cluster: conditional on \(Z\), their event processes may be independent, but marginally their outcomes are dependent because they have the same random \(Z\).
Population-Averaged Survival
The new-cluster prediction is obtained by integrating the conditional survival probability with respect to the frailty distribution. Equivalently, it evaluates the Laplace transform of \(Z\) at \(h\). This is not generally the same as setting \(Z\) equal to its mean.
The frailty distribution is part of the model, not an optional averaging device. For example, suppose \(Z\) has a gamma distribution with mean 1 and variance \(\theta>0\). Using the shape-rate parameterization, \(Z\sim\operatorname{Gamma}(1/\theta,1/\theta)\). Its density has shape \(a=1/\theta\) and rate \(b=1/\theta\):
Integrating conditional survival gives a closed form. Multiplying the density by \(e^{-hz}\) combines the exponential terms into \(e^{-(b+h)z}\). The gamma integral \(\int_0^\infty z^{a-1}e^{-cz}\,dz=\Gamma(a)c^{-a}\), for \(c>0\), then yields:
The derivation assumes the gamma frailty distribution with unit mean and variance \(\theta\), and the conditional survival model stated above. The marginal event risk by time \(t\) is \(1-S_{\mathrm{new}}(t\mid x)\). Since \(E(Z)=1\), substituting the mean frailty into conditional survival would instead give \(\exp(-h)\). That is a different calculation: it evaluates survival at \(Z=1\), rather than averaging survival across clusters.
Worked Example: Survival for a New Gamma-Frailty Cluster
Suppose a fitted model uses gamma frailty with variance \(\theta=1/3\), so the shape and rate are both 3. For an individual with specified covariates, suppose the cumulative hazard apart from frailty at the prediction time is \(h=0.4\). Find the population-averaged survival and event risk for a new cluster.
The model assumes that a new cluster’s frailty is drawn from the mean-one gamma population and that conditional survival is \(\exp(-Zh)\). Thus the gamma formula applies with shape and rate 3:
The predicted event risk by this time is \(1-0.6870=0.3130\). Thus, under the fitted model, the event-free probability for a member of a randomly drawn new cluster with these covariates is about 68.70%, and the corresponding event risk is about 31.30%. These are population-averaged predictions, not probabilities conditional on a particular cluster’s frailty.
Prediction for Multiple Members of a New Cluster
A cluster-level prediction must retain the shared frailty while averaging. Suppose \(m\) members have specified covariates, and their conditional event processes are independent given their common \(Z\). Let \(h_j\) be member \(j\)’s cumulative hazard over the prediction period, apart from frailty. Conditional on \(Z=z\), the probability that all members remain event-free is \(\prod_{j=1}^m e^{-z h_j}=e^{-z\sum_j h_j}\). Therefore, the new-cluster probability that at least one member has an event is:
The shared frailty is drawn once for the cluster, not separately for every member. Consequently, multiplying each member’s marginal survival probabilities would generally be incorrect: those marginal survival probabilities are dependent after \(Z\) is integrated out. The calculation above first forms the joint conditional probability and then averages over the common frailty.
Worked Example: Risk of Any Event in a New Cluster
Consider a new cluster with two members. Assume shared gamma frailty with mean 1 and variance \(\theta=0.5\). Conditional on frailty, the members’ event processes are independent, and their cumulative hazards over the stated period are \(h_1=0.2\) and \(h_2=0.4\). Find the probability of at least one event.
The total cumulative hazard conditional on frailty is \(Z(h_1+h_2)=0.6Z\). The gamma shape and rate are both \(1/\theta=2\). Hence the probability that neither member has an event is:
Therefore the probability of at least one event is \(1-0.5917=0.4083\). For comparison, the marginal survival probabilities for the two members separately are \((1+0.5(0.2))^{-2}=0.8264\) and \((1+0.5(0.4))^{-2}=0.6944\). Multiplying those gives about 0.5739, not 0.5917, because the two members’ outcomes are dependent through their shared frailty. The relevant assumptions—one frailty shared by both members and conditional independence given that frailty—are what justify the joint calculation.
Updating for an Observed Cluster
For an observed cluster, the prediction instead averages over the posterior distribution of its frailty given its data. In general, if \(D\) denotes the observed cluster history and \(\psi\) the model parameters, then:
The posterior replaces the population frailty distribution in the new-cluster calculation. A useful conjugate illustration comes from a shared-frailty Poisson-process model. Conditional on \(Z\), suppose event counts have intensity \(Z\) times a known baseline intensity, multiplied by any specified covariate effects. Let \(N\) be the cluster’s total observed event count, and let \(B\) be the cluster’s total integrated intensity apart from frailty over its observed exposure. Up to factors not involving \(z\), the likelihood is \(z^N e^{-zB}\). With a gamma prior of shape \(a\) and rate \(b\), the posterior is gamma with shape \(a+N\) and rate \(b+B\). This update relies on the stated Poisson-process likelihood; it should not be applied automatically to every event-history likelihood.
If the future integrated intensity apart from frailty is \(C\), then the conditional probability of no future event is \(e^{-ZC}\). Integrating against the posterior gamma distribution gives \(\{(b+B)/(b+B+C)\}^{a+N}\). The corresponding future event risk is one minus this quantity.
Worked Example: Future Risk for an Observed Cluster
Assume a shared-frailty Poisson-process model, with a gamma population frailty prior of shape and rate 3. An observed cluster has \(N=2\) events over total integrated intensity \(B=1.0\), apart from frailty. For a future period, suppose its integrated intensity is \(C=0.5\). Calculate its posterior predictive risk and compare it with the risk for a new cluster over the same future period.
The likelihood and prior satisfy the conjugate assumptions above, so the posterior frailty distribution for the observed cluster has shape \(3+2=5\) and rate \(3+1=4\). Its future no-event probability and event risk are:
For a new cluster, use the population prior rather than that posterior. Its no-event probability is \(\{3/(3+0.5)\}^3=(6/7)^3=216/343\approx0.6297\), giving an event risk of about \(0.3703\). The observed cluster’s higher event count shifts its posterior toward larger frailty, and its predictive event risk is therefore higher in this example. This difference reflects the cluster’s data; the new-cluster prediction has no cluster-specific history to condition on.
Assumptions, Alternatives, and Limitations
A population-averaged prediction is meaningful only relative to its target and model assumptions. Before calculating it, specify the prediction time or interval, covariate values, event definition, frailty distribution, and whether the target is one member or a whole cluster. For a new cluster, also assume that its frailty is drawn from the same population distribution represented by the fitted model. The conditional survival model and covariate effects must be suitable for the prediction setting, and any required conditional independence assumptions must be appropriate for the joint target.
For a gamma model, verify that the frailty is parameterized with mean 1 and variance \(\theta\); otherwise the displayed closed-form expression may not apply. If the frailty distribution has no convenient Laplace transform, numerical integration can be used: integrate the conditional survival against the fitted frailty density, checking that the result is between 0 and 1 and that numerical accuracy is adequate. Predictions should also be checked against the intended cluster size and covariate pattern. A prediction for one member is not automatically a prediction for a cluster of several members.
There are several distinct quantities that are sometimes confused:
| Prediction target | Frailty distribution used | Interpretation |
|---|---|---|
| One member of a new cluster | Population distribution \(G\) | Survival or risk averaged over newly sampled cluster frailties |
| One member of an observed cluster | Posterior distribution given that cluster’s data | Survival or risk updated by the observed history |
| All members, or any event, in a new cluster | One shared population frailty inside the joint probability | Cluster-level probability retaining dependence among members |
| Survival at mean frailty | Set \(Z=E(Z)=1\) | Conditional survival at the mean, not generally the population average |
The mean-frailty plug-in \(\exp(-h)\) is easy to compute but answers a different question. It discards the heterogeneity that creates a mixture of conditional survival curves. Likewise, cluster-robust standard errors can adjust uncertainty for dependence in some regression settings, but they do not themselves produce a frailty distribution or a new-cluster predictive probability. A posterior prediction for an observed cluster is also not interchangeable with a population prediction: the former uses its event history, while the latter averages over the population.
These formulas ordinarily treat fitted parameters as fixed. In practice, \(\beta\), the baseline hazard, and the frailty variance are estimated, so parameter uncertainty can make a predictive interval or distribution wider than a calculation using a single fitted parameter vector suggests. Further, the prediction depends on the chosen frailty distribution and on whether the fitted population transports to the new clusters. A survival calculation for one event process does not by itself give a competing-risk cumulative incidence: that target requires the relevant cause-specific event model and integration of its conditional event probability over frailty.
Common Mistakes and Practical Checks
- Using the prior for an observed cluster. Its history may alter the frailty distribution; use the posterior when predicting conditionally for that cluster.
- Using the observed cluster’s posterior for a new one. A new cluster has no such history; average over the population frailty distribution.
- Replacing frailty by its mean. In general, \(E\{\exp(-Zh)\}\ne\exp\{-E(Z)h\}\). Integrate the conditional probability instead.
- Multiplying marginal survivals for members sharing frailty. Form their joint probability conditional on the common frailty, then integrate once over that frailty.
- Calling a model-based prediction a guaranteed future frequency. It is a probability under the specified model and covariate conditions, not a certainty about an individual cluster.
A useful check is to verify the limiting behavior: at \(h=0\), survival must be 1 and risk 0; as \(h\) grows, survival must not increase. With gamma frailty and \(\theta\) approaching 0, the population frailty becomes concentrated near 1, and \((1+\theta h)^{-1/\theta}\) approaches \(e^{-h}\). These checks can expose arithmetic, parameterization, or interpretation errors.
Check Your Understanding
Answer each question, then compare your reasoning with the solutions below.
- With mean-one gamma frailty of variance \(\theta=0.25\), and cumulative hazard \(h=0.8\), what is the new-cluster survival and event risk?
- Why is the new-cluster prediction not generally equal to conditional survival evaluated at \(Z=1\)?
- Under the conjugate Poisson-process setup, a gamma prior has shape and rate 2, and a cluster has \(N=1\), \(B=0.5\). What is its posterior frailty distribution?
- For a new cluster with shared frailty and two members, why must the probability of no events be calculated using the sum of their conditional cumulative hazards inside one expectation?
Solutions. (1) Here the gamma shape and rate are both \(1/0.25=4\). Thus \(S_{\mathrm{new}}=(4/(4+0.8))^4=(5/6)^4\approx0.4823\), and event risk is \(1-0.4823=0.5177\). (2) The population prediction averages \(\exp(-Zh)\) over \(Z\); this expectation is generally not \(\exp\{-E(Z)h\}\), because survival is nonlinear in frailty. (3) The posterior shape is \(2+1=3\) and rate is \(2+0.5=2.5\), so \(Z\mid D\sim\operatorname{Gamma}(3,2.5)\) in the shape-rate parameterization. (4) Both members share the same random frailty, so their conditional joint no-event probability is \(\exp\{-Z(h_1+h_2)\}\). Integrating that joint probability once preserves the dependence induced by shared frailty; multiplying marginal survivals would generally treat the members as independent after averaging, which they are not.