Conformalized Quantile Regression (CQR) is a statistical framework that applies a split conformal calibration wrapper to the output of a standard quantile regression model, adjusting the predicted lower and upper quantiles to produce a prediction set with a rigorous, finite-sample marginal coverage guarantee. By computing a nonconformity score based on the distance of a true label from the initial quantile interval on a held-out calibration set, CQR corrects for any systematic under- or over-coverage of the underlying quantile estimator.
Glossary
Conformalized Quantile Regression

What is Conformalized Quantile Regression?
A technique that wraps a standard quantile regression model with a conformal calibration step to correct the predicted quantile intervals, yielding finite-sample valid prediction intervals without assuming a specific error distribution.
Unlike standard quantile regression, which relies on asymptotic assumptions and can suffer from model misspecification, CQR provides distribution-free validity as long as the calibration and test data satisfy the exchangeability assumption. The resulting intervals adapt locally to heteroscedasticity while maintaining the exact coverage level specified by the user, making the method particularly valuable in high-stakes applications like medical risk assessment and financial forecasting where formal uncertainty bounds are mandatory.
Key Features of CQR
Conformalized Quantile Regression (CQR) wraps a standard quantile regression model with a conformal calibration step to produce distribution-free, finite-sample valid prediction intervals. It corrects the inherent under- or over-coverage of raw quantile estimates without assuming a specific error distribution.
Distribution-Free Validity
CQR inherits the core guarantee of conformal prediction: finite-sample marginal coverage. Unlike raw quantile regression, which relies on asymptotic assumptions and can be miscalibrated in practice, CQR provides a rigorous, nonparametric guarantee.
- No error distribution assumed: Works for heteroskedastic, heavy-tailed, or multimodal data.
- Guarantee: For a target coverage of 90%, the true value falls within the CQR interval at least 90% of the time, averaged over the calibration and test data.
- Key mechanism: The conformal step corrects the raw quantile estimates (e.g., 5th and 95th percentiles) by adding a calibration-derived buffer.
Adaptive Interval Width
CQR produces heteroskedastic prediction intervals that naturally widen in regions of high uncertainty and narrow where the model is confident. This adaptivity is inherited from the underlying quantile regression model.
- Captures local uncertainty: Unlike methods that produce constant-width intervals, CQR reflects varying data density and noise levels across the input space.
- Example: In financial forecasting, CQR intervals automatically widen during volatile market regimes and tighten during stable periods.
- Comparison: Standard split conformal prediction with absolute residuals produces intervals of fixed width, losing this local adaptivity.
Two-Stage Calibration Workflow
CQR operates in a distinct train-calibrate-predict pipeline that separates model fitting from uncertainty calibration.
- Stage 1 (Training): Fit a quantile regression model on the proper training set to estimate the lower and upper conditional quantiles (e.g., 0.05 and 0.95).
- Stage 2 (Calibration): Compute nonconformity scores on a held-out calibration set. The score is typically the maximum of how far each observation falls below the lower quantile or above the upper quantile.
- Stage 3 (Prediction): For a new point, compute the raw quantile interval and expand it by the empirical quantile of the calibration nonconformity scores.
Nonconformity Score Design
The nonconformity measure is the engine of CQR's correction. The standard choice is:
S(x, y) = max{ q̂_α(x) - y, y - q̂_{1-α}(x) }
- Interpretation: Measures how far the true label
yfalls outside the raw prediction interval[q̂_α(x), q̂_{1-α}(x)]. - Symmetric penalty: Penalizes violations of both the lower and upper bound equally.
- Asymmetric variants: Can be modified to prioritize coverage on one tail (e.g., avoiding underestimation in safety-critical systems) by applying different weights to lower and upper violations.
Handling Covariate Shift
Standard CQR assumes exchangeability between calibration and test data. When this assumption is violated—such as under covariate shift—Weighted CQR extends the framework.
- Weighted calibration: Applies importance weights to calibration nonconformity scores, where weights estimate the density ratio
p_test(x) / p_cal(x). - Guarantee: Maintains valid coverage under known or estimated covariate shift.
- Application: Deploying a CQR model in a new geographic region where the input distribution differs from the training environment.
Integration with Deep Learning
CQR is model-agnostic and integrates seamlessly with neural networks by modifying the loss function to simultaneously estimate multiple quantiles.
- Pinball loss: The standard quantile regression loss
L_τ(y, q̂_τ) = max(τ(y - q̂_τ), (τ-1)(y - q̂_τ))is used to train a single network with multiple output heads, one per target quantile. - Conformalized Deep Ensembles: Combining CQR with deep ensembles further improves adaptivity by leveraging ensemble variance before applying the conformal correction.
- End-to-end pipeline: Train a quantile neural network, calibrate on a held-out set, and deploy with guaranteed coverage—all within a standard deep learning framework.
CQR vs. Standard Quantile Regression vs. Conformal Prediction
A technical comparison of three distinct frameworks for generating prediction intervals, highlighting their statistical guarantees, assumptions, and computational properties.
| Feature | Conformalized Quantile Regression | Standard Quantile Regression | Split Conformal Prediction |
|---|---|---|---|
Coverage Guarantee Type | Finite-sample, marginally valid | Asymptotic only | Finite-sample, marginally valid |
Requires Exchangeability | |||
Corrects Model Misspecification | |||
Produces Adaptive Interval Widths | |||
Base Model Dependency | Requires pre-trained quantile regressor | N/A (is the base model) | Model-agnostic (any regressor) |
Computational Cost at Inference | Low (base model + scalar correction) | Low (single forward pass) | Low (single forward pass + scalar correction) |
Typical Interval Efficiency | High (tight, heteroscedastic intervals) | High if model is well-specified | Moderate (constant-width intervals) |
Handles Heteroscedasticity |
Frequently Asked Questions
Clear, technically precise answers to the most common questions about combining quantile regression with conformal prediction for rigorous, distribution-free uncertainty quantification.
Conformalized Quantile Regression (CQR) is a technique that wraps a standard quantile regression model with a conformal calibration step to produce finite-sample valid prediction intervals without assuming a specific error distribution. It works in two stages: first, a base quantile regressor estimates the conditional quantiles (e.g., 0.05 and 0.95) of the target variable given the input features. Second, a held-out calibration set is used to compute nonconformity scores—typically the maximum of the lower quantile residual and the upper quantile residual—and their empirical quantile is used to adjust the raw interval bounds. This correction ensures that the final prediction interval achieves the desired marginal coverage guarantee, even if the underlying quantile regression model is misspecified or biased. The result is a prediction set that is both adaptive to heteroscedasticity (varying noise levels across the input space) and statistically rigorous in finite samples.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Conformalized Quantile Regression (CQR) sits at the intersection of quantile regression and conformal inference. These related concepts form the theoretical and practical foundation for building distribution-free prediction intervals with finite-sample validity.
Nonconformity Measure
The scoring function that defines what constitutes an unusual prediction. In CQR, the nonconformity measure is typically the signed error between the observed value and the predicted quantile bounds:
max(ŷ_lower - y, y - ŷ_upper)This captures how far the true label falls outside the estimated interval. The choice of nonconformity measure directly shapes the size and adaptivity of the final prediction sets. Alternative measures can prioritize symmetric expansion or asymmetric coverage.
Split Conformal Prediction
The computational strategy that makes CQR practical. The data is partitioned into three disjoint sets:
- Training set: Fit the base quantile regression model
- Calibration set: Compute nonconformity scores and determine the correction factor
- Test set: Apply the calibrated intervals to new points This split avoids the prohibitive cost of retraining the model for each calibration point, enabling single-pass calibration while preserving the finite-sample coverage guarantee.
Marginal Coverage Guarantee
The statistical promise that CQR delivers: P(Y_test ∈ C(X_test)) ≥ 1 - α
This holds on average over all test points, not conditionally on any specific feature value. The guarantee is distribution-free and finite-sample—it requires only that the calibration and test data are exchangeable. For a 90% target coverage, CQR ensures the true value falls within the prediction interval at least 90% of the time across the test distribution.
Quantile Regression
The base estimator that CQR wraps with conformal calibration. Standard quantile regression estimates the conditional quantile function Q_τ(x) by minimizing the pinball loss:
ρ_τ(u) = u(τ - I(u < 0))Fitting models at τ = α/2 and τ = 1 - α/2 produces initial prediction intervals. However, these intervals lack finite-sample guarantees—they rely on asymptotic assumptions and correct model specification. CQR corrects this by calibrating the raw quantile estimates against a held-out set.
Conditional Coverage
The stronger, more elusive objective beyond marginal guarantees. Conditional coverage requires P(Y ∈ C(x) | X = x) ≥ 1 - α for every specific feature vector x. CQR with marginal calibration cannot achieve this exactly without additional assumptions—a fundamental limitation proven by Vovk. However, CQR's adaptive interval widths, inherited from quantile regression, provide approximate conditional coverage that outperforms fixed-width conformal methods in heteroscedastic settings.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us