3.1.1 Random Variables
In general, to analyze random experiments, we usually focus on some numerical aspects of the experiment. For example, in a soccer game we may be interested in the number of goals, shots, shots on goal, corners kicks, fouls, etc. If we consider an entire soccer match as a random experiment, then each of these numerical results gives some information about the outcome of the random experiment. These are examples of random variables. In a nutshell, a random variable is a real-valued variable whose value is determined by an underlying random experiment.
Let's look at an example.
Example
I toss a coin five times. This is a random experiment and the sample space can be written as
In essence, a random variable is a real-valued function that assigns a numerical value to each possible outcome of the random experiment. For example, the random variable defined above assigns the value $0$ to the outcome , the value $2$ to the outcome , and so on. Hence, the random variable is a function from the sample space =,, , to the real numbers (for this particular random variable, the values are always integers between $0$ and $5$).
Random Variables: A random variable is a function from the sample space to the real numbers.
We usually show random variables by capital letters such as , , and . Since a random variable is a function, we can talk about its range. The range of a random variable , shown by Range or , is the set of possible values for . In the above example, Range.
The range of a random variable , shown by Range or , is the set of possible values of .
Example
Find the range for each of the following random variables.
- I toss a coin $100$ times. Let be the number of heads I observe.
- I toss a coin until the first heads appears. Let be the total number of coin tosses.
- The random variable is defined as the time (in hours) from now until the next earthquake occurs in a certain city.
- Solution
- The random variable can take any integer from $0$ to $100$, so .
- The random variable can take any positive integer, so .
- The random variable can in theory get any nonnegative real number, so .