If study time increases by one hour, will scores at the low, middle and high positions differ by the same amount? Mean regression summarizes the average score for a given study time with a single relationship; quantile regression instead lets you examine how the lower part, the median and the upper part of the score distribution change for a given study time.
The "position" here is a conditional quantile: first fix the predictor, then look at the outcome distribution. For example, among students with the same study time, the 10th percentile of scores is the point below which roughly 10% of scores fall; the 50th percentile is the median, and the 90th percentile corresponds to a higher position. After changing the study time, you can look at these positions again and compare how they have moved.
Comparing distribution positions with three lines
The following is an illustrative set of relationships and does not represent real student data. Let x be weekly study time in hours, with scores in points. Within the range of times considered, assume all three conditional quantiles can be represented by straight lines:
| Conditional quantile | Illustrative regression line | Study time from 2 hours to 3 hours |
|---|---|---|
| 10th percentile | 40 + 2x | From 44 to 46 points |
| 50th percentile | 60 + x | From 62 to 63 points |
| 90th percentile | 80 + 0.5x | From 81 to 81.5 points |
The slope of the 10th-percentile line is 2: in this illustrative model, when weekly study time differs by 1 hour, the 10th percentile of the conditional score distribution differs by 2 points; the median and the 90th percentile differ by 1 point and 0.5 points, respectively. The three lines have different slopes, which shows that the relationship between study time and the score distribution differs by position: here the lower positions rise faster.
You can also compare the distance between two lines. At 2 hours of weekly study, the 90th and 10th percentiles differ by 37 points; at 3 hours they differ by 35.5 points. In this illustrative model, that quantile spacing narrows as study time increases. If the lines were parallel, their slopes would be the same, and the corresponding quantile spacing would not change with x.
These comparisons concern conditional distributions at different study times; they do not track the same group of low-scoring students as they increase their study time. The individuals corresponding to the 10th percentile need not stay the same across conditions. Even if such a relationship is observed in the data, regression alone cannot establish that increasing study time caused these score differences.
One relationship estimated for each quantile
Linear quantile regression can be written as Qτ(Y|X=x)=aτ+bτx. Qτ is the τ-th quantile of the outcome Y given X=x, aτ is the intercept, and bτ is the slope at that quantile. Choosing and estimating τ=0.10, 0.50 and 0.90 separately lets you compare the slopes at the lower position, the median and the upper position. The coefficient bτ is the regression slope of the conditional quantile on the predictor; it carries the units of the outcome and the predictor, and is not a correlation coefficient.
In estimation, quantile regression weights overestimates and underestimates differently. Taking the 90th percentile as an example, underestimating an observation costs more than overestimating it by the same amount, so the fitted line is pushed toward the higher part of the conditional distribution. At the 50th percentile the two sides carry equal weight, which corresponds to minimizing the sum of absolute residuals.
From stock and bond returns to autoregression
In his stock-and-bond return demonstration, Eran Raviv uses weekly returns of SPY and TLT, taking one fund's return as the outcome and the other's as the predictor, and estimates slopes at multiple quantiles. His code first standardizes the two return series, then fits from the 10th to the 90th percentile one by one, and compares the coefficients obtained in the two regression directions. This shows that a single number summarizing the overall linear relationship can hide slope differences at different conditional quantiles. The two directions answer different questions, and the resulting slopes should not be directly called correlation coefficients.[1]
In another demonstration, Raviv uses the euro area's monthly "misery index" to illustrate quantile autoregression: the outcome is the current month's index and the predictor is the previous month's index, fitted separately for the 5th through 95th percentiles. The slopes he shows differ across quantiles, and the fitted lines fan out; this lets us see how the spacing of the conditional distribution of the current month's index changes given different previous-month values, rather than just one average relationship.[2]
Therefore, the most useful comparison in quantile regression is not simply asking "is the coefficient large?", but looking side by side at the slopes of the same predictor at several conditional quantiles, and then at how the distance between quantiles changes with the predictor. Only then can the relationship at the middle be placed in the same picture as the relationships at the two ends of the distribution.