Professional Documents
Culture Documents
Quantile Regression: EC 823: Applied Econometrics
Quantile Regression: EC 823: Applied Econometrics
Christopher F Baum
Christopher F Baum (BC / DIW) Quantile regression Boston College, Spring 2013 1 / 20
Motivation
Motivation
Christopher F Baum (BC / DIW) Quantile regression Boston College, Spring 2013 2 / 20
Motivation
Christopher F Baum (BC / DIW) Quantile regression Boston College, Spring 2013 3 / 20
Motivation
Let ŷ (x) denote the predictor function and e(x) = y − ŷ (x) denote the
prediction error. Then
Christopher F Baum (BC / DIW) Quantile regression Boston College, Spring 2013 4 / 20
Motivation
Christopher F Baum (BC / DIW) Quantile regression Boston College, Spring 2013 5 / 20
Implementation
Implementation
Christopher F Baum (BC / DIW) Quantile regression Boston College, Spring 2013 6 / 20
Implementation
Christopher F Baum (BC / DIW) Quantile regression Boston College, Spring 2013 7 / 20
Implementation
Christopher F Baum (BC / DIW) Quantile regression Boston College, Spring 2013 8 / 20
Illustration
Illustration
Christopher F Baum (BC / DIW) Quantile regression Boston College, Spring 2013 9 / 20
Illustration
Christopher F Baum (BC / DIW) Quantile regression Boston College, Spring 2013 10 / 20
Illustration
12
10
quantiles of ln(totexp) if totexp > 0
0 .1 .2 .3 .4 .5 .6 .7 .8 .9 1
fraction of the data
Christopher F Baum (BC / DIW) Quantile regression Boston College, Spring 2013 11 / 20
Illustration
Christopher F Baum (BC / DIW) Quantile regression Boston College, Spring 2013 12 / 20
Illustration
Christopher F Baum (BC / DIW) Quantile regression Boston College, Spring 2013 13 / 20
Illustration
Christopher F Baum (BC / DIW) Quantile regression Boston College, Spring 2013 14 / 20
Illustration
Christopher F Baum (BC / DIW) Quantile regression Boston College, Spring 2013 15 / 20
Illustration
Christopher F Baum (BC / DIW) Quantile regression Boston College, Spring 2013 16 / 20
Illustration
. qui sqreg ltotexp suppins totchr age female white, nolog q(0.1 0.25 0.5 0.75
> 0.9)
. test [q25=q50=q75]: suppins
( 1) [q25]suppins - [q50]suppins = 0
( 2) [q25]suppins - [q75]suppins = 0
F( 2, 2949) = 7.41
Prob > F = 0.0006
. test [q25=q50=q75]: totchr
( 1) [q25]totchr - [q50]totchr = 0
( 2) [q25]totchr - [q75]totchr = 0
F( 2, 2949) = 5.10
Prob > F = 0.0061
Christopher F Baum (BC / DIW) Quantile regression Boston College, Spring 2013 17 / 20
Illustration
Christopher F Baum (BC / DIW) Quantile regression Boston College, Spring 2013 18 / 20
Age Intercept
-0.02 0.00 0.02 0.04 2.00 4.00 6.00 8.00 10.00
0
0
.2
.2
.4
.4
.6
.6
Quantile
Quantile
.8
.8
0
0
.2
.2
.4
.4
Illustration
.6
.6
Quantile
Quantile
.8
.8
Quantile regression
1
1
.2
.2
.4
.4
.6
.6
Quantile
Quantile
.8
.8
1
1
The graph illustrates how the effects of private insurance and health
status (number of chronic problems) vary over quantiles, and how the
magnitude of the effects at various quantiles differ considerably from
the OLS coefficient, even in terms of the confidence intervals around
each coefficient.
Christopher F Baum (BC / DIW) Quantile regression Boston College, Spring 2013 20 / 20