Random Variables#
A lot of this material is inspired by:
Wiki article on Random Variables
Khan academy videos
MIT OCW course
Assume you toss a coin once, the coin can land either as heads or tails. The outcome is unknown before the throw.
We can denote the sample space as:
Now, let us say that if the coin lands as Heads, we win 1$ and we win 0$ if the coin lands as Tails. We can associate a function
Random Variable
A random variable is a function mapping the sample space (for example:
While we may have generally seen a random variable W associated with a coin toss taking the values 1 for Heads, 0 for Tails, we might have chosen any other values and still have a random variable. As an example
If our experiment is to roll two die (6-faced die) and note the sum of the numbers on the top side.
The sample space for this example is:
Based on this sample space, we can see that our random variable
Discrete Random Variable
A discrete random variable can take discrete values. For example, W representing the money we win if we toss a coin randomly. Or, Y the top face of a dice when the dice is rolled. Or,
Let us now take a different example. Our experiment is to pick a person at random from a university and measure their weight. The sample space would be the list of all the people in the university and the random variable
Continuous Random Variable
A continuous random variable takes continuous values.