It is easy to show using matrix algebra when least squares will produce bias.
\begin{equation} \begin{split} \text{E}[B]& = \text{E}[(X'X)^{-1}]\times\text{E}[X'Y] \\ & = \text{E}[(X'X)^{-1}]\times\text{E}[X'(XB +\epsilon)] \\ & = \text{E}[(X'X)^{-1}]\times\text{E}[X'XB] + \text{E}[(X'X)^{-1}]\times\text{E}[X'\epsilon] \\ & = B + \text{E}[(X'X)^{-1}]\times\text{E}[X'\epsilon] \\ \end{split} \end{equation}
Bias is introduced in the last term when there is correlation between X and e.
My question is, how do we know when $\text{E}[B]$ for the LAD estimator will be biased? Will bias arise when there is correlation between $X$ and $\epsilon$, as in least squares? Or is quantile regression robust to correlation between $X$ and $\epsilon$? I'm guessing it can't be demonstrated using matrix algebra because the LAD estimator is the following:
\begin{align} B(\tau) = \operatorname{argmin} \text{E}[\rho(Y_i - X'B)] \end{align}
and the LAD estimator is not calculated using linear algebra (?). If that's right, then how can we demonstrate when quantile regression will produce bias? Use a monte carlo simulation?