Pearson's chi-squared test
Often for $Λ$ the generalised likelihood ratio statistic, we obtain $$ \begin{align*} 2\log Λ = 2\sum_{i} O_i \log \frac{O_i}{E_i} \end{align*} $$ where $O_i$ and $E_i$ are the observed and expected counts of $i$, satisfying $\sum_{i} O_i = \sum_{i} E_i$.
Pearson's chi-squared statistic is the approximation $$ \begin{align*} 2\log Λ \approx \sum_{i} \frac{(O_i - E_i)^2}{E_i} \end{align*} $$ valid when $(O_i - E_i)/E_i \approx 0$. (Derivation)
By Wilks' theorem, $2\log Λ \xrightarrow{d} χ^2_d$ under $H_0$ with a certain degree of freedom $d$. So the size $α$ Pearson's chi-squared test rejects $H_0$ if $$ \begin{align*} \sum_{i} \frac{(O_i - E_i)^2}{E_i} > χ^2_d(α). \end{align*} $$