← 3. Relationships & regression
Regression analysis
Try this analysis →

Quantile Regression

Looks at differences hidden by the mean and analyzes how relationships change in the lower, middle, and upper parts of the outcome distribution.

Conditional quantilesτ = 0.25·0.50·0.75Regression coefficientsComparing distributions

Short careerMid careerLong careerTop 25%MedianBottom 25%Wage spread widens with experience

How much do wages rise as work experience grows? Looking only at average salary tells you the overall relationship between experience and wages. But does the same relationship hold for both low-wage and high-wage workers?

The mean summarizes many people's wages in a single value. In data with large wage gaps, the low end of the wage distribution may barely change even as the mean rises. Conversely, only the high end might rise quickly.

Quantile Regression analyzes different points of the conditional distribution, such as the 25th percentile, the median, and the 75th percentile, instead of the mean. By comparing the regression coefficients at each point, it examines whether the relationship between the explanatory variable and the outcome is the same across the whole distribution.

In this article, using work experience and annual wages as an example, we look in turn at how to read quantile regression lines and result tables, how it differs from mean regression, and what to watch out for when reporting results.

SECTION 1

What is quantile regression?

It looks at different parts of the distribution that the mean hides.

Even among workers with the same 10 years of experience, wages vary widely. Ordinary linear regression estimates how the conditional mean wage changes as experience increases. Quantile regression examines how the lower, middle, and upper levels of the wage distribution change under the same conditions.

For example, τ=0.25 refers to the point at the bottom 25% of the conditional wage distribution of workers with the same experience. It does not mean placing an individual worker's wage exactly at the 25% rank.

SECTION 2

When is quantile regression used?

It is useful when a variable's effect is not the same across the whole outcome distribution.

In data with a wide range of outcomes, such as wage gaps, home prices, medical costs, and academic achievement, the mean alone can hardly explain every change. In particular, if the same explanatory variable is expected to relate differently to low and high outcome values, you can consider quantile regression.

Research questionQuantile to examine
How much does the low-wage level change with experience?τ = 0.25
How does the typical wage level change?τ = 0.50
How does the high-wage level change?τ = 0.75
303540455055τ = 0.2538.4τ = 0.5044.0τ = 0.7552.410 years' experience · wage ($ thousands)
Conditional quantiles at 10 years' experience

Quantile regression is not a cure-all that replaces mean regression; it is a method to use alongside it when differences in the distribution are the research question.

SECTION 3

How does quantile regression work?

It fits a different regression line for each quantile.

Whereas least squares regression minimizes the sum of squared errors, quantile regression minimizes a loss function (check loss) that weights overprediction and underprediction differently depending on the quantile.

Key idea

At τ=0.50, the median regression line is estimated based on absolute errors. At τ=0.25 and τ=0.75, different weights are applied depending on the direction of the error, so the slope and intercept can differ.

A quantile regression coefficient is the estimated change in the conditional quantile for a one-unit change in the explanatory variable, holding the other explanatory variables fixed.

SECTION 4

Real example: differences in wage levels by experience

For the same experience, does the size of the increase differ by wage level?

Suppose we surveyed 150 hypothetical workers on their experience (0–20 years) and annual wages ($ thousands). This example uses data generated for illustration, not results from an actual labor market survey.

VariableRoleUnit
ExperienceExplanatory variableYears
Annual wageOutcome variable$ thousands
Quantile τAnalysis setting0.25 / 0.50 / 0.75
02040608010005101520Experience (years)Annual wage ($ thousands)τ = 0.25+1.24/yrτ = 0.50+1.56/yrτ = 0.75+1.91/yr
Quantile regression lines

Looking at the spacing and slopes of the three regression lines together lets you explore how the wage distribution widens or changes as experience increases.

SECTION 5

What values do you check in the results table?

Read the coefficients and significance levels for each quantile side by side.

The results below were obtained by actually applying quantile regression to the example data. In the analysis, you vary τ and compare how the coefficient of the same explanatory variable changes.

QuantileInterceptExperience coefficientExperience p-value
τ = 0.2526.001.24< .001
τ = 0.5028.361.56< .001
τ = 0.7533.261.91< .001

The unit of the experience coefficient is the change in annual wage ($ thousands) per year of experience. The p-values in the table are for the hypothesis that the experience coefficient is 0 at each quantile.

In the example, the experience coefficient is larger at higher quantiles than at lower ones. However, whether the coefficients differ statistically between quantiles must be checked with a separate test of the difference or bootstrap confidence intervals.

SECTION 6

How do you interpret the coefficients for each quantile?

Distinguish the size of the coefficient from what it refers to.

If the experience coefficient at τ=0.25 is about 1.24, it is interpreted as a relationship in which, other things being equal, each additional year of experience raises the conditional 25th-percentile wage by about $1.24 thousand. At τ=0.75, the change is about $1.91 thousand.

Correct interpretation

"Each additional year of experience was associated with a conditional 75th-percentile annual wage estimated to be about $1.91 thousand higher."

Interpretation to avoid

"Workers in the top 25% get exactly $1.91 thousand more in wages for every year of experience." Quantile regression does not track individual wage changes for a fixed top group.

SECTION 7

Comparing mean regression and quantile regression results

Check the changes at different locations side by side.

Applying ordinary least squares (OLS) regression to the same example also gives a coefficient for the change in the mean wage. But a single mean regression line makes it hard to see how the spread of the outcome distribution changes with experience.

AnalysisExperience coefficient ($ thousands/yr)
OLS mean regression1.64
25th-percentile regression1.24
Median regression1.56
75th-percentile regression1.91

The mere fact that the results differ should not lead you to conclude that the effect at a particular quantile is significantly larger. You need to compare the estimation uncertainty as well.

SECTION 8

How do you read regression lines for several quantiles?

Check the slopes and the spacing of the lines together.

00.511.52OLS mean1.64τ = 0.251.24τ = 0.501.56τ = 0.751.91Wage change per year of experience ($ thousands)
Comparing experience coefficients

In the graph above, the upper quantiles have steeper slopes, so the estimated gap between the upper and lower wage quantiles widens as experience increases. On this basis, you can write that the conditional distribution of wages is wider at higher levels of experience.

However, the graph only shows a statistical relationship within the observed range; it does not prove a causal relationship in which more experience actually creates wage gaps.

SECTION 9

How does it differ from other regression analyses?

Choose by distinguishing the mean, the median, and curved relationships.

MethodCentral questionInterpretation of results
Linear regression (OLS)What happens to the mean when the explanatory variable changes?Change in the conditional mean
Polynomial regressionIs the relationship between the explanatory variable and the outcome curved?Curved relationship of the mean
Quantile regressionHow do the low and high parts of the distribution differ?Change in conditional quantiles
Robust regressionHow do you estimate a mean relationship that is less sensitive to outliers and the like?Coefficients of the chosen robust estimator

Quantile regression and polynomial regression can also be used together. To study whether the curved relationship differs by quantile, you can fit a quantile regression that includes a squared term.

SECTION 10

What should you check before the analysis?

Look at the data structure and the stability of the estimates.

Quantile regression does not require assuming normally distributed errors. But that does not mean it can be applied without any checks.

SECTION 11

What should you watch out for when interpreting results?

Test differences between coefficients and avoid causal interpretation.

The fact that the slope at the 0.25 quantile is smaller than at the 0.75 quantile is descriptively meaningful, but to judge whether that difference is more than chance, you need a confidence interval or test for the difference in coefficients. The fact that only one of the individual p-values is significant does not mean the two coefficients differ significantly.

Leaving out key variables such as occupation, education, and industry can distort the relationship with experience. Also, results about the conditional distribution in quantile regression should not be generalized to changes in the unconditional quantiles of the whole population.

Watch out especially

The "upper quantile" is not a fixed group of particular workers. It is a position in the conditional wage distribution defined at each level of experience.

SECTION 12

Reporting quantile regression results in words

Convey the research question together with the coefficients and units.

When reporting results, it is good to state the quantiles used, the sample size, the units of the explanatory and outcome variables, the regression coefficients, the confidence intervals or significance levels, and the inference method.

Example report sentence

"Analysis of data from 150 hypothetical workers showed that experience was positively associated with the conditional 25th percentile (β = 1.24, p < .001), the median (β = 1.56, p < .001), and the 75th percentile (β = 1.91, p < .001) of annual wages. The coefficient was estimated to be larger at the upper quantile, but the statistical significance of the differences in coefficients between quantiles was not tested separately."

The sentence above was written based on the results fitted to the example data. In real studies, present the confidence intervals and the standard error estimation method as well.

SECTION 13

Where can quantile regression be used?

It can be applied in research where differences in the distribution beyond the mean matter.

FieldResearch question
Labor and wagesDo experience or education relate differently at the low-wage and high-wage quantiles?
Real estateDoes an increase in floor area show up differently in low-priced and high-priced home prices?
Health careIs the relationship between age and medical costs larger in the high-cost range?
EducationDoes the relationship between study time and test scores differ between low and high achievers?

If you want to know not only the average change in a variable but also what differences appear at each location of the distribution, quantile regression is a useful complementary analysis.

✓ Wrap-up

There are differences a single mean cannot show.

Quantile regression helps you understand different locations of the outcome distribution.


It is important to know how much the average wage rises as experience increases, but looking at how that relationship differs at low and high wage levels lets you answer more specific research questions.

When reading the coefficients for each quantile, remember that they represent not the wage change of a specific individual or fixed group, but the corresponding quantile of the distribution conditional on the explanatory variables. It is good to check differences in coefficients between quantiles with separate inference.

KEY TAKEAWAY

The key to quantile regression is to examine how different quantiles of the distribution, rather than the conditional mean of the outcome, change when the explanatory variable changes. Compare the coefficients for each quantile together, but judge the statistical significance of coefficient differences and causality separately.