A random variable is a value which we do not know yet or we are uncertain of. They are the fundamental unit of statistics and are used anytime we want to predict a value. Having a good understanding of their properties makes it easier to model situations with statistics. In general, we know the values that a random variable could take on, and for each value, the probability of that value occurring.
Let’s take the canonical example: a die roll. We will use a random variable to represent the value after a single roll of a fair die. It's important to understand that all random variables have a story or context behind them. In this scenario, when we roll a dice, there are 6 possible values (1, 2, ..., 6), each equally likely of occurring (a probability of 1/6).
This is how random variables are usually explained. However, more recently, I learned some more definitions that I found simple and easy to understand.
The first being -valued random variables.
Given a set , we say that the random variable is -valued if .
In other words, the probability that a -valued random variable takes on a value that is in the set is 1. Using our example above, the random variable, , representing a die roll is -valued. It also follows that the is also -valued; the set does not necessarily need to be the smallest set that contains the values of the random variable. Essentially, as long as contains the values , then is -valued. Therefore, we can say is also and -valued.
Just knowing a set is usually not sufficient to describe a random variable since it may contain many values that our random variable will never take. The next definition will help.
The support of the discrete random variable is the smallest set such that is -valued.
So, while our random variable might be -valued, its support is . This is the smallest set such that is 1; in otherwords, if we were to remove any value from and form , then the .
Now we can use these two concepts to discuss other concepts we already know. For example, we may use these definitions to formalize the definition of discrete random variables. Or maybe characterize types of random variables such as Bernoulli random variables.