Constrained MLE Formulation¶
This page provides the mathematical specification of the Risk Bridge statistical model, following the framework established by Cao et al. (2024) and extended by Wang & Chen (2026).
1. Problem Formulation¶
Let \(X \in \mathbb{R}^p\) denote discrete baseline predictors, \(Y \in \{0, 1\}\) denote the binary outcome of interest, and \(Z \in (0, 1]\) denote an intermediate continuous risk marker.
We partition \(Z\) into \(K+1\) ordered categories \(Z_{\text{cat}} \in \{0, 1, \dots, K\}\) using cutpoints \(0 = c_0 < c_1 < \dots < c_K < c_{K+1} = 1\):
Target Risk Model¶
The primary goal is to predict risk in the target population using the logistic model:
where \(\theta\) collects the unknown parameters.
2. Joint Likelihood on Source Data¶
The source cohort provides observations \((X_i, Y_i, Z_i)\). We factor the joint distribution as:
Truncated-Lognormal Distribution for \(Z \mid X\)¶
Because \(Z\) is restricted to \((0, 1]\), we model \(Z \mid X\) using a lognormal distribution truncated to the interval \((0, 1]\).
Let \(\tau(X) = \gamma_0 + X^\top \gamma_X\). The conditional density of \(Z \in (0, 1]\) given \(X\) is:
where \(\Phi(\cdot)\) denotes the standard normal cumulative distribution function.
Negative Log-Likelihood¶
For an analysis sample of \(n\) subjects, the negative log-likelihood \(\ell(\theta)\) is:
The package implements exact closed-form analytic gradients \(\nabla_\theta \ell(\theta)\) in risk_bridge.likelihood.
3. Reference Calibration Constraints¶
Let \(\mathcal{D}_{\text{reference}}\) denote a representative external cohort where \(X\) and \(Y\) are observed.
We fit a base model \(\phi(X) = P(Y=1 \mid X)\) on the reference data and partition the predicted risk range into \(K\) risk strata \(\mathcal{S}_1, \dots, \mathcal{S}_K\) (typically defined by quantiles of \(\phi(X)\)).
For each stratum \(\mathcal{S}_k\), the reference cohort provides an external event rate benchmark:
Model-Implied Risk¶
Under the joint model parameterized by \(\theta\), the model-implied marginal risk within stratum \(\mathcal{S}_k\) is obtained by integrating over the discrete support of \(X\):
where the conditional probability marginalizing over \(Z_{\text{cat}}\) is:
Constraint Functions¶
We define the stratum-specific calibration discrepancy function \(g_k(\theta)\) as:
4. Constrained Optimization Problem¶
The constrained Maximum Likelihood Estimator (cMLE) \(\hat{\theta}_{\text{cMLE}}\) solves:
where \(\epsilon > 0\) is the user-specified calibration tolerance (--calibration-tolerance, default 0.02).
The package implements exact analytic constraint Jacobians \(J_{kj} = \frac{\partial g_k}{\partial \theta_j}\) in risk_bridge.constraints, ensuring rapid, numerically stable convergence in non-linear interior-point algorithms.