Why is the Variance of a random variable X defined as E[(X−E[X])2] instead of E[|X−E[x]|], where E(X) is the Expected Value of X?.
Let's suppose that all values of X are positive, then E[X] must be positive, and X−E[x] is positive for the values of X inferior to E[X] and negative for the values of X which are superior to E[x]. Taking all the positive values and calculate their Expected value E[|X−E[x]|], it would adequately compute the dispersion of X.
Why is the square required in the definition of the variance?