Important: The stats package has been deprecated. Use the superseding package Statistics instead.
>
|
|
>
|
|
This is calculated as follows. For example, pick two points, say [1,3] and [2,4]. Pass a straight line through them. In this case it is y=2+x. For each point compute the square of the distance of the line to the point This gives [0,0,0,sqrt(2)/2]. Find the median through these distances: this gives 0. Now minimize over all possible lines. This is the result.
Here's an example using Weight
>
|
|
>
|
|