$X\in \mathbb{Z}$ and $Y\in \mathbb{R}$ are random variables. Suppose that the conditional PDF $f(y\mid X=x)$ is continuous for all $x\in \mathbb{Z}$. Is the PDF $f(y)$ continuous?
I'm aware that if $X$ can take only finitely many values then $f(y)$ is continuous since $f(y)=\sum_{x}\Pr(X=x)f(y\mid x)$ and the fact that the sum of finitely many continuous functions is also continuous. But I cannot figure out if it holds when $X$ can take infinitely many values.
Thanks in advance.
Suppose the values $X$ takes are $(x_n),$ each of which with positive probability. Then, as you already know, the density of $Y$ is $f(y) = \sum\limits_n f(x_n, y)$ where $f(x_n, \cdot)$ satisfies that for each Borel set $\mathrm{B},$ $$ \int\limits_\mathrm{B} f(x_n, y) dy = \mathbf{P}(X = x_n, Y \in \mathrm{B}). $$ You assume each $f(x_n, \cdot)$ is continuous (note that $f(y \mid x_n) \propto f(x_n, y)$ so continuity is not affected by the proportionality constant). You want to prove that $f$ is also continuous. This will be true under general conditions.
Continuity signifies that for every converging sequence $y_k \to y,$ we have $f(y_k) \to f(y).$ Now, for each $y_k,$ define $u_k = f(\cdot, y_k).$ We know, from assumption, that $u_k \to u$ simply (pointwise), where $u = f(\cdot, y).$ If $u_k \leq v$ where $v$ is integrable (relative to the counting measure), then Lebesgue dominated convergen theorem will guarantee that $$ f(y_k) =\int u_k dc \to \int u dc = f(y), $$ where $$ \int \varphi dc = \sum\limits_n \varphi(x_n) $$ (and $c$ is the counting measure).
In sum, if $f(x_n, y) \leq a_n$ (uniformly in $y$) and $\sum a_n < \infty,$ then $f$ is continuous.