Suppose $X_1,\dots,X_n$ are jointly distributed random variables such that the random $n$-tuple $(X_1,\dots,X_n)$ is uniformly distributed on the set of $n$-tuples of nonnegative integers summing to $k$. Clearly each $X_i$ has expected value $k/n$. Are thereDoes the published literature provide nice formulas for the expected values of $X_i^2$$p(X_1,X_2,\dots)$ for infinite classes of polynomials $p(\cdot,\cdot,\dots)$?
I am being necessarily vague about the form of $p$ because I’m sure that the ones I really want to understand aren’t in the literature (they appear rather unnatural when you write them out) but I’m hoping to express them in terms of more natural “building blocks” (perhaps monomials, perhaps something else) and I want to know which building blocks to use. Additionally, methods used to prove those results may give me ideas for how to attack my polynomials directly.
An example would be $X_i X_j$$p(x_1,x_2,x_3,\cdots) = (x_1+x_2+1)(x_1+x_2+2)$, etcbut what I want to know is not the answer for this specific case but general methods that are suited to solving infinitely many problems of this kind at once.? I don’t need someone to do the work for me, but I do want to use the right tools.