Random variables
February 21, 2020
Under Construction
A Random Variable is a function that maps event spaces to real numbers, so , where the probability of an event at some value is defined as .
Let’s examine random variables through an example. If we defined an event as flipping a coin 10 times, and we wanted to know the probability of getting 4 heads within those 10 coins in an event, we can write that the number of heads is a random variable, , that takes the event of 10 coin flips is expressed as . Therefore, X is mapping the outcomes of 10 coin flips onto a value, k, that represents the number of heads that occurs in each event.
Notice how can take values between 1-10. For convenience, let’s use to denote the possible values can take, . We also know that the sum the probability of each possible value must add to 1 as such,
Expected Value
Expanding on the previous concept, if we wanted to know a value we could expect to see the most given the probabilities, we can do so with the Expected Value.
Take once again the sum of all the values of X, . We know that each probability is in the range from 0 to 1, then , and so if we multiplied the values with their respective , expressed as , we would have a new relationship with a range between .
We can get a clearer view by looking at the edge cases of this relationship. Say takes values between 1-10, but the value 9 has a probability of 1 while the rest of the values have 0 probability. The sum is then
Now let’s instead say value 7 and 2 have probabilities 0.5 each, now we have
One way perspective we can take is that values act like weights to the probabilities, that scale them to a resulting value between the minimum and maximum values. The resulting value is then a predicted value, or weighted value. Notice how this value is in the min/max range of the values, but doesn’t actually have to be within the set of values . This is in part because this is a prediction, or an expectation of a value, which why it is named an Expected Value.
However, another perspective is that the probabilities themselves are the weights that scale the values to sum between the min/max of the values. Mathematically, this perspective is the one taken, since we can say the weights are normalized(ie. add to 1).
Finally, the expected value then,
Expanding the Intuition of Expected Values
Note:
You may often see a random variable defined as the mapping between the sample space and , . However, as mentioned in the first entry, this is just the notation often used to describe the same thing. This is because the sample space is defined to have the same elements of the event space, and so the collection of sets with the elements of the sample space is denoted with the same notation as the sample space. From now, when we encounter this, we’ll call this the state space, to indicate the event space.
Index |