A random variable is a mathematical function that maps outcomes of a random process to numbers. It is crucial in the study of probability theory because it quantifies outcomes.
There are two main types of random variables:
- **Discrete Random Variables:** These take on countable values, typically finite or infinite sequences like \(-0.1, 100, 1000\) in our example. They are described using discrete probability distributions.
- **Continuous Random Variables:** These take on values from a continuous range, like the exact amount of rain on a particular day.
In our exercise, \(X\) is a discrete random variable, representing possible outcomes of an event with specific probabilities. Discrete random variables are often easier to handle because the calculations involve simple sums and products, as shown in the expected value calculation.