Suppose $S$ is a sample space (the set of all outcomes $\omega_i$) for an experiment. A random variable $X$ is defined as a real-valued function which maps elements from the sample space to real numbers, i.e. $X:S\to \mathbb R$.
Discrete Random variable:
The definition of the conditional probability mass function of $X$ given $Y=y$ is $$\mathbb P(X=x|Y=y)=\frac{\mathbb P(X=x, Y=y)}{\mathbb{P}(Y=y)} .$$
Question: In lecture slides I have seen the notation, for example, that $X|(Y=y) \sim \text{Bin}(m, \lambda).$ What is the definition of $X|(Y=y)$? Is it a random variable itself with a restricted sample space? Maybe $X|(Y=y): \{\omega\in S: Y(\omega)=y \} \to \mathbb R$?
What would be the definition of $X|(Y=y)$ for $X$ and $Y$ being continuous random variables?
(Note: If it isn't a random variable, then how can we talk about it's distribution and expected value?)
And yes, thank you for the suggestion! I think I will summarise these comments into an answer. Thanks so much for your help
– user523384 Mar 19 '20 at 01:44