The model for linear quantile regression is
where
is the
vector of responses,
is the
regressor matrix,
is the
vector of unknown parameters, and
is the
vector of unknown errors.
regression, also known as median regression, is a natural extension of the sample median when the response is conditioned
on the covariates. In
regression, the least absolute residuals estimate
, referred to as the
-norm estimate, is obtained as the solution of the following minimization problem:
More generally, for quantile regression Koenker and Bassett (1978) defined the
regression quantile,
, as any solution to the following minimization problem:
![\[ \min _{\bbeta \in \mb{R}^ p} \left[\sum _{i\in \{ i: y_ i\geq \mb{x}_ i^{\prime }\bbeta \} } \tau |y_ i-\mb{x}_ i^{\prime }\bbeta | + \sum _{i\in \{ i: y_ i< \mb{x}_ i^{\prime }\bbeta \} } (1-\tau ) |y_ i-\mb{x}_ i^{\prime }\bbeta |\right] \]](images/statug_qreg0068.png)
The solution is denoted as
, and the
-norm estimate corresponds to
. The
regression quantile is an extension of the
sample quantile
, which can be formulated as the solution of
![\[ \min _{\xi \in \mb{R}} \left[ \sum _{i\in \{ i: y_ i\geq \xi \} } \tau |y_ i-\xi | + \sum _{i\in \{ i: y_ i< \xi \} } (1-\tau ) |y_ i-\xi | \right] \]](images/statug_qreg0072.png)
If you specify weights
, with the WEIGHT statement, weighted quantile regression is carried out by solving
![\[ \min _{\bbeta _ w \in \mb{R}^ p} \left[\sum _{i\in \{ i: y_ i\geq \mb{x}_ i^{\prime }\bbeta _ w\} } w_ i \tau |y_ i-\mb{x}_ i^{\prime }\bbeta _ w| + \sum _{i\in \{ i: y_ i< \mb{x}_ i^{\prime }\bbeta _ w\} } w_ i (1-\tau ) |y_ i-\mb{x}_ i^{\prime }\bbeta _ w|\right] \]](images/statug_qreg0074.png)
Weighted regression quantiles
can be used for L-estimation (Koenker and Zhao, 1994).