Definition
Random Variable is also known as: Random Quantity, Aleatory Variable, Stochastic Variable.
Let an experiment be given by the probability space (, , ) where is the sample space, is the event space, and is the probability function. A random variable X is a real-valued function on .
Neither 'random' nor a 'variable'
The term 'variable' in random variable can evoke the notion of a typical algebraic variable such as the unknown or a variable declared in a computer programme, for example as in the java statement, 'int x;'. However these are wrong associations to make when it comes to random variable.
Random variable is rather precisely stated, a function akin to the subroutines in computer programmes. And rather it is a deterministic (not random) function i.e. for each input there is an unambiguous value (a real-value which could also be discrete) produced. The keyword here is function. Random variable is a function.
Notation of random variable is almost always given in the uppercase as in as opposed to the algebraic variable in smaller case,
Example 1: Random Variable as Measurement
The notion of a random variable can be understood as a measurement. Consider, in a sample space of players of a basketball team, the height of each player is being measured. The measurement maps each player a real-valued height. Here, the measurement of height can be denoted by the random variable .
Function of Function
Lets say the unit of is in inches. To obtain in centimetres, a conversion function is defined as . A function on a random variable is also a random variable, in this case both & are random variables.
Similarly, in the same experiment, for each player along with the height, the weight is also measured. This can be represented as another random variable .
Example 2: Random Variable with Custom Assignment
We can also have random variables obtained by ad hoc rules of value assignments which are not obtained by direct measurements, with scales as in the aforementioned examples. For example, random variable can represent the outcome to 1 and 0 in a coin toss.
H | 1 |
T | 0 |
Likewise, another random variable can represent any outcome of a die roll, to either 0 or 1, depending upon even or odd top-face seen after the roll.
1 | 0 |
2 | 1 |
3 | 0 |
4 | 1 |
5 | 0 |
6 | 1 |
Short-hand Event Label
One of the benefits of a random variable is that it allows us to use shorthand labels for events. For example, in case a random variable we may be interested to obtain the probability of even face. This is easily represented as rather than having to write
Probability of a Random Variable
In actually computing , in , we count the occurrence(s) of outcome where . And since all outcomes have the uniform probability of , we multiply the number of occurrences with this probability. Or in other words, we sum all such occurrences. So, occurs 3 times for Y(2), Y(4), & Y(6). Therefore
This can be generalized as:
Bernoulli Random Variable**
Note: The random variable seen in above examples assign a real value of either 1 or 0 to all outcomes. However, this is not a necessary assignment, we could have assigned other real values. The former has a special name known as the indicator or characteristic or Bernoulli random variable.
Expected Value
Also known as: Expectation, Mathematical Expectation, Population Mean, Mean, Average, First Moment
Definition
Expected Value or , as its name suggests, quantifies the expectation of the value of a random variable . It is a function that employs probability-weighted average on each of the outcomes.
For example, in a die roll