The random variables $X_1,X_2,\cdots,X_{k}$ have a multinomial distribution if and only if their joint probability mass distribution is given by $$ \mathbf{P}\left\{X_{1}=n_{1}, X_{2}=n_{2}, \ldots, X_{k}=n_{k}\right\} = \frac{n !}{n_{1} ! n_{2} ! \ldots n_{k} !} p_{1}^{n_{1}} p_{2}^{n_{2}} \ldots p_{k}^{n_{k}} $$ where $p_{i}\in \left (0,1 \right ),n_{i}\in\left\{1,\ldots,n\right\},\sum_{i=1}^{k} n_{i}=n \text { and } \sum_{i=1}^{k} p_{i}=1 .$
We say that
- A sequence of random variables $\xi_{n}=O_{\mathrm{P}}(1) $ if and only if for any $\epsilon>0$,there is $M>0$ such that $\mathbf{P}\left(\left|\xi_{n}\right| \ge M\right)<\epsilon, n\ge 1 $;
- A sequence of random variables $\xi_{n}=o_{\mathbf{p}}\left( 1\right)$ if and only if $\xi_{n} \stackrel{\mathbf{p}}{\longrightarrow} 0$ as $n\rightarrow\infty.$
Show that \begin{equation} \boxed{2\sum_{i=1}^k n_i\log\frac{n_i}{np_i} = \sum_{i=1}^k\frac{(n_i-np_i)^2}{np_i} + o_{\mathbf{p}}(1)\quad (n\rightarrow \infty).} \end{equation}
The following is my thoughts,but I'm not sure if it's correct. Please provide corrections if necessary.
By Bernoulli’s law of large numbers, For every $\varepsilon>0$ we have
\begin{aligned} &\lim _{n \rightarrow \infty} \mathbf{P}\left(\left|\frac{n_{i}}{n}-p_{i}\right| \geq \varepsilon\right)=0,\quad\text{i.e.}\quad\frac{n_i-np_{i}}{np_{i}}=o_{\mathbf{p}}(1). \end{aligned}
By CLT,The asymptotic distribution of $\frac{n_i-n p_i}{\sqrt{n}}$ is $\mathcal{N}\left( 0,p_{i}(1-p_i) \right )$,i.e.$\frac{n_i-n p_i}{\sqrt{n}}\stackrel{\mathbf{d}}{\longrightarrow}\mathcal{N}\left( 0,p_{i}(1-p_i) \right ).$ Then $\frac{n_i-n p_i}{\sqrt{n}}=O_{\mathbf{p}}(1)\Leftrightarrow n_i-n p_i=O_{\mathbf{p}}(\sqrt{n}).$
\begin{aligned} 2\sum_{i=1}^k n_i\log\frac{n_i}{n p_i} &=2\sum_{i=1}^k n_i\log\left(1+\frac{n_i-np_i}{n p_i}\right)\\ &=2\sum_{i=1}^k n_i\left[\left(\frac{n_i-n p_i}{n p_i}\right)-\frac12\left(\frac{n_i-n p_i}{n p_i}\right)^2+O\left(\left(\frac{n_i-n p_i}{n p_i}\right)^3\right)\right]\\ &=2\sum_{i=1}^k n_i\left[\left(\frac{n_i-n p_i}{n p_i}\right)-\frac12\left(\frac{n_i-n p_i}{n p_i}\right)^2\right]+\sum_{i=1}^{k}n_{i}O_{\mathbf{p}}\left((\frac{\sqrt{n}}{n})^3\right)\\ &=2\sum_{i=1}^k n_i\left[\left(\frac{n_i-n p_i}{n p_i}\right)-\frac12\left(\frac{n_i-n p_i}{n p_i}\right)^2\right]+O_{\mathbf{p}}\left(\frac{1}{\sqrt{n}}\right)\\ &=\sum_{i=1}^{k}\frac{(n_i-n p_i)^2}{n p_i}-\sum_{i=1}^{k}\left(n_i-n p_i\right)\cdot O_{\mathbf{p}}\left(\left(\frac{n_i-n p_i}{n p_i}\right)^2\right)+O_{\mathbf{p}}\left(\frac{1}{\sqrt{n}}\right)\\ &=\sum_{i=1}^{k}\frac{(n_i-n p_i)^2}{n p_i}-\sum_{i=1}^{k}\left(n_i-n p_i\right)\cdot O_{\mathbf{p}}\left(\frac{1}{n}\right)+O_{\mathbf{p}}\left(\frac{1}{\sqrt{n}}\right)\\ &=\sum_{i=1}^{k}\frac{(n_i-n p_i)^2}{n p_i}+O_{\mathbf{p}}\left(\frac{1}{\sqrt{n}}\right)\\ &=\sum_{i=1}^{k}\frac{(n_i-n p_i)^2}{n p_i}+o_{\mathbf{p}}\left(1\right). \end{aligned}