A random variable is a function . For each outcome in the sample space, , it associates a unique real number .
The range of values taken by the random variable defined on , that is , is known as the induced sample space for and is sometimes written as .
In this chapter we shall focus on discrete random
variables — that is functions where is finite or countable e.g. .
We will move on to continuous random variables —
functions where is uncountable e.g.
— in Chapter 6.