Why a Fitted Score Is Not Known
For a treatment indicator \(T\) and observed covariates \(X\), the propensity score is the conditional treatment probability \(e(X)=P(T=1\mid X)\). In practice, this probability is not usually known. An analyst specifies an estimation procedure, uses the observed sample to fit it, and obtains a fitted score \(\hat e(X)\). A different sample could produce different fitted model parameters and therefore a different score for the same covariate profile.
This tutorial focuses on that sampling variation. It is distinct from the question of whether the chosen model represents the treatment mechanism adequately. A narrow interval or a small bootstrap standard error describes variability under the estimation procedure and its assumptions; it does not establish that the model is correctly specified or that the score equals the true conditional probability.
A single fitted score is therefore a point estimate, not a known probability. Conditional on the observed data and the fitted model, \(\hat e(x)\) is a fixed number. The uncertainty summary asks how much that estimate might vary across comparable samples, subject to the model and sampling assumptions used to calculate it.
Coefficient-Based Uncertainty for a Logistic Score Model
Consider a logistic propensity model with a fixed set of covariates and independent sampled units:
Here \(x\) includes the model's intercept and covariate values, \(\beta\) is the coefficient vector, and \(\hat\beta\) is its estimate. A standard coefficient-based summary assumes the model is correctly specified, the observations are independent (or the covariance estimator correctly accounts for their dependence), and the estimator is sufficiently regular for its large-sample distribution to be approximately normal. Under these conditions, \(\hat\beta\) is approximately distributed around \(\beta\) with estimated covariance matrix \(\widehat{\operatorname{Var}}(\hat\beta)\).
The uncertainty in \(\hat e(x)\) can be approximated by the delta method. First calculate the estimated linear predictor \(\hat\eta=x^\top\hat\beta\). Its estimated variance is \(x^\top\widehat{\operatorname{Var}}(\hat\beta)x\). Since the derivative of the expit function is \(e(x)\{1-e(x)\}\), the delta method gives:
Equivalently, the approximate standard error is \(\hat e(x)\{1-\hat e(x)\}\) times the standard error of the estimated linear predictor. This makes the source of uncertainty explicit: both the fitted coefficient covariance and the profile \(x\) matter. A profile with large coefficient-weighted variance can have a relatively uncertain score even when its point estimate is similar to another profile's.
Worked Coefficient-Based Calculation
Worked Example: Delta-Method Uncertainty at One Profile
Suppose a hypothetical logistic propensity model has two coefficients, an intercept and one covariate. The fitted coefficients are \(\hat\beta_0=-0.40\) and \(\hat\beta_1=0.80\), and the estimated covariance matrix is:
For a hypothetical unit with covariate value \(x_1=1\), the profile vector is \(x=(1,1)^\top\). The fitted linear predictor and score are:
The estimated variance of the linear predictor is:
The delta-method standard error of the fitted score is therefore:
A simple Wald interval on the probability scale would be \(0.5987\pm1.96(0.0551)\), or approximately \((0.4907,0.7067)\). This calculation is an approximation and the interval is symmetric around the estimated probability. A common alternative is to form a Wald interval for the linear predictor and transform its endpoints:
The transformed interval is asymmetric around \(0.5987\), as expected for a probability-scale interval. Under the model and large-sample approximation, it is a confidence interval for the conditional treatment probability at this profile. It is not a statement that there is a 95% probability the fixed true probability lies in this particular interval.
Why the Delta-Method Formula Holds
The delta method approximates a smooth function of an estimator by its first-order Taylor expansion. Let \(g(\eta)=\operatorname{expit}(\eta)\), with \(\eta=x^\top\beta\) and estimate \(\hat\eta=x^\top\hat\beta\). Around \(\hat\eta\), a small change in the linear predictor produces approximately this change in the fitted score:
Taking the approximate variance on both sides gives:
Substitution yields the score-variance formula above. This is a local, large-sample approximation. It can be poor when the coefficient estimates are highly uncertain, the sampling distribution is strongly non-normal, or the fitted probability is near a boundary and the approximation behaves poorly on the probability scale. Transforming an interval from the linear-predictor scale respects the score's range from zero to one, although it does not remove model or approximation problems.
Bootstrap Uncertainty
A bootstrap estimates sampling variation by repeatedly resampling the observed units and refitting the score model. For independent observations, a nonparametric bootstrap draws \(n\) rows with replacement from the original \(n\) rows. The treatment and covariates must remain together in each resampled row. For each bootstrap sample, refit the specified procedure and calculate the score for the covariate profile of interest.
Choose a fixed profile \(x\) and a score estimator, including any tuning or model-selection steps that are part of the procedure.
Draw a bootstrap sample using a scheme that reflects the sampling design. For clustered data, resample clusters rather than treating dependent rows as independent.
Fit the model anew in that sample and calculate \(\hat e^{*(b)}(x)\), the bootstrap replicate's score at the target profile.
Use the standard deviation of the replicate scores as a bootstrap standard error, or use appropriate empirical quantiles as a percentile interval.
For \(B\) bootstrap replicates, their standard deviation is:
A percentile interval uses the corresponding lower and upper quantiles of the bootstrap scores. It does not require a symmetric distribution, but its quality depends on having enough successful, representative replicates and on the bootstrap procedure being appropriate for the data and estimator. If model selection or tuning is part of the analysis, omitting it from the bootstrap estimates uncertainty for a different, more restricted procedure.
Worked Example: Bootstrap Standard Error From Replicate Scores
Suppose a hypothetical analysis evaluates a fixed covariate profile using eight bootstrap refits. For illustration, the resulting fitted scores are \(0.49, 0.54, 0.57, 0.60, 0.64, 0.68, 0.72,\) and \(0.77\). Their mean is:
The sum of squared deviations from this mean is approximately \(0.06239\). Thus the bootstrap standard error is:
This small set of replicates illustrates the arithmetic only; eight resamples are far too few for a stable uncertainty summary. In a real analysis, many more replicates would ordinarily be used, and the analyst would inspect the full distribution and report failed fits. The bootstrap standard error describes estimated score variability under the resampling scheme; it is not a direct measure of bias from an incorrect treatment model.
Same Fitted Score, Different Uncertainty
Worked Example: Covariate Profiles With Equal Scores
Consider a hypothetical logistic model with fitted coefficients \(\hat\beta=(-1,1,1)^\top\) and estimated covariance matrix having diagonal entries \(0.0400, 0.0900,\) and \(0.0100\), with zero off-diagonal entries. Compare profiles \(x_A=(1,1,0)^\top\) and \(x_B=(1,0,1)^\top\). Both have fitted linear predictor zero, so both fitted scores are \(\operatorname{expit}(0)=0.5000\).
For profile A, the linear-predictor variance is \(0.0400+0.0900=0.1300\), so \(SE(\hat\eta_A)=\sqrt{0.1300}=0.3606\). Its delta-method score standard error is:
For profile B, the linear-predictor variance is \(0.0400+0.0100=0.0500\), so \(SE(\hat\eta_B)=\sqrt{0.0500}=0.2236\). Its score standard error is:
Although the point scores are identical, their estimated sampling uncertainties differ because the profiles depend on coefficients with different estimated variances. The result is conditional on this model and covariance estimate; it does not imply that one profile's true propensity score is known more accurately in every possible data-generating process.
Choosing and Checking an Uncertainty Summary
Coefficient-based summaries are convenient when the model has a stable, estimable parameterization and the covariance estimator is credible. They make the role of individual coefficients and covariate profiles transparent. Bootstrap summaries can be useful when the score estimator is complicated or when a normal approximation for the coefficients is questionable, provided the resampling scheme represents the sampling design and the full estimation procedure is repeated.
Neither approach is universally superior. Coefficient-based intervals can be misleading under strong nonlinearity in the sampling distribution or unstable estimation. Bootstrap results can also mislead: resampling cannot repair confounding-model misspecification, unmeasured covariates, poor covariate measurement, or a resampling scheme that ignores dependence. A bootstrap that holds the selected model fixed also does not account for uncertainty from the selection process.
Check an uncertainty analysis for signs that its assumptions or computation may be failing:
- Large or unstable coefficient covariance. Nearly redundant covariates, weak information, or numerical problems can make standard errors very large or unreliable.
- Intervals that behave implausibly. A probability-scale Wald interval extending below zero or above one signals the limitations of that approximation. A transformed interval stays within the allowable range, but may still be wide or poorly calibrated.
- Unusual bootstrap distributions. Strong skewness, multiple peaks, extreme values, or a substantial fraction of failed fits deserves investigation rather than automatic summarization.
- Too few successful replicates. A standard deviation or tail quantile computed from a small number of usable resamples can be unstable. Report the number of attempted and successful fits.
- Mismatch between method and sampling design. Resampling individual rows is not appropriate when the independent sampling units are clusters, unless the dependence is otherwise handled.
An important distinction is between uncertainty in a score at a fixed profile and variation in scores across the observed sample. The latter includes real differences in covariates across units as well as estimation uncertainty. It should not be reported as though it were the standard error of one estimated conditional probability.
Common Mistake
Likewise, a small score standard error is not evidence by itself that the model has achieved good covariate balance or that a causal effect estimate is unbiased. Those are separate questions requiring their own diagnostics and assumptions.
Check Your Understanding
Answer each question, then compare your reasoning with the solutions below.
- In a logistic score model, what two quantities determine the delta-method variance of the linear predictor at a profile \(x\)?
- A fitted score is \(0.40\), and the estimated standard error of its linear predictor is \(0.20\). Calculate the delta-method standard error of the score.
- What must be refitted within each bootstrap replicate if tuning or model selection is part of the stated estimation procedure?
- Why does a small bootstrap standard error not establish that the fitted propensity model is correctly specified?
Solutions. (1) The profile \(x\) and the estimated coefficient covariance matrix determine it: \(\widehat{\operatorname{Var}}(\hat\eta)=x^\top\widehat{\operatorname{Var}}(\hat\beta)x\). (2) Apply the derivative factor: \(SE\{\hat e(x)\}\approx0.40(1-0.40)(0.20)=0.0480\). The score standard error is about 0.0480 on the probability scale. (3) Repeat the tuning or model-selection steps, along with model fitting and prediction, in each replicate if the aim is to capture variation from the full procedure. (4) The bootstrap represents sampling variation under its resampling scheme and fitted procedure. It does not test whether the model represents the true treatment mechanism, and it cannot quantify bias due to misspecification merely by resampling the observed data.