The Pearson's Chi Square standard notation is a summation of $(O_i-E_i)^2/E_i$. However, I cannot really get why it is divided by $E_i$.
For example, if I want to measure the distance between $f(x)$ and $g(x)$, then I would simply do the following: $d(x)=|f(x)-g(x)|$ or $d^2(x)=(f(x)-g(x))^2$.
So, if I haven't decided upon my critical value yet and I just keep the results of the formula, what is the purpose of the division?