# Random Variables

The outcomes in sample space of a probability experiment can be either numerical or non numerical. Random variables makes it possible to assign numerical values even to non numerical outcomes.

For example the outcomes in the experiment of throwing a die are all numerical that is,

S = {1, 2, 3, 4, 5, 6} while the outcomes in tossing a coin are non numerical where S = {Head, Tail}.

But we can assign values Head = 1 and Tail = 0 and make the sample space a numerical set. We can use function like notation to describe the assigning process as X(Head) = 1 and X(Tail) =0. The function X in this case is called a random variable.

In case the outcomes of a sample space are numerical, then the numerical values themselves serve as the values for the random variable.