Let $Y=X_1+X_2+\dots+X_N$ where $X_1,X_2,\dots,N$ are jointly independent random variables, $X_1,X_2 ...$ identically distributed continuous random variables with finite expectation, and $N$ a discrete random variable with finite expectation.
What is the definition of conditional density $f(y|n)$ of $Y$ given $N=n$ (if it exists). I need it to compute $E(Y|N=n)$.
Is there another approach to compute $E(Y|N=n)$ or even $E(Y|N)$?
For simplicity we can assume that the random variable $N$ is bounded by a positive integer M
The expected value is relatively easy for this case as long as the expectation for $X_i$ exists. Since $N$ is known, you are looking to find $$E[Y|N=n] = E[X_1+X_2+ \cdots + X_N|N=n]= E[X_1 + X_2+ \cdots + X_n].$$ Since expectation is a linear operator, you can write this as $$E[Y|N=n] = E[X_1]+E[X_2]+ \cdots + E[X_n].$$ From there we have $$ E[Y|N=n]=nE[X_1] $$