2.4

$${D(x) = \frac{(\bar x - x_1)^2 + (\bar x - x_2)^2 \,+ ... +\, (\bar x - x_n)^2}{n-1}}$$