Tutorials › Joint Modeling of Longitudinal and Time-to-Event Data › The Brier Score for Survival Predictions

Calibration and Prediction Validation · Tutorial 565 of 697

The Brier Score for Survival Predictions

Learn to calculate and interpret the horizon-specific Brier score, and understand why it reflects both risk accuracy and the ability to distinguish people with different event outcomes.

Advanced 10 min read

What You'll Learn

  • Define the event indicator and predicted event risk at a specified prediction horizon.
  • Calculate the empirical Brier score from observed outcomes and predicted probabilities.
  • Derive how uncertainty, prediction resolution, and conditional probability error contribute to expected Brier score.
  • Explain why the score responds to both calibration and discrimination, unlike a ranking-only measure.
  • Identify when censoring makes an ordinary horizon-specific Brier score unavailable.
  • Compare scores fairly across models by fixing the horizon, outcome definition, and validation population.

Why Score Event-Risk Predictions?

A survival prediction may report a person’s probability of experiencing the event by a specified time. To evaluate such predictions, we need a rule that compares each probability with what happened to that person. The horizon-specific Brier score does this by averaging squared differences between predicted event risks and observed event indicators. It rewards probabilities close to the observed outcomes, while penalizing confident predictions that are wrong.

The score is useful because it responds to more than one aspect of prediction quality. It reflects whether predicted risks are numerically appropriate and whether predictions distinguish people whose outcomes differ. It is not, however, a pure measure of either calibration or discrimination. The horizon, the event rate, and the validation population all affect its value.

Definition and Conditions for the Ordinary Score

Suppose predictions are made at a common landmark time, and let \(\tau\) denote the prediction horizon after that landmark. For a person in the prediction population, let \(Y(\tau)=1\) if the event occurs within the specified horizon and \(Y(\tau)=0\) otherwise. Let \(\hat p(\tau)\) be the predicted probability of that event, conditional on the information available when the prediction is made. In a joint-model setting, that information may include a person’s longitudinal history up to the landmark.

Definition: For \(n\) people with observed event indicators \(Y_i(\tau)\) and predicted event risks \(\hat p_i(\tau)\), the empirical horizon-specific Brier score is $$ \operatorname{BS}(\tau)=\frac{1}{n}\sum_{i=1}^{n}\left\{Y_i(\tau)-\hat p_i(\tau)\right\}^{2}. $$ Each prediction is a probability between 0 and 1. The score is between 0 and 1, and lower values indicate smaller average squared prediction error in the evaluated sample.

For this ordinary calculation, each person’s event status at the horizon must be known. This holds, for example, when everyone’s event status is fully observed through the horizon or when there is no censoring before it. If someone is censored before the horizon, their event indicator may be unknown; treating that person as a non-event would generally misclassify an unknown outcome. The ordinary formula cannot simply be applied to such records as though their statuses were known. Censoring-adjusted versions address that problem separately.

The same score can be written using predicted survival probabilities. If \(\hat S_i(\tau)=1-\hat p_i(\tau)\) and the observed survival indicator is \(1-Y_i(\tau)\), then \((1-Y_i(\tau))-\hat S_i(\tau)=-(Y_i(\tau)-\hat p_i(\tau))\); squaring gives the same contribution. The choice between event-risk and survival-probability notation does not change the score.

Worked Example: Calculating a Brier Score at One Horizon

Consider four hypothetical people whose event status by a specified horizon is completely observed. Their event indicators are \(1,0,1,0\), and their predicted event risks are \(0.80,0.30,0.60,0.20\), respectively. Calculate the horizon-specific Brier score.

The individual squared errors are $$ (1-0.80)^2=0.0400,\qquad (0-0.30)^2=0.0900,\qquad (1-0.60)^2=0.1600,\qquad (0-0.20)^2=0.0400. $$

Their sum is \(0.0400+0.0900+0.1600+0.0400=0.3300\). Therefore, $$ \operatorname{BS}(\tau)=\frac{0.3300}{4}=0.08250. $$

The score is \(0.08250\) squared-probability units for this hypothetical sample. It summarizes the average squared error for these four predictions; by itself, it does not establish how well the model will perform in a different population.

Why the Score Reflects Calibration and Discrimination

Calibration concerns whether the probabilities assigned by a model agree with event frequencies. Discrimination concerns whether predictions tend to be higher for people who experience the event than for people who do not. A squared-error score responds to both: it penalizes probabilities that are too high or too low, and it can reward useful separation between people with different outcomes.

A short population-level decomposition makes the joint sensitivity precise. Let \(X\) denote the information used for prediction, let \(q(X)=P\{Y(\tau)=1\mid X\}\) be the true conditional event risk, and let \(p(X)\) be the model’s predicted risk. Write \(\pi=P\{Y(\tau)=1\}=E\{q(X)\}\). Assume the outcome is binary and observed, and that the expectations refer to the target prediction population. Conditional on \(X\), the outcome has mean \(q(X)\) and variance \(q(X)\{1-q(X)\}\). Thus, $$ E\left[\{Y(\tau)-p(X)\}^{2}\mid X\right] =q(X)\{1-q(X)\}+\{p(X)-q(X)\}^{2}. $$ Taking expectations gives the first identity below. Since \(E\{q(X)^2\}=\pi^2+\operatorname{Var}\{q(X)\}\), rearrangement gives the second: $$ \begin{aligned} \operatorname{BS}(\tau) &=E\left[q(X)\{1-q(X)\}\right]+E\left[\{p(X)-q(X)\}^{2}\right]\\ &=\pi(1-\pi)-\operatorname{Var}\{q(X)\} +E\left[\{p(X)-q(X)\}^{2}\right]. \end{aligned} $$

The first term, \(\pi(1-\pi)\), is the uncertainty associated with the event prevalence at the horizon. The variance term represents the reduction in uncertainty available from knowing \(X\): if people have meaningfully different true risks, the outcome is more predictable from those characteristics. The final term is the average squared difference between the model’s predictions and the true conditional risks. It penalizes probability error. A constant prediction equal to \(\pi\) has no separation based on \(X\), while a useful risk model can reduce expected score by identifying people with different risks.

This decomposition also explains why a model with stronger ranking ability need not have a lower Brier score: improved separation can be offset by inaccurate probability levels. Conversely, a model can be well calibrated on average but offer little separation if it assigns nearly everyone the same risk. The Brier score combines these features in one proper scoring rule rather than reporting them separately.

Worked Example: How Useful Risk Separation Lowers Expected Error

Suppose a hypothetical prediction population has two equally common groups. In the first group the true event risk by the horizon is \(0.80\); in the second it is \(0.20\). The overall event prevalence is therefore \(\pi=(0.80+0.20)/2=0.50\). Compare a model that predicts \(0.50\) for everyone with a model that predicts the true group-specific risks.

For the constant-risk model, each prediction differs from its group’s true risk by \(0.30\). Using the conditional decomposition, its expected score is $$ \frac{1}{2}\{0.80(0.20)+(0.50-0.80)^2\} +\frac{1}{2}\{0.20(0.80)+(0.50-0.20)^2\} =0.25. $$

For the group-specific model, the predicted risks equal the true conditional risks, so the squared-error terms \(\{p(X)-q(X)\}^{2}\) are zero. Its expected score is $$ \frac{1}{2}\{0.80(0.20)\}+\frac{1}{2}\{0.20(0.80)\}=0.16. $$

Equivalently, the decomposition gives \(0.50(1-0.50)-\operatorname{Var}\{q(X)\}=0.25-0.09=0.16\). In this hypothetical population, separating people into groups with distinct risks lowers expected squared error because the group risks are accurately estimated. The remaining score reflects uncertainty in individual outcomes even when the conditional risks are known.

Interpreting and Comparing Scores

A Brier score has no universal cutoff that labels a prediction model acceptable. Its size depends partly on how common the event is at the chosen horizon. For a population with event prevalence \(\pi\), a model that predicts the same risk \(\pi\) for everyone has expected Brier score \(\pi(1-\pi)\). This constant-risk benchmark is useful context, but it does not replace evaluation against the intended prediction task.

A lower score indicates smaller average squared errors for the evaluated outcomes and predictions. It does not mean that every individual risk is accurate, nor does it identify whether any advantage arose from better calibration, better separation, or both. For a focused diagnosis, examine calibration and discrimination separately. Calibration summaries assess agreement between predicted risks and observed event frequencies; time-dependent AUC measures ranking discrimination at a horizon. Neither is interchangeable with the Brier score.

Comparisons are most interpretable when models are evaluated on the same people, at the same landmark and horizon, for the same event definition, and in the same validation population. Scores from different horizons can differ because both the event prevalence and the prediction task change over time. Scores from populations with different event rates are also not automatically comparable. Report the horizon, the population, and how outcomes were observed along with the score.

Worked Example: A Better Ranking Can Have a Worse Brier Score

Consider four hypothetical people with observed event indicators \(1,0,1,0\). Model A predicts risks \(0.80,0.70,0.30,0.20\); Model B predicts \(0.50\) for everyone. Calculate both scores and compare the results with ranking performance.

For Model A, the squared errors are \(0.04, 0.49, 0.49,\) and \(0.04\), so $$ \operatorname{BS}_A(\tau)=\frac{0.04+0.49+0.49+0.04}{4} =\frac{1.06}{4}=0.265. $$ For Model B, each squared error is \((1-0.50)^2=0.25\) or \((0-0.50)^2=0.25\), giving $$ \operatorname{BS}_B(\tau)=\frac{0.25+0.25+0.25+0.25}{4}=0.250. $$

Model A ranks the two people with events above both people without events for three of the four event–non-event pairs; its empirical AUC is therefore \(3/4=0.75\). Model B assigns tied risks to all four people, giving an empirical AUC of \(0.50\) under half-credit for ties. Thus Model A ranks better but has a slightly worse Brier score in these data. Its risk levels are inaccurate for two people, and squared error penalizes those errors. Ranking and probability accuracy answer different questions.

Diagnostics, Limitations, and a Common Pitfall

Before interpreting a score, check that each prediction corresponds to the correct person and was formed using only information available at the prediction time. Verify the landmark, horizon, event definition, and coding of the zero-one outcome. Confirm that the predictions are probabilities on the zero-to-one scale and that event status is known at the horizon. If censoring prevents outcome ascertainment, do not silently code censored people as event-free or discard them without considering the consequences. The ordinary score then does not directly evaluate the full target population.

The score is an average, so a small number of confidently incorrect predictions can contribute substantially. It can also be imprecise in small validation samples, and an empirical difference between models may reflect sampling variation. A score alone does not provide an uncertainty interval or a test of whether a difference is meaningful. It is also not a causal measure: it evaluates predictions against observed outcomes, not the effect of changing a predictor.

Common pitfall: “Model A has the higher AUC, so it must have the lower Brier score.” This is wrong because AUC assesses ranking, whereas the Brier score penalizes the numerical probability assigned to each outcome. A model can rank people well but give poorly calibrated or overconfident risks. Compare the scores directly and inspect calibration and discrimination as distinct properties.

The Brier score is especially useful when the target is a probability prediction and average squared probability error is relevant. It is less informative on its own when the goal is specifically to understand calibration, ranking, or the source of a performance difference. For survival predictions, censoring creates an additional limitation: a person censored before the horizon may not have a known binary outcome there. The basic score is therefore a starting definition under fully observed horizon outcomes, not a solution to incomplete follow-up.

Check Your Understanding

Try each question, then check the brief solutions.

  1. At a horizon, three observed outcomes are \(1,0,1\), and the corresponding predicted risks are \(0.70,0.40,0.90\). Calculate the empirical Brier score.
  2. If event prevalence at a horizon is \(0.20\), what is the expected score of the constant-risk prediction that assigns \(0.20\) to everyone?
  3. In the population decomposition, what does the term \(E[\{p(X)-q(X)\}^{2}]\) measure?
  4. Why can a model with higher time-dependent AUC have a higher Brier score?
  5. A person is censored before the evaluation horizon, with no later outcome information. Can their event indicator automatically be set to zero for the ordinary score? Explain.

Solutions. (1) The squared errors are \((1-0.70)^2=0.09\), \((0-0.40)^2=0.16\), and \((1-0.90)^2=0.01\). Their mean is \((0.09+0.16+0.01)/3=0.08667\). (2) The constant-risk score is \(\pi(1-\pi)=0.20(0.80)=0.1600\). (3) It is the mean squared gap between the model’s risk and the true conditional event risk, so it represents conditional probability error. (4) AUC assesses ordering, while the Brier score also penalizes inaccurate probability values; a well-ranking but poorly calibrated model can have a higher score. (5) No. Censoring before the horizon leaves the event status by that horizon unknown, so coding the person as event-free would treat missing outcome information as an observed non-event.

Clinical Biostats