I'm trying to prove the following Cumulants to moments transformation formula with induction and recursion relations for the Cumulants. There are other ways to prove this formula, but I would like to complete the prove the way I started it if the combinatorics is doable.
Let $(X_n)_{n\in J}$ be a collection of random variables such that all the following formulas make sense. I'm trying to prove the following Formula for the Cumulants $\kappa$ \begin{align*} \kappa[X_1,\dots,X_{N+1}]=\sum_{\pi\in\bar{\mathfrak{P}}_{N+1}}(|\pi|-1)!(-1)^{|\pi|-1}\prod_{p\in\pi}\mathbb{E}[\prod_{i\in p}X_i], \end{align*} where $\bar{\mathfrak{P}}_K$ is the set of all partitions of the set $\{1,\dots,K\}$ and $|\pi|$ is the number of subsets in the partition $\pi$. Now I used the following recursion relation \begin{align*} \kappa[X_1,\dots,X_{N+1}]=\mathbb{E}[X_1\dots X_{N+1}]-\sum_{\pi \in \mathfrak{P}_{N+1}}\prod_{p\in \pi}\kappa[\{X_i\}_{i\in p}], \end{align*} where now $\mathfrak{P}_{K}$ denotes the set of proper partitions, that is, excluding the set itself as a partition with the strong induction hypothesis. This yielded \begin{align*} \kappa[X_1,\dots,X_{N+1}]=\mathbb{E}[X_1,\dots,X_{N+1}]-\sum_{\pi\in\mathfrak{P}_{N+1}}\prod_{p\in\pi}\sum_{\sigma\in\bar{\mathfrak{P}}_{\#\pi}}(|\sigma|-1)!(-1)^{|\sigma|-1}\prod_{s\in\sigma}\mathbb{E}[\{X_i\}_{i\in s}], \end{align*} where now $\# p$ denotes the number of elements in the subset $p$. Clearly we can see that this contains all the correct forms of terms, but the problem is to show that coefficients agree with the claim.
Now it is easy to see that from the formula I have derived one can get a term corresponding to each partition by choosing from the inner sum all the terms corresponding the set itself as a factor and then the coefficient is just $-1$, because then $|\sigma|=1$ for all the factors. The problem is to identify and compute coefficients for all other ways to get a specific partitions as a sub partition for some "coarse" partition. I know that if I have a partition $\pi=\{p_1,\dots,p_n\}$,\where $p_i={j_1,\dots,j_{k_i}}$ with $j_s\in\{1,\dots,N+1\}$ and $\sum_{r=1}^n k_r=N+1$, I can get all the proper partitions that have this partition as a sub-partition by taking all possible unions of the set $p_i$ so that I don't include all of them in the unions and the collection the union with the left over sets as partitions. However I have no idea how to do this systematically so that I can also identify the corresponding coefficients.