Question: what is the relationship of random variable and sample space?
Answer: A sample space is a collection of all possible outcomes of a random experiment. A random variable is a function defined on a sample space. We shall consider several examples shortly. Later on we shall introduce probability functions on the sample spaces.