I've been using "conditional random variables" as a notation aid with some good success in problem solving. But I've heard people claim that one shouldn't define conditional random variables.
By a conditional random variable for $X$ given $Y$, a "pseudo" random variable $(X|Y)$ with the density function $f_{X|Y = y}(x) = \frac{f_{(X,Y)}(x,y)}{f_Y(Y)}$.
Does this path lead to ambiguity or contradiction? It seems pretty straight-forward to interpret $(X|Y)$ as a function from the sample space of $Y$ to the random variable $X$, so that $X$ is a random random variable. But is this abuse of notation sound?
More generally, what kinds of functions can be composed to make random variables while remaining consistent with "the" axioms of probability (i.e., some sensible foundation)?
Perhaps tangentially, is there a categorical interpretation? In particular, it would be nice if $(X|Y)$ and $Y$ are an adjoint pair.
This question has got some attention recently, so I thought I'd try to clarify my question again:
I guess my question is "how can we define choosing a random variable randomly?" After all, we can pick a random matrix, random people, random heights, etc. So why not arbitrary real functions?
Presumably, this would require a probability distribution to assign densities to real functions. This may not even be possible in the "general" case, and this might be a reason why the construction I'm trying to get at is unsound.
But it certainly seems that we can define conditional random variables for "classes" of random variables, for example by treating a parameter of a probability distribution as a random variable.
Conditional expectation seems to be another instance of the idea.
So there seems to be a tension between these instances and the "fact" that it can't be done in general. I am hoping someone can talk to us about it. :-)