# Minimize parameter for Least Absolute Deviation LAD

1. Jun 9, 2010

### dabd

How to compute $$\beta = arg min_\beta \sum_{i=1}^N {|y_i - x_i^T \beta|$$

2. Jun 9, 2010

There is no closed-form solution for this (contrary to the situation with least squares). The software you use (R, SAS, etc) use a variety of methods. check the relevant documentation for those programs.

3. Jun 9, 2010

### dabd

I was just interested in the calculation not in applying it to real data.
The estimate is the median of the data x1,...,xn and I wanted to see how they derived that result.

4. Jun 9, 2010

$$\sum_{i=1}^n |x_i - a|$$
as a function of $a$, the solution is the sample median. This does not generalize to regression.