I am very confused by a sum I have been trying to solve analytically/ numerically for a long time. It comes from the idea of a physical problem where the observation is made that has a combined response of a number of entities. For example, I want to evaluate the mathematical sum at a observation point $\omega$ that looks like the following when $M \to \infty$ .
$$ L(\omega) = \sum_{n = 0}^{N-1}\sum_{m = 1}^{M} \exp\left(i \left( (\omega_m - \omega)n + \beta_m \right) \right) $$
Where all $\omega_m$s are random draws from a normal distribution
$$ \omega_m \sim \mathcal{N}(\mu, \sigma^2) $$
and the $\beta_m$ are the normal draws from a uniform distribution
$$ \beta_m \sim \mathcal{U}[-\pi, +\pi] $$
Let's try to solve it first with the sum with respect to $m$ and then $n$. The sum with respect to $m$ can be approximated to an infinite integral when $M \to \infty$.
$$ \mathbb{E}(L(\omega)) \approx M \sum_{n = 0}^{N-1} \int_{-\infty}^{+\infty} \int_{-\pi}^{+\pi} \frac{1}{\sqrt{2\pi\sigma^2}} \exp\left(-\frac{(x-\mu)^2}{2\sigma^2}\right)\exp(i(x - \omega)n)\frac{1}{2\pi} \exp(i\beta) d\beta dx $$
This integral is $0$ because of the integral $\int_{-\pi}^{+\pi}\exp(i\beta) d\beta$.
Let's approach this sum first with respect to $n$ and then $m$. The function has a closed form with respect to the sum with $n$.
$$ L(\omega) = \sum_{m = 1}^{M} \frac{\sin\left( \frac{N (\omega_m-\omega)}{2} \right)}{\sin\left( \frac{(\omega_m-\omega)}{2} \right)} \exp\left(i \left( (1-N)\frac{\omega_m-\omega}{2} - \beta_m \right) \right)$$
If I take the expectation here with an integral approximation, it also becomes $0$. However, I proceeded with finding the expression for the absolute value of $L(\omega)$ from the above expression.
$$ |L(\omega)|^2 = \sum_{m = 1}^{M} \left| \frac{\sin\left( \frac{N (\omega_m-\omega)}{2} \right)}{\sin\left( \frac{(\omega_m-\omega)}{2} \right)} \right|^2 + \sum_{p = 1}^{P} \sum_{q = 1}^{Q} \frac{\sin\left( \frac{N (\omega_p-\omega)}{2} \right)}{\sin\left( \frac{(\omega_p-\omega)}{2} \right)} \frac{\sin\left( \frac{N (\omega_q-\omega)}{2} \right)}{\sin\left( \frac{(\omega_q-\omega)}{2} \right)} \cos\left( (1 - N) \frac{(\omega_p-\omega_q)}{2} + \beta_q - \beta_p \right) $$. The sum with $p$ and $q$ are similar to $m$. The second term is clearly $0$ based on the same type of approximations with expected value when $M \to \infty$. So, taking only the first term, the expected value becomes,
$$ |L(\omega)|^2 \approx M \int_{-\infty}^{+\infty} \frac{1}{\sqrt{2\pi\sigma^2}} \exp\left(-\frac{(x-\mu)^2}{2\sigma^2}\right) \left| \frac{\sin\left( \frac{N (x-\omega)}{2} \right)}{\sin\left( \frac{(x-\omega)}{2} \right)} \right|^2 dx $$
Can I further reduce this to a closed form or a form that can only depend on $N$ numerically?
Let's take a simpler form by choosing $\mu = 0$, $\sigma = 1$ and find the integral at $\omega = 0$.
$$ |L(0)|^2 \approx M \int_{-\infty}^{+\infty} \frac{1}{\sqrt{2\pi}} \exp\left(-\frac{(x)^2}{2}\right) \left| \frac{\sin\left( \frac{N (x)}{2} \right)}{\sin\left( \frac{(x)}{2} \right)} \right|^2 dx $$