Inspired by this question, I tried to get an expression for the third central moment of a sum of a random number of iid random variables. My question is whether it is correct and, if not, what is wrong or what additional assumptions might be missing.
Specifically, let:
$$S=\sum_1^N{X_i},$$ where $N$ is a non-negative integer-valued random variable.
Suppose that the distributions of both $N$ and $X$ are known (and $X_i$ are iid), I want to know the value of the third central moment of $S$.
Using the law of total cummulance:
$$\mu_3(S)=E[\mu_3(S|N)]+\mu_3(E[S|N])+3cov(E[S|N],V[S|N]),$$
but $E[S|N]=N\cdot E[X]$, $E[S|N]=N\cdot V[X]$ and, if I am right, $\mu_3(S|N)=N\cdot \mu_3[X]$. Hence:
$$\mu_3(S)=E[N\cdot \mu_3(X)]+\mu_3(N\cdot E[X])+3cov(N\cdot E[X],N\cdot V[X]),$$
and, since the moments of $X$ are supposed to be known:
$$\mu_3(S)=\mu_3(X)E[N]+E[X]^3\mu_3(N)+3E[X]V[X]cov(N,N)$$
Of course, $cov(N,N)=V[N]$, so:
$$\mu_3(S)=\mu_3(X)E[N]+E[X]^3\mu_3(N)+3E[X]V[X]V[N]$$
Is it right? What is wrong? What additional assumptions am I missing?