3

The following paragraph (equation 1.41) is from the book "Information theory, Inference, and Learning Algorithms"

I don't quite understand how the first approximation in 1.41 is derived. Can anyone give a help?

enter image description here

M. Tong
  • 131

2 Answers2

1

The sum is being approximated by an integral. In particular you need

$$ \sum_{r = -N/2}^{N/2} e^{-r^2/2\sigma^2} \approx \sqrt{2\pi} \sigma. $$

The sum is approximated by the integral

$$ \int_{-N/2}^{N/2} e^{-r^2/2\sigma^2} \: dr. $$

Now, $N/2$ is "large enough" that we can replace it by infinity without changing the integral too much. Why? We have $\sigma = \sqrt{N/4}$ as stated in the text. So follows that the integrand is $e^{-N/2}$ at each of its endpoints and smaller beyond them, and $N$ is large.

So we can replace the bounds on the integral with $\pm \infty$ to ge

$$ \int_{-\infty}^\infty e^{-r^2/2\sigma^2} \: dr$$

Then change variables, letting $u = r/{\sigma \sqrt{2}}$, to get

$$ \sqrt{2} \int_{-\infty}^\infty e^{-u^2} \: du $$

and finally use the fact that that integral is $\sqrt{\pi}$ to get the result. This is called the Gaussian integral and is usually proven by integrating $e^{-(x^2+y^2)}$ over the plane in both rectangular and polar coordinates.

Michael Lugo
  • 22,354
0

Here is my interpretation, this is not too formal, take it as an intuition instead.

Let $X_i$ be a sequence of i.i.d. Bernouli random variables with probability $\frac12$. Then, by the CLT, the distribution of $A_N=\frac{X_1+\dots X_N-N/2}{\sqrt{N}/2}$ is well approximated by a $\mathcal N(0,1)$ random variable when $N$ is large enough, let $A$ be that Gaussian RV. Also observe that for $k=-N/2, \dots, N/2$, $\mathbb P[\sqrt N A_N /2=k]={N\choose k+N/2}2^{-N}$, so that \begin{align*} {N\choose k+N/2}2^{-N} &= \mathbb P[\sqrt N A_N/2 = k]\\ &= \mathbb P[\sqrt N A_N/2 \leq k]-\mathbb P[\sqrt N A_N/2 \leq k-1]\\ &\approx \mathbb P[\sqrt N A/2 \leq k]-\mathbb P[\sqrt N A/2 \leq k-1]\\ &=\mathbb P\bigg[\sqrt N A/2 \in [k-1,k]\bigg]\\ &=\int_{\frac{2(k-1)}{\sqrt N}}^\frac{2k}{\sqrt N} \frac{1}{\sqrt{2\pi}} \exp\left( -\frac{x^2}{2} \right) dx\\ &\approx \frac{2k-2(k-1)}{\sqrt N}\cdot \frac{1}{\sqrt{2\pi}} \exp\left( -\frac{4k^2}{2N}\right)\\ &=\frac{1}{\sqrt{2\pi \sigma^2}}\exp\left( -\frac{k^2}{2\sigma^2} \right) \end{align*}

This indeed gives \begin{align*} {N\choose N/2} \approx \frac{1}{\sqrt{2\pi\sigma^2}} 2^N \end{align*}

Now it feels almost like if the author was using this two times and then cancels the sum over $K$ because it is a distribution, but I cannot really know what they thought.

P. Quinton
  • 6,031