0

Why is standard deviation usually defined as sqrt(var(x)) and not simply as abs(X-u) while the latter is simpler to understand and both give same values?

Kozuch
  • 101
  • 5

3 Answers3

6

They do not give the same distance.

If you are trying to get from point $a$ to point $b$ in a city with regular, parallel streets, then

$$ \sum_i \left| a_i - b_i \right| $$

is the total driving distance along the streets from $a$ to $b$. Because we are forced to drive either directly to the east/west or directly to the north/south, this is less efficient (more total driving) than the distance a bird would take, flying from $a$ to $b$ directly. The bird distance is what

$$ \sqrt{\sum_i (a_i - b_i)^2} $$

measures (for a small city, ignoring the curvature of the earth).

The driving distance is always greater than or equal to the bird distance, with the two being equal if and only if the bird is flying directly east/west or north/south.

Matthew Drury
  • 33,314
  • 2
  • 101
  • 132
  • 2
    (+1) Great explanation of Jensen's inequality using such an intuitive analogy! –  Apr 04 '16 at 17:08
1

They do not give the same result at all, because the square root operator is not linear.

Quantuple
  • 1,296
  • 1
  • 8
  • 20
1

The main reason we use $||X||_2$ is because of its nice mathematical properties: it is differnetiable, which allows for more of Real Analysis to be applied.

  • Worth noting that the differetiabilty in some sense makes $| X |^2$, in the OP's words, "simpler to understand". – Matthew Drury Apr 04 '16 at 16:56
  • By this argument we could just as well be using $||X||_p$ for any $1 \lt p \lt \infty$. That suggests this answer might be part of the reason but it's certainly not the whole reason. – whuber Apr 04 '16 at 17:44
  • @whuber couldn't agree more ... I wasnt asserting that differentiability was the whole story...however it shows why THE most obvious choice is not chosen... –  Apr 04 '16 at 18:38