Let $N\sim\text{Po}(\lambda)$ and $X_1,\ldots,X_n,\ldots$ be independent random variables $\text{Ber}(p)$. Consider $S=X_1+\ldots+X_N$. I saw in class that $S\sim \text{Po}(\lambda p)$.
What I don't understand is in which proability space $(\Omega,P)$ we're working. I learned that, if you have a Poisson random variable $Y$, then $\Omega=\mathbb{N}$, $Y(\omega)=\omega$ and $P(\{\omega\})=e^{-\lambda}\lambda^{\omega}/\omega!$. In the case of $X_i\sim\text{Ber}(p)$, I suppose that $\Omega=\{0,1\}$, $X(\omega)=\omega$ and $P(\{1\})=1$.
Is it true that, when you have a discrete random variable, you define it as the identity?
Which is the domain of $S$? It doesn't make sense to write $S(\omega)=X_1(\omega)+\ldots+X_{N(\omega)}(\omega)$, because $X$ and $N$ have different domains.
As you can see, I'm completely confused.
If suitable probability spaces $\langle\Omega_i,\mathcal A_i,P_i\rangle$ exist for independent random variables $Y_i:\Omega_i\to\mathbb R$ then we can always construct product space $\langle\Omega,\mathcal A,P\rangle$ with projections $\pi_i:\Omega\to\Omega_i$.
If we define $Z_i:=Y_i\circ\pi_i:\Omega\to\mathbb R$ then $Z_i$ has the same distribution as $Y_i$ and can take its place.
So we reach the same situation plus the fact that the rv's are all defined on the same probability space.
Also the distribution of a random variable will ask for sufficient conditions on the space, but these conditions are not necessary in e.g. the sense that $\Omega=\mathbb N$ is needed if we are dealing with Poisson distribution.