Tutorials › Econometrics (Graduate) › Inference For Distribution Regression Curves

Quantile and Distribution Regression · Tutorial 599 of 952

Inference For Distribution Regression Curves

Learn how to quantify uncertainty in threshold-specific conditional distribution predictions, including how to build bands that cover a whole prespecified collection of thresholds and covariate values.

Advanced 11 min read

What You'll Learn

  • Define a distribution-regression prediction and its target probability
  • Use the delta method to obtain a pointwise standard error and Wald interval
  • Account for covariance when comparing predictions at different covariate profiles
  • Explain why fitted distribution-regression curves at different thresholds are dependent
  • Construct simultaneous bands using a multiplier bootstrap of estimated influence functions
  • Distinguish pointwise coverage from coverage over a whole grid of predictions

Why Inference for a Distribution-Regression Curve Is Different

Distribution regression models the conditional cumulative distribution function by fitting a binary-response regression separately at each outcome threshold. For a threshold \(y\), the response is \(1\{Y_i\le y\}\), and the fitted probability at covariates \(x\) estimates \(F_{Y\mid X}(y\mid x)=P(Y\le y\mid X=x)\). Inference for one such probability is pointwise. Inference for a curve asks a stronger question: how uncertain are the predictions across many thresholds, covariate profiles, or both?

The distinction matters because estimates at different thresholds are not independent. The binary responses are nested: if an observation is at or below a smaller threshold, it is also at or below a larger one. A collection of ordinary 95% intervals therefore does not automatically provide 95% coverage for the entire collection of predictions.

Definition: In logistic distribution regression, for each threshold \(y\), the conditional distribution is modeled as $$ F_{Y\mid X}(y\mid x)=\Lambda(x'\beta(y)),\qquad \Lambda(t)=\frac{1}{1+\exp(-t)}. $$ Here \(x\) is a covariate vector that includes an intercept when appropriate, and \(\beta(y)\) is the threshold-specific coefficient vector. A distribution-regression prediction is \(\hat F(y\mid x)=\Lambda(x'\hat\beta(y))\). It estimates a conditional probability, not a causal effect.

Pointwise Uncertainty: From Coefficients to a Predicted Probability

At a fixed threshold \(y\), write \(Z_i(y)=1\{Y_i\le y\}\) and \(p_i(y)=\Lambda(X_i'\beta(y))\). The logistic score equation is $$ \frac{1}{n}\sum_{i=1}^{n}X_i\{Z_i(y)-\Lambda(X_i'\hat\beta(y))\}=0. $$ For the usual large-sample approximation, observations are independent and identically distributed, the conditional probability model is correctly specified, the relevant moments are finite, and the information matrix is nonsingular. The threshold is treated as fixed. Under these regularity conditions, \(\hat\beta(y)\) is asymptotically normal. A sandwich covariance estimator can also be used to allow for a more general variance of the score.

Let \(\widehat V(y)\) estimate the asymptotic covariance matrix of \(\sqrt{n}\{\hat\beta(y)-\beta(y)\}\). Thus, the estimated covariance matrix of \(\hat\beta(y)\) itself is \(\widehat V(y)/n\). For a fixed profile \(x\), the derivative of the predicted probability with respect to \(\beta(y)\) is \(\Lambda(x'\beta)\{1-\Lambda(x'\beta)\}x\). Applying the delta method gives the standard error of the predicted probability:

$$ \widehat{SE}\{\hat F(y\mid x)\} = \sqrt{ \hat p(1-\hat p)\,x' \frac{\widehat V(y)}{n} x\,\hat p(1-\hat p) }, \qquad \hat p=\Lambda(x'\hat\beta(y)). $$

Equivalently, if \(\widehat\Sigma(y)=\widehat V(y)/n\) estimates the covariance matrix of \(\hat\beta(y)\), the variance estimate is \(g'\widehat\Sigma(y)g\), where \(g=\hat p(1-\hat p)x\). A pointwise Wald interval is \(\hat p\pm 1.96\widehat{SE}\{\hat p\}\) for approximate 95% coverage at this particular \(y\) and \(x\). It may extend outside \([0,1]\). A link-scale interval can instead be formed for \(x'\beta(y)\) and transformed through \(\Lambda\), producing endpoints inside \([0,1]\); that transformation does not turn pointwise coverage into simultaneous coverage.

Worked Example: A Pointwise Distribution Prediction

Suppose a hypothetical fitted model at threshold \(y=50\) has \(\hat\beta(y)=(-0.6,\,0.4)'\), with covariance estimate for the coefficient vector $$ \widehat\Sigma(y)= \begin{pmatrix} 0.04&-0.006\\ -0.006&0.01 \end{pmatrix}. $$ For the profile \(x=(1,2)'\), calculate the predicted probability and its pointwise 95% Wald interval. Treat the stated covariance matrix as the covariance of \(\hat\beta(y)\), not as the covariance of \(\sqrt n\hat\beta(y)\).

The linear predictor is \(x'\hat\beta=-0.6+2(0.4)=0.2\), so \(\hat p=\Lambda(0.2)=0.5498\). The gradient is \(g=\hat p(1-\hat p)x\), giving \(g\approx(0.2475,\,0.4950)'\). Its estimated variance is $$ g'\widehat\Sigma g \approx 0.04(0.2475)^2+2(-0.006)(0.2475)(0.4950)+0.01(0.4950)^2 =0.003431. $$ Thus the standard error is \(\sqrt{0.003431}=0.05857\). The interval is \(0.5498\pm1.96(0.05857)=[0.4350,\,0.6646]\), up to rounding. At threshold 50 and this covariate profile, the fitted probability that the outcome is at most 50 is about 0.550; the interval is a pointwise interval for that probability.

Contrasts and Covariance at a Fixed Threshold

Often the target is a difference between predictions at two profiles, not either probability alone. Since both predictions use the same estimated coefficient vector at threshold \(y\), they are correlated. Inference for their difference must use the gradient of the difference and the full coefficient covariance matrix; adding two standard errors as if the predictions were independent is generally wrong.

Delta-method result: For \(h(\beta)=\Lambda(x_B'\beta)-\Lambda(x_A'\beta)\), its gradient is $$ \nabla h(\beta)= \Lambda(x_B'\beta)\{1-\Lambda(x_B'\beta)\}x_B - \Lambda(x_A'\beta)\{1-\Lambda(x_A'\beta)\}x_A. $$ The estimated variance of \(h(\hat\beta)\) is \(\nabla h(\hat\beta)'\widehat\Sigma(y)\nabla h(\hat\beta)\). The subtraction in the gradient incorporates covariance between the two predictions.

Worked Example: Comparing Two Profiles Without Rounding Early

At a fixed threshold, suppose hypothetical estimates are \(\hat\beta=(-0.80,\,0.35)'\), with coefficient covariance $$ \widehat\Sigma= \begin{pmatrix} 0.04&0.006\\ 0.006&0.01 \end{pmatrix}. $$ Compare \(x_A=(1,0)'\) with \(x_B=(1,1)'\). The two linear predictors are \(-0.80\) and \(-0.45\), respectively. Calculate the difference in predicted probabilities and its pointwise 95% Wald interval.

The fitted probabilities are \(\Lambda(-0.80)\approx0.3100255\) and \(\Lambda(-0.45)\approx0.3893608\). Carrying these unrounded values through, the difference is $$ h(\hat\beta)=\Lambda(-0.45)-\Lambda(-0.80)\approx0.0793352. $$ The logistic derivatives at the two predictors are approximately \(0.2139097\) and \(0.2377580\). Consequently, $$ \nabla h(\hat\beta) = 0.2377580(1,1)'-0.2139097(1,0)' \approx(0.0238493,\,0.2377580)'. $$ Using the full covariance matrix, the estimated variance is $$ 0.04(0.0238493)^2 +2(0.006)(0.0238493)(0.2377580) +0.01(0.2377580)^2 \approx0.0006561. $$ The standard error is approximately \(0.02561\), so the interval is $$ 0.0793352\pm1.96(0.02561)\approx[0.02913,\,0.1295]. $$ At this threshold, the fitted probability is about 0.0793 higher for profile \(B\) than for profile \(A\). This is a comparison of conditional distribution predictions; it is not, by itself, a causal effect.

Why Predictions Across Thresholds Are Dependent

At different thresholds \(y\), distribution regression estimates different coefficient vectors. Their sampling errors are nevertheless linked because they use the same observations and nested binary responses. To see the source of the dependence, define \(A(y)=E[p_i(y)\{1-p_i(y)\}X_iX_i']\). Under the stated model and regularity conditions, an influence function for the coefficient estimate at threshold \(y\) is $$ \psi_i(y)=A(y)^{-1}X_i\{Z_i(y)-p_i(y)\}. $$ In particular, \(\sqrt n\{\hat\beta(y)-\beta(y)\}\) is approximated by \(n^{-1/2}\sum_i\psi_i(y)\). This representation gives both the pointwise sandwich variance and the cross-threshold covariance.

For \(y\le y'\), the nesting \(Z_i(y)\le Z_i(y')\) implies, conditional on \(X_i\), that the covariance of the two binary residuals is \(F(y\mid X_i)\{1-F(y'\mid X_i)\}\) when the conditional distribution model is correct. More generally, a robust estimate of the cross-threshold covariance can be calculated from the paired estimated influence functions. For predictions at covariate profiles, apply the corresponding prediction gradients to those coefficient influence functions. The resulting joint covariance accounts for dependence across both thresholds and profiles.

Simultaneous Bands Over a Grid

A simultaneous band aims to cover all predictions in a prespecified collection with probability approximately 95% in repeated samples. For a finite grid of threshold-profile pairs \((y_j,x_j)\), let \(\hat p_j=\hat F(y_j\mid x_j)\) and let \(\hat s_j\) be its pointwise standard error. A simultaneous band has the form \(\hat p_j\pm c_{0.95}\hat s_j\), where \(c_{0.95}\) is chosen from the distribution of the maximum absolute standardized error across the whole grid. Because the maximum is usually larger than a single standard normal absolute value, \(c_{0.95}\) is generally larger than 1.96.

A multiplier bootstrap estimates that critical value while preserving the estimated dependence. First compute estimated influence contributions \(\hat\phi_{ij}\) for each prediction \(j\), scaled so their sum approximates \(\sqrt n(\hat p_j-p_j)\). Draw independent mean-zero, variance-one multipliers \(\xi_i\), such as standard normal variables, and calculate $$ T^*=\max_j\left| \frac{n^{-1/2}\sum_{i=1}^{n}\xi_i\hat\phi_{ij}}{\hat s_j} \right|. $$ Repeat this calculation many times. The empirical 95th percentile of the bootstrap values of \(T^*\) is \(c_{0.95}\). Since each draw uses the same multiplier \(\xi_i\) across all grid points, it retains the estimated cross-threshold and cross-profile dependence. The method requires suitable regularity conditions and a sufficiently accurate estimate of the influence functions; the grid and range of thresholds should be chosen with the inferential target in mind.

1
Specify the target grid.
Choose the outcome thresholds and covariate profiles over which coverage is required. A band for a finite grid makes a claim only about that grid.
2
Fit and linearize.
Estimate the threshold-specific distribution regressions, then obtain influence contributions and standard errors for every predicted probability.
3
Bootstrap the maximum.
Use shared multiplier draws across all grid points and record the maximum absolute standardized perturbation for each draw.
4
Form the band and state its scope.
Use the simulated maximum's 95th percentile as the critical value, and report exactly which thresholds and profiles the band covers.

Worked Example: Reading a Simultaneous Band

Suppose a hypothetical analysis evaluates four threshold-profile pairs. The fitted probabilities and pointwise standard errors are \(0.27\) and \(0.025\), \(0.41\) and \(0.030\), \(0.52\) and \(0.028\), and \(0.68\) and \(0.035\). A multiplier bootstrap using 4,999 draws gives a 95th-percentile maximum critical value of \(2.47\). Calculate the simultaneous intervals.

For the first pair, the half-width is \(2.47(0.025)=0.06175\), giving \([0.2083,\,0.3318]\). For the remaining pairs, the calculations are \(0.41\pm2.47(0.030)=[0.3359,\,0.4841]\), \(0.52\pm2.47(0.028)=[0.4508,\,0.5892]\), and \(0.68\pm2.47(0.035)=[0.5936,\,0.7665]\). These intervals form a simultaneous band for the four specified pairs, under the validity of the model and bootstrap approximation. They do not assert coverage over thresholds or profiles that were not included in the grid.

Pointwise Versus Simultaneous Interpretation

ProcedureCoverage targetTypical critical value
Pointwise Wald intervalOne fixed threshold and one fixed covariate profile1.96 for approximate 95% coverage
Simultaneous bandAll specified threshold-profile pairs together95th percentile of the maximum statistic, usually greater than 1.96

A finite-grid band is not automatically a uniform band over a continuum. Extending coverage claims to a continuous range requires appropriate uniform approximations and control of behavior between grid points. In practice, it is important to state whether the inferential target is a handful of prespecified predictions, a dense grid, or an entire range of the distribution-regression curve.

Common Pitfall

A common mistake is to calculate a 95% interval at every point on a curve and then describe the collection as a 95% band. Each interval has approximate 95% coverage at its own fixed point, but the probability that all intervals cover simultaneously can be substantially lower. The correction is to calibrate a maximum statistic over the target grid, using the joint dependence of the estimates. A second frequent error is to treat predictions at two profiles as independent when calculating their difference; the correct calculation uses the gradient of the difference and the full covariance matrix.

Key takeaway: Pointwise uncertainty for a distribution-regression prediction follows from the delta method applied to the threshold-specific coefficient estimate. Simultaneous inference additionally requires the joint dependence across thresholds and profiles, typically captured by influence functions and a maximum-statistic bootstrap.

Check Your Understanding

Try these questions before moving on.

  1. What probability does \(\hat F(y\mid x)\) estimate in logistic distribution regression?
  2. Why does the delta-method gradient for a predicted probability contain the factor \(\hat p(1-\hat p)\)?
  3. When forming a confidence interval for a difference between predictions at two profiles, why must their covariance be included?
  4. Why are fitted predictions at two different outcome thresholds generally dependent?
  5. What does a 95% simultaneous band over a finite grid claim, and how does that differ from a set of pointwise 95% intervals?
Clinical Biostats