I am readin Ross's "A first course in probability" and I got to the chapter that talks about random variables.
I am tryng to understand the exact meaning of something of the form $g(X)$ where g is a real valued function and X is a r.v.
I can't figure the "form" of g, that is, I don't understand what to write in $g: ?\to ??$.
I saw an example that made me think $g:\mathbb{R}\to\mathbb{R}$, is this correct ?