Defining Random Variables
- A sample space is a set of all possible outcomes of an experiment
- An event is a subset of a sample space
- A random variable is a deterministic function that maps a single value from the sample space to the real line
- Said a different way, a random variable represents a function that maps a single value from the sample space to a realization that is any single real number
- Mathematically, a random variable can be defined as the following:
-
We can define the above components as the following:
- is a set that represents the domain of the random variable function
- is a set that represents the range of the random variable function
- represents an element, or a single value, from the set
- represents an element, or a single value, from the set
- is referred to as a realization of the random variable function
More Notation
- It’s conventional to write random variables with upper-case italic letters:
- Random variables should not be confused with events, which are also written using upper-case letters:
- Any realizations of a random variable are denoted as lower-case italics:
- It’s also common to write the successive random variables that all belong to the same functions as the following:
- Therefore, the space of each of these random variables is the same, and that sample space is referred to as the following:
- Its realizations would be referred to as the following:
Example Notations
- Let be a normally-distributed random variable
- Let be our sample
- Our sample just represents a sequence of realizations (or )
- Let be a sequence of parameters associated with our random variable
- In this case,
- The expected value of is written as , which is equal to
- Here, is the best estimator for our population parameter
- And, equals when our random variable is normally distributed
- Since is normally distributed in our case, equals
- Specifically, equals
- In other words, due to the law of large numbers
An Example Use-Case
- Let be a random variable that represents the process of receiving heads from flipping a coin
-
We could mathematically define this as
- Where is our random variable
- Where our domain is our sample space
- Where our range is
- Where our sample space is defined as
- Where is a realization of our sample space
- Where (or )
- Specifically, is the number of heads after one flip
- Where is a realization of (or more generally speaking )
References
Previous
Next