Panel Quantile-on-Quantile Regression

Econometrics
Introduced by
Sim and Zhou (cross-section QQ); panel extension in applied energy/finance econometrics
Year
2015 (QQ); panel applications from ~2018
Type
Nonparametric quantile regression
Family
Econometrics / time series

What does it do?

Panel quantile-on-quantile (QQ) regression maps quantiles of an outcome distribution onto quantiles of a predictor distribution, using observations on multiple cross-sectional units over time.

It extends Sim and Zhou's (2015) cross-sectional QQ framework to panel data and produces a dependence surface across the joint distribution rather than a single average effect. Time-invariant unit heterogeneity is absorbed through unit-specific terms included in the quantile objective, which must respect the quantile loss function (see the estimation steps below).

The intuition behind the method

Ordinary quantile regression describes how a quantile of Y, such as the median, responds to X. The QQ approach asks whether that response depends on where X itself sits in its distribution: whether the link is the same when X is low, middle, or high. In a panel, the model also has to account for time-invariant differences between units. The result is a two-dimensional surface. One axis indexes where Y lies in its distribution, the other indexes where X lies in its distribution, and each cell gives a local slope. Such a surface can show, for example, that a shock to X matters much more when Y is already in its lower tail than when Y is near its centre.

History

Koenker and Bassett (1978) introduced regression quantiles, the basis of quantile regression. Sim and Zhou (2015) apply quantile-on-quantile analysis to the dependence between oil prices and US stock returns across their quantiles. The originator of the panel extension and the date it first appeared are not established, so the panel extension is described here without a named originator.

When to use it

Use panel QQ regression when you suspect that the link between X and Y differs across both the distribution of Y and the distribution of X, and when your panel has enough cross-sectional units and time periods for local estimation to be informative at the quantiles you care about. It suits questions about tail dependence or asymmetric transmission, such as whether shocks behave differently in extreme versus ordinary regimes. Do not use it when the question concerns only mean effects, when the relationship is homogeneous across quantiles so that standard panel OLS or fixed effects models suffice, or when the panel is too short or has too few units for stable estimates near the ends of the quantile range. Treat it as a complement to, not a replacement for, simpler panel models in an exploratory first pass.

Limitations and considerations

  • Computationally intensive: a separate kernel-weighted quantile regression is estimated at every (θ, τ) grid point, and bootstrap resampling multiplies that cost.
  • Estimates near the ends of the quantile range rest on sparse data and have high variance, a problem that is worse in short panels.
  • Bandwidth choice for the local estimation is not automatic and can change results materially, so a sensitivity analysis is needed.
  • No single standard software routine is established for this estimator, so replication depends on how the estimator is coded and reported.
  • Many grid cells are tested at once, so selective reporting of significant cells inflates false discoveries.

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

Strengths

  • Reveals the full bivariate dependence surface, so tail and asymmetric effects that are averaged away by mean or single-quantile models become visible.
  • Accommodates unobserved time-invariant unit heterogeneity through unit-specific terms in the quantile objective, keeping the main panel advantage while preserving the quantile loss.
  • Does not impose a parametric distribution on the outcome; the slope at each grid point is estimated from the data near the relevant quantiles.
  • Shows whether extreme episodes such as crises or booms transmit differently from ordinary fluctuations, which is the main reason for choosing the method.
  • Results can be shown as a heat map or surface, which makes heterogeneous patterns easy to communicate to applied readers.

Applications

  • Energy economics: whether the transmission of oil-price changes to stock returns differs between high and low price or return regimes in a multi-country panel.
  • Environmental economics: whether the growth effects of carbon emissions differ across the growth distribution of countries.
  • Finance: tail dependence between returns on different asset classes across a panel of markets.
  • Monetary economics: whether the effect of policy on inflation differs between high- and low-inflation regimes across central banks.
  • Health economics: whether the income-health gradient varies across the joint distribution of income and health outcomes in panel survey data.

How it works

How it works

1

For a pair of quantile levels (θ, τ), with θ for Y and τ for X, the model approximates the θ-th conditional quantile of Y by a local linear function of X centred at the τ-th quantile of X, q^τ. The slope β₁(θ, τ) measures how the θ-th quantile of Y changes as X moves away from q^τ.

Formula
Q_{Y_{it}}(\theta \mid X_{it} = q^{\tau}) = \beta_0(\theta,\tau) + \beta_1(\theta,\tau)\,(X_{it} - q^{\tau})
2

At each (θ, τ) grid point, the local coefficients are obtained by a kernel-weighted quantile regression. Writing ρ_θ(u) = u(θ − 1{u < 0}) for the Koenker–Bassett check loss, the estimates minimise, over β₀, β₁ and the unit-specific terms α_i, the sum across units i and periods t of ρ_θ(Y_it − β₀ − β₁(X_it − q^τ) − α_i) multiplied by K_h(X_it − q^τ), where K_h is a kernel with bandwidth h. The kernel weights shrink as X_it moves away from q^τ, so observations whose X values lie far from q^τ receive small weights and the estimate is driven by the part of the sample close to that quantile of X. Where few observations lie near an extreme quantile, the weighted fit rests on little data.

3

Unit effects must be handled inside the quantile estimation rather than by a transformation such as the within-transformation used in linear panel OLS, because the check function is nonlinear and that transformation does not carry over. This page covers the fixed-effects case: unit-specific terms (unit dummies) enter the quantile objective, absorbing time-invariant heterogeneity while keeping the quantile loss intact. Random-effects estimation is outside the scope of this page. Unit dummies in quantile regression can be biased when the number of time periods is small (the incidental-parameter problem), so check the finite-sample behaviour of the estimator for the panel's number of periods before interpreting the surface.

4

The local estimation is repeated over a grid of θ and τ values. The resulting matrix of slope estimates can be displayed as a heat map or a three-dimensional surface. The grid spacing is an analyst's choice, and results should be reported for the grid actually used.

5

Confidence intervals for each (θ, τ) cell are typically obtained by bootstrap. When observations are serially dependent within units, a block bootstrap that preserves time dependence is the appropriate resampling scheme, for example by drawing contiguous time blocks within each unit and re-estimating the cell's coefficients on each resample. Naive resampling understates uncertainty in that case. Cells whose intervals include zero should be masked or shaded distinctly so that readers focus on regions where the slope is clearly non-zero.

Common pitfalls

  • Reading the whole QQ surface as significant without masking cells whose bootstrap intervals include zero.
  • Choosing the bandwidth by visual inspection and not reporting how conclusions change across alternative bandwidths.
  • Applying the estimator to a very short panel, where fixed effects absorb much of the within-unit variation and little is left for local quantile estimation.
  • Equating the QQ slope at the median-to-median cell (θ = 0.5, τ = 0.5) with the OLS coefficient; the two can differ, particularly when the conditional distribution is non-Gaussian or heteroscedastic.
  • Using a standard i.i.d. bootstrap when observations are serially correlated within units, which understates uncertainty and inflates false discovery rates.
  • Interpreting the surface at face value in a short panel without checking finite-sample bias, since unit dummies in quantile regression can be biased when the number of time periods is small.

Frequently asked questions

How does panel QQ regression differ from standard panel quantile regression?

Standard panel quantile regression estimates how the θ-th quantile of Y depends on X, treating X as a fixed covariate. The QQ extension makes the slope itself a function of τ, the quantile rank of X, revealing how the dependence changes as X moves through its own distribution — something a single quantile regression cannot show.

What bandwidth should I choose for the kernel weighting?

Bandwidth is a tuning choice with no single prescribed value. Use a data-driven selection rule where possible rather than choosing by eye, and report results for several bandwidths to show whether conclusions depend on the choice.

How many cross-sectional units and time periods do I need?

No verified minimum number of units or periods exists for this estimator. Estimates become less stable as the number of observations near the extreme quantiles falls, and in short panels little within-unit variation remains once unit effects are included. Before interpreting tail cells, check their variability by bootstrap or simulation at your panel's dimensions. Restricting the quantile grid to the interior of the distribution or using a wider bandwidth trades bias for lower variance.

Can I include multiple X variables?

The standard QQ framework is bivariate: one outcome quantile regressed on one predictor quantile. Multivariate extensions are not covered on this page, and any extension to additional regressors needs separate justification. Partialling out controls by OLS does not in general preserve the conditional quantile structure, so it is not a substitute.

Which software packages implement panel QQ regression?

No single standard package is established for this estimator. Implementations are commonly assembled from general quantile regression and kernel tools in R or MATLAB, and the exact code should be reported with the results.

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