Quantile-on-Quantile (QQ) Regression

Econometrics
Introduced by
Sim and Zhou
Year
2015
Type
Nonparametric quantile regression
Family
Econometrics / time series

What does it do?

Quantile-on-quantile regression is a nonparametric technique that estimates how the quantiles of one variable depend on the quantiles of another.

It combines standard quantile regression with local linear kernel smoothing to produce a two-dimensional surface of slope coefficients, indexed by both the outcome quantile and the predictor quantile. The surface can reveal asymmetric and tail-specific dependence that a single average slope from ordinary regression does not show.

The intuition behind the method

Ordinary regression shows one average relationship between two variables. Quantile regression shows how that relationship differs across outcome levels. QQ regression also lets the relationship vary across predictor levels at the same time. Think of a heat-map over a two-dimensional grid: one axis is where the outcome sits in its distribution, and the other is where the predictor sits in its distribution. Each cell shows a different slope. In the original application to oil prices and US stock returns (Sim and Zhou, 2015), the approach compares the dependence between the two variables across their quantiles, from the tails to the middle of each distribution.

History

Quantile-on-quantile regression was introduced by Sim and Zhou (2015) in a study of the dependence between oil prices and US stock returns, published in the Journal of Banking and Finance. It builds on the quantile regression framework of Koenker and Bassett (1978) and adds local linear kernel smoothing so that the slope can vary across predictor quantiles.

When to use it

Choose QQ regression when you expect the relationship between two variables to differ both across the outcome distribution and across the predictor distribution, for example when tail dependence, asymmetry or regime-specific effects are of theoretical interest. It fits best when standard quantile regression already shows non-constant slopes and you want to know whether that heterogeneity also depends on the predictor's own level. Be cautious with small samples, since each local fit uses only a fraction of the data; check the number of effective observations within each local window before reading the surface. Also avoid it when the relationship is believed to be globally linear and symmetric, or when a parsimonious result is required for policy reporting; OLS or standard quantile regression is then more suitable and easier to communicate.

Limitations and considerations

  • Needs a reasonably large sample, because each local regression uses only the observations near its predictor quantile, and cells at the extremes rest on the fewest observations.
  • Results depend on the bandwidth: too little smoothing produces a noisy surface, while too much smooths away the heterogeneity the method is meant to reveal.
  • Inference on the surface relies on bootstrap resampling, as the FAQ describes; each resample requires refitting the whole grid, which can be demanding. For time-series data the resampling must preserve serial dependence (for example by a block bootstrap); the plain i.i.d. bootstrap is not generally valid there.
  • The two-dimensional surface is harder to interpret and explain than a single coefficient or a one-dimensional profile of quantile slopes.
  • Each local fit assumes the conditional quantile is approximately linear in the predictor within its window; curvature inside a window is not captured by that cell's slope.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Can reveal asymmetric and tail-specific dependence between two variables that a single average slope does not display, and how that dependence varies across predictor quantiles.
  • Does not impose a global parametric form on how the slope changes across predictor quantiles: each local fit is linear, but the variation across the grid is estimated from the data.
  • The slope surface gives a visual summary of heterogeneity that can be compared directly across regions of the joint distribution.
  • The check-function loss used in each local fit is less affected by outlying outcome values than squared-error loss.

Applications

  • Analysing how oil price movements relate to US stock returns at different quantiles of each variable, which is the setting of the original study.
  • Examining dependence between two financial or macroeconomic variables where tail behaviour, rather than the average relationship, is the object of interest.
  • Checking whether a relationship found with standard quantile regression changes with the level of the predictor.

How it works

How it works

1

The theta-th conditional quantile of Y is written as a linear function of the predictor X, with the intercept and slope both indexed by theta (the outcome quantile) and tau (the predictor quantile). The slope therefore describes how X relates to Y at a given outcome level and a given predictor level.

Formula
Q_{Y}(\theta) = \beta_0(\theta, \tau) + \beta_1(\theta, \tau) X_\tau + \varepsilon
2

For each target predictor quantile tau, every observation receives a kernel weight based on how close its position in the empirical distribution of X is to tau. Observations near the tau-th quantile of X dominate the local fit, so the regression is effectively estimated at each predictor level rather than once for the whole sample.

3

The bandwidth h sets the width of the window in predictor-quantile space and so how many neighbouring observations contribute to each local estimate. A smaller h reduces bias from pooling dissimilar observations but increases variance, because fewer observations inform each estimate; a larger h does the reverse. Choose h deliberately, report the value used, and check how much the surface changes across a range of values.

4

At each (theta, tau) pair, a weighted quantile regression minimises the kernel-weighted check-function loss, which gives the slope estimate beta(theta, tau). The estimation is repeated over a grid of theta and tau values chosen by the analyst. The grid should be fine enough to show the shape of the surface, but each local window must still contain enough observations to support its estimate.

Formula
\hat{\beta}(\theta, \tau) = \arg\min_{b} \sum_i K\!\left(\frac{\hat{F}_X(X_i) - \tau}{h}\right) \rho_\theta(Y_i - b_0 - b_1 X_i)
5

The matrix of slope estimates is displayed as a contour or heat-map surface. Large positive or negative slopes show where in the joint distribution the dependence is strongest, and differences across the grid indicate nonlinear or tail-specific behaviour. Each cell is a separate local estimate, so cells at the extremes rest on fewer effective observations and should be read with more caution.

Common pitfalls

  • Choosing a small bandwidth, which gives a noisy, unstable surface whose apparent structure may reflect sampling noise.
  • Fitting the method on a small sample and treating the surface as reliable; estimates at extreme quantile combinations rest on very few observations.
  • Reporting the surface without confidence bands and reading every variation across the grid as statistically meaningful.
  • Treating the predictor quantile axis as time or as a causal mechanism; the method describes a dependence structure and does not establish causal direction.

Frequently asked questions

How does QQ regression differ from standard quantile regression?

Standard quantile regression estimates a single slope for each outcome quantile (theta), averaged over all values of X. QQ regression additionally conditions on the quantile of X (tau), so the slope is estimated at every (theta, tau) combination. The result is a surface rather than a single curve of quantile slopes.

What bandwidth should I use?

The bandwidth h controls the width of the kernel window in the predictor quantile space. Choose it deliberately, report the value used, and check that the main features of the surface persist across several bandwidth values before interpreting it.

How do I test whether a specific region of the slope surface is statistically significant?

Use bootstrap resampling. Draw many bootstrap samples, refit the QQ surface each time, and use the empirical distribution of the bootstrap slopes at each (theta, tau) cell to construct pointwise or simultaneous confidence bands. For time-series data, resample in blocks so that serial dependence is preserved; the i.i.d. bootstrap is not generally valid when observations are dependent.

Can QQ regression be applied to panel data?

QQ regression as described here applies to a pair of cross-sectional or time-series variables. Panel extensions are outside this method and would require additional assumptions about heterogeneity across units, so results should not be assumed to carry over from the baseline method.

How many observations do I need?

Each local estimate uses only the observations near its predictor quantile, so estimates at the tails are unreliable when the sample is small. Check the effective number of observations within each local window before reading the corresponding region of the surface.

Related methods

Sources

  1. Sim, N., & Zhou, H. (2015). Oil prices, US stock return, and the dependence between their quantiles. Journal of Banking and Finance, 55, 1-8.

    Open DOI reference
  2. Koenker, R., & Bassett, G. (1978). Regression quantiles. Econometrica, 46(1), 33-50.

    Open DOI reference