Statistics & probability

Time dependent Brier score calculator with right censoring

Evaluate horizon-specific survival probability errors under right censoring using marginal Kaplan–Meier inverse censoring weights and explicit support restrictions.

Your numbers

One row per person: positive time, event 1 or censoring 0; no mixed event/censor ties.
Within observed follow-up, strictly below the latest time; 1–8 horizons.
One matching row per person, one column per horizon; nonincreasing probabilities in [0,1].

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Evaluate horizon-specific survival probability errors under right censoring using marginal Kaplan–Meier inverse censoring weights and explicit support restrictions.

THE FORMULABS(t)=n⁻¹Σ{1(Y≤t,δ=1)Ŝ(t)²/Ĝ(Y−)+1(Y>t)[1−Ŝ(t)]²/Ĝ(t)}.

A worked example

The six-person default has censoring survival 0.8 at horizons 2.5 and 4.5. The supplied individual survival predictions produce IPCW Brier scores approximately [0.036354,0.096979].

Good to know

4–300 follow-up rows, positive times, event0/1; 1–8 strictly increasing horizons within observed follow-up and below its maximum. Matching nonincreasing survival probabilities in[0,1]. Evaluation-sample marginal censoring KM, G>1e−8; no mixed event/censor ties. No competing risks, left truncation, integrated score, conditional censoring or validation/optimism correction.

Score predictions at an explicit horizon

A time-dependent Brier score compares predicted survival probabilities with whether each individual actually remains event-free at a particular time. Without censoring, it is an ordinary mean squared error for that binary status. Lower values indicate smaller prediction errors on the specified sample and horizon; they are not automatically measures of treatment benefit or model discrimination alone.

Right censoring makes some statuses unknown. An individual censored before the horizon cannot simply be labeled event-free or assigned an observed event at censoring. The inverse-probability-of-censoring-weighted score accounts for this loss of observation under a declared censoring model, using the known event or surviving statuses and their observation probabilities.

Survival prediction error at two horizonsIPCW Brier scores for the supplied predictions00.060.122.53.54.5Evaluation horizonBlue: weighted mean squared error
Scroll across to see the full diagram.
The censoring survival is0.8 at both horizons. Changing true event-free status and predictions raises the default score from about0.03635 to0.09698.

Compare this with the Kaplan Meier survival from censored observations calculator. Score individual survival predictions using inverse censoring weights; estimating a common survival curve does not assess subject-specific predictions.

Supply survival probabilities, not event risks

Each observation row contains follow-up time and an event flag, where one means the event occurred and zero means right censoring. The matching prediction row contains survival probabilities at the entered horizons. A survival probability is the chance of remaining event-free beyond time t; it is one minus the event risk at that time.

Prediction rows must stay in the same person order as the follow-up rows. Horizons must increase, and each person's survival probabilities must be nonincreasing across those horizons. The interface rejects incompatible dimensions or a rising survival curve instead of silently sorting predictions independently, which would break their link to the observed individual outcomes.

Estimate the censoring distribution

The censoring distribution is estimated by a marginal Kaplan–Meier product over the evaluation sample, treating censoring as its event and observed failures as withdrawals from the censoring process. The product G(t) describes the estimated probability of remaining uncensored through t. This assumes a suitable independent censoring structure rather than adjusting for covariate-dependent loss to follow-up.

Mixed event and censoring ties at exactly the same time are excluded from this bounded implementation because tie conventions for the reverse process require explicit handling. Ties containing only events or only censorings remain supported. A requested horizon must also have positive, sufficiently resolved censoring survival; dividing by a vanished estimate would produce an invalid or unstable score.

Combine the two observable contributions

For an observed event at or before the horizon, the true survival status is zero, so squared prediction error is the survival probability squared. It is weighted by the inverse censoring survival just before the event. For an individual observed beyond the horizon, true status is one and error is one minus predicted survival, squared, weighted by one over G at the horizon.

An individual censored at or before the horizon contributes zero to this weighted sum because the status is unobserved there. That does not assert a zero prediction error. The weighting of other observed statuses accounts for missingness under the censoring model, and the final sum is divided by the original number of individuals rather than by only the currently observable cases.

Check the six-person example

The default follow-up times are one through six. Events occur at times one, three, four and six, with censoring at two and five. Censoring survival falls to 0.8 at time two and stays there through the requested horizons 2.5 and 4.5. The censoring at time five occurs after both horizons and does not alter their G values.

At 2.5, the first event contributes its prediction squared with unit weight; the person censored at two contributes zero; the remaining four contribute weighted surviving-status errors. The score is approximately 0.036354. At 4.5, events at three and four also contribute failure-status errors, giving approximately 0.096979 for the supplied later predictions.

Separate evaluation from model fitting

Predictions should come from a model evaluated in a defensible validation scheme. Reusing predictions fitted to the same outcomes can make a score optimistic, and this calculator does not apply cross-validation or bootstrap correction. Estimating censoring survival from the evaluation sample is a declared convention here, not a claim that a separate training censoring model has been supplied.

A marginal censoring estimator can be unsuitable when censoring depends strongly on prognostic covariates. Administrative censoring patterns also deserve consideration before interpreting the score. Comparing models requires the same sample, horizons and censoring convention; a smaller score from a different follow-up window or a different evaluation population is not a controlled improvement.

Respect the supported follow-up window

Use four to three hundred complete follow-up rows and one to eight horizons. Horizons must be at or above the earliest follow-up and strictly below the latest follow-up, with censoring survival above the stated numerical threshold. The output includes the horizon scores and the full censoring product-limit table so that each weighting step can be inspected.

The page supplies no integrated score, competing-risks extension, left-truncation adjustment or covariate-specific censoring model. Scores can exceed the unweighted binary-error range when inverse weights are large in a finite sample. Report the censoring assumptions, evaluation design and horizon-specific weights alongside the score rather than interpreting a solitary decimal as a complete verdict on a survival model.

A few questions, answered

Do predictions represent survival or event risk?

Enter survival probabilities: the chance of remaining event-free beyond each horizon. Event risk is one minus survival and must not be substituted without conversion.

Why does an early censored person contribute zero?

Their horizon status is unknown. Zero contribution is not zero prediction error; inverse weights on observable statuses account for missingness under the censoring model.

Can a horizon equal the latest follow-up time?

No. Horizons must lie strictly below the latest observed follow-up and have positive estimated censoring survival. Unsupported tail weights are rejected.

Does a lower score prove better calibration everywhere?

No. It measures combined squared prediction error at specified horizons under the evaluation and censoring conventions. It does not alone establish calibration across all risks or time points.

Find your calculator

Start typing to explore the library.